Skip to main content
Question

Discord Webhook Error 404

  • November 25, 2024
  • 1 reply
  • 33 views

I don’t know what is wrong with the webhook, i have been trying this for a few hours

but unable to post a message with an image in discord

can anyone help on this

 

 

Did this topic help you find an answer to your question?

1 reply

SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 7274 replies
  • November 25, 2024

Hi ​@Subhash_80, welcome to the Community! 🎉

I wrote a guide a while back that explains how to make calls to Discord’s API that happens to give an example of how to embed an image using a Webhook action:

It looks like what’s been added to the Data field in your Zap doesn’t match the structure of the example code shared in that guide:

{

"content":"Select the message text here",

"username":"Specify a name for the bot",

"avatar_url": "Add a link to a new image for the bot",

"embeds": [{

"image": {

        "url": "Select the image URL"

      }

}]

}

It looks like you’re missing the square brackets for the embed section:
a9748f676668b8e2ca1941da6ffc7880.png

Can you try adding those square brackets to see if that gets it working? 

Look forward to hearing how it goes! 🙂