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:
"{
"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?
Try this. Does it work now?
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?
Can you try validating the JSON and see.
JSON Online Validator and Formatter - JSON Lint
Validator says it has an issue on line 1.
So I removed the starting and ending quotes.
eetuRobo
4
Super User 2025 Season 1
KO-05050229-0
2
stampcoin
2