Add request body
Adding a request body allows you to send data from your Airtable base to other platforms. You can include table values, variables, and even attachment files in your request body.
Data Fetcher supports seven different body types: JSON, x-www-form-urlencoded, form-data, XML, GraphQL, Binary, and Plain Text. You'll typically want to add a request body when using POST, PATCH, or PUT request methods. Check your target API's documentation to determine which body type to use.
How to add a request body
Follow these steps to add any type of request body to your Data Fetcher request:
On the create request screen, click the Body tab.
Select the tab for your desired body type (JSON, x-www-form-urlencoded, form-data, XML, GraphQL, Binary, or Plain Text).
Follow the specific instructions below for your chosen body type.
JSON request body
JSON is commonly used for REST APIs and web services.
Make sure the JSON tab is active.
Enter your JSON data into the input field. You can validate your JSON using this tool.
Use the Beautify button to format your JSON for better readability.
x-www-form-urlencoded request body
This format sends data as key-value pairs, similar to HTML form submissions.
Click the x-www-form-urlencoded tab.
Click + Add to create a new key-value pair.
Enter a key and its corresponding value in the input fields.
Repeat steps 2-3 to add additional key-value pairs as needed.
form-data request body
Form-data is useful for sending files or when the API specifically requires this format.
Click the form-data tab.
Click + Add to create a new key-value pair.
Enter a key and its corresponding value in the input fields.
Repeat steps 2-3 to add additional key-value pairs as needed.
XML request body
XML format is often used by older APIs or enterprise systems.
Click the XML tab.
Enter your XML content in the input field. You can validate your XML using this tool.
GraphQL request body
GraphQL allows you to query specific data fields and is automatically converted to JSON when sent.
Click the GraphQL tab.
Add your GraphQL query in the Query input field.
Add any variables as JSON in the Variables input field.
When the request runs, Data Fetcher automatically converts your GraphQL query and variables into a JSON body. You can preview this conversion using our GraphQL to JSON Body Converter.
Binary request body
Binary format sends raw file data, perfect for uploading attachments from Airtable.
Click the Binary tab.
Use the + button on the right side of the input field to reference an attachment field from your Airtable base.
When the request runs, the raw attachment data will be sent directly in the request body.
Plain Text request body
Plain text format sends simple text content without any special formatting or encoding.
Click the Plain Text tab.
Enter your text content directly in the input field.
The text will be sent exactly as entered in the request body.
Last updated