Skip to main content

Notifications

Community site session details

Community site session details

Session Id : pzppbJpFpIKGKMK/Ov2N1F
Power Automate - Power Automate Desktop
Unanswered

Sending discord webhook requests via Invoke web service or CMD

Like (0) ShareShare
ReportReport
Posted on 28 Nov 2022 20:56:55 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?

  • Mellacon Profile Picture
    2 on 20 Sep 2023 at 22:58:32
    Re: Sending discord webhook requests via Invoke web service or CMD

    Try this. Does it work now?

  • Fearmonger Profile Picture
    5 on 28 Jun 2023 at 02:56:18
    Re: Sending discord webhook requests via Invoke web service or CMD

    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?

     

     

  • VJR Profile Picture
    7,635 on 29 Nov 2022 at 03:12:02
    Re: Sending discord webhook requests via Invoke web service or CMD

    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

     

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Power Automate Desktop

#1
eetuRobo Profile Picture

eetuRobo 4 Super User 2025 Season 1

#2
KO-05050229-0 Profile Picture

KO-05050229-0 2

#2
stampcoin Profile Picture

stampcoin 2

Overall leaderboard
Loading started
Loading complete