> For the complete documentation index, see [llms.txt](https://docs.bloodbath.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bloodbath.io/faq/wrong-format-when-sending-my-body-over-the-rest-api.md). Agents can also search and read this documentation through its [MCP server](https://docs.bloodbath.io/~gitbook/mcp).

# Wrong format when sending my body over the REST API

If you're using the REST API, you must be careful about the format you sent the body to. It should be strict JSON.

```
# GOOD
"{\\"scheduled_for\\":\\"2021-05-25 15:35:41 -0500\\",\\"method\\":\\"post\\",\\"headers\\":{\\"Random-Header\\":\\"Something\\"},\\"body\\":\\"Random body\\",\\"endpoint\\":\\"<https://api.fake-site.com>\\"}"

# BAD
"{:scheduled_for=>2021-05-25 15:35:41.604712 -0500, :method=>:post, :headers=>{:\\"Random-Header\\"=>\\"Something\\"}, :body=>\\"Random body\\", :endpoint=>\\"<https://api.fake-site.com>\\"}"
```

If the JSON can't be decoded by the Bloodbath API, it'll throw an error.
