Service/API thinklet
The Service/API thinklet makes a REST call to an external public API. Use it to retrieve additional information or request actions to be performed.
The Service/API thinklet supports the following call methods:
GET
POST
PATCH
PUT
DELETE

Name: Enter a unique name for the Service/API thinklet.
ID: The system generates the ID automatically based on the name.
Description (optional): Describe the purpose of the thinklet and what it does. This information is useful for other users of the workflow who may not be familiar with it.
Credentials: Select the connection credentials for the integration. You must configure them first on the Connector credentials page of the Administration module.
Request Method: Select the request connection method.
Resource: Enter the endpoint for the connection.
Add custom header: Add up to 5 custom headers to pass additional metadata if required. You must add authorization headers in Credentials instead.
Payload: Enter the JSON payload to be sent to the external system.
Choose parsing language for JSON to effectively collect data from API call responses.
Add output configuration for data selection and transformation.
All expressions within a single Service/API thinklet should use the selected parsing language for JSON.
Collecting data from API calls
From the Service/API thinklet configuration, select a supported parsing language for JSON to collect data from API call responses from an external system:
JSONata (recommended): This is a powerful query and transformation language for JSON. It allows for complex filtering, calculations, and data restructuring.
JSONPath: This is a simpler language for extracting fields from JSON. It is commonly used where the system expects straightforward data access paths.
Output configuration
The system supports up to 5 outputs per thinklet.
The maximum output size is 30 KB or 3840 characters.
After choosing parsing language for JSON for the Service/API thinklet, define the data output settings:
Click the Add output button.
Provide a reference Name to use in conditions and thinklet inputs.
Define the expression for data selection and transformation using the selected JSON syntax.
Find below expression examples—in JSONPath and JSONata—to extract data from the following API sample response:
{
"result": { "number": "INC001" },
"value": [
{ "displayName": "Alice", "id": 1, "number": 50 },
{ "displayName": "Bob", "id": 2, "number": 120 }
],
"@meta": { "key.with.dots": "yes" }
}
Using database and workflow values in payloads
Reference the data of users
and devices
along with data collected during the execution of the workflow in the Resource and Payload fields.
Refer to the Parameters and dynamic values documentation for more details on how to reference dynamic values.
Last updated
Was this helpful?