What is an API?
Think of an API like a waiter in a restaurant. You (the user) look at the menu (a list of what’s possible), place your order with the waiter (the API), and then the kitchen (the system or server) prepares the food and the waiter brings it back to you. In the tech world, an API is a set of rules that allows one piece of software (like an app) to talk to another (like a server).Add the API Tool step to your Tool
- Creating a new Tool, then searching for the ‘API’ Tool step
- Click ‘Expand’ to see the full Tool step
- Select the method you wish to use for your API call
- Enter the URL / pathway / endpoint you want to call
- Add headers, body and URL parameters as needed for your API call
- Click ‘Run step’ to run the Tool step (see Configuring the Request Body for details on body formatting)
Configuring the Request Body
The Body field accepts JSON data for POST, PUT, PATCH, and other HTTP methods that support request bodies. Both JSON objects and JSON arrays are supported as top-level request bodies. JSON Objects (most common):The request body is automatically serialized to JSON when sent to the API. You don’t need to manually stringify the data.
- Use objects for single-item operations (creating one user, updating one record)
- Use arrays for bulk operations (creating multiple items at once) or when the API specifically requires an array format (e.g., some Confluence endpoints)
Example API Call Configurations
Object Body Example
Most APIs accept JSON objects for single-item operations. Here’s an example of creating a user: Method: POSTURL:
https://api.example.com/usersHeaders:
Array Body Example
Some APIs require array bodies for bulk operations or specific endpoints. Here’s an example using the Confluence API to update page properties: Method: PUTURL:
https://your-domain.atlassian.net/wiki/api/v2/pages/{pageId}/propertiesHeaders:
Advanced Settings
Response format
Allows you to select the format of the response. You can choose from:- string
- json
- arrayBuffer
- blob
Cookies
Allows you to add cookies to send with the request.Throw error on 4xx/5xx response
When checked, throws an error when the API response contains a 4xx/5xx response code.Common errors
Missing scopes
Missing scopes
The “missing scopes” API error code generally indicates that the access token or credentials used in the API request do not include the necessary permissions (scopes) required to perform the requested action. This usually indicates your API key / token is missing, or you may not have the access to perform the call you’re attempting.
Invalid values
Invalid values
An “invalid values” API error generally occurs when one or more of the parameters or fields in your API request contain data that doesn’t conform to the expected format, type, or allowed range defined by the API. This can also occur when your request hasn’t filled out a mandatory / required field for the API call. To fix this, make sure all required fields have been added to your call, and your parameters match the expected format (e.g. strings, booleans).

