Docs
Request body
Request body
The request body contains data sent to the API with your request. This is typically used with POST, PUT, and PATCH methods.
How to set the request body
- Create a new request or open an existing one
- Click the Request options step
- Click Body
- Choose a body type
- Enter the body type data
- Optionally, use variables to include dynamic data from your Notion database
Body types
form
Send data as key-value pairs, similar to HTML form submissions.
x-www-form-urlencoded
Send data as URL-encoded key-value pairs.
JSON
Send structured data in JSON format.
Example:
{
"type": "dog",
"name": "Sir Fluffington"
"isGoodBoy": "true"
}
XML
Send data in XML format.
Example:
<dog>
<name>Sir Fluffington</name>
<sound>bark</sound>
</dog>