Skip to main content

Add Request Body

The request body is used to send data to an API when making POST, PUT, or PATCH requests.

Note API Connector supports the following body types:

💡 Check the API documentation of the service you're connecting to, as different APIs require different body formats.

Adding a JSON Request Body

JSON is the most common request body format for modern APIs.

Steps:

1️⃣ Open the Body tab.
2️⃣ Select the JSON tab.
3️⃣ Enter your JSON payload into the input field.

tip

Use an online JSON validator to ensure your JSON is correct.

Adding JSON Body

Example: Sending a JSON request

{
"name":"John Doe",
"email":"[email protected]"
}

Adding an x-www-form-urlencoded Request Body

This format is commonly used in APIs that expect form submissions (like login or token-based authentication).

Steps:

1️⃣ Open the Body tab.
2️⃣ Select the x-www-form-urlencoded tab.
3️⃣ Click Add to insert a new key-value pair.
4️⃣ Enter a key and its value.
5️⃣ Add more fields as required.

Adding x-www-form-urlencoded Body

Example: Sending a form submission

key: username value: johndoe
key: password value: mysecretpassword

Adding a form-data Request Body

This format is used for file uploads and multipart form submissions.

Steps:

1️⃣ Open the Body tab.
2️⃣ Select the form-data tab.
3️⃣ Click Add to insert a new field.
4️⃣ Enter a key and value.

Adding form-data Body