web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Sending discord webhoo...
Power Automate
Unanswered

Sending discord webhook requests via Invoke web service or CMD

(0) ShareShare
ReportReport
Posted on by

I have been trying to send post requests to a discord webhook for around a hour now but can't seem to figure out how to do it. I tried using the Invoke web service:

MeLikeFish_1-1669668330736.png

 

 

"{
 "content": null,
 "embeds": [
 {
 "title": "Test",
 "color": null,
 "author": {
 "name": "Automated Tool Logging",
 "icon_url": "https://discohook.org/static/discord-avatar.png"
 }
 }
 ],
 "attachments": []
}"

 

 

 

And via CMD:

 

 

curl -i -H "Accept: application/json" -H "Content-Type:application/json" -X POST --data '{"content": null,"embeds": [{"title": "test","description": "temp\ntemp2","color": null,"author": {"name": "Automated Tool Logging","icon_url": "https://discohook.org/static/discord-avatar.png"}}],"attachments": []}' -webhook link-

 

 

 

And the error I always get is:

 

 

{"code": 50109, "message": "The request body contains invalid JSON."}

 

 

 

I feel like I have searched the whole internet at this point, any ideas on what to do?

I have the same question (0)
  • VJR Profile Picture
    7,635 on at

    Can you try validating the JSON and see.

    JSON Online Validator and Formatter - JSON Lint

     

    Validator says it has an issue on line 1.

    VJR_0-1669691443050.png

     

    So I removed the starting and ending quotes.

    VJR_1-1669691499200.png

     

     

  • Fearmonger Profile Picture
    5 on at

    I've attempted to run this in the "Invoke Web Service" module with the quotes removed and the JSON validator says it's valid but still get the same error {"code": 50109, "message": "The request body contains invalid JSON."}. Any other suggestion?

     

     

  • Mellacon Profile Picture
    2 on at

    Try this. Does it work now?

    Screenshot 2023-09-21 005729.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard