
Configure the API request processor
API_RESPONSE

The result is stored in the profile variable
API_RESPONSE
Configuration fields
| Field name | Required? | Detail |
|---|---|---|
| Variable to save result | Yes | This processor returns the API response, so pick a variable to capture it. For example API_RESPONSE |
| Method | Yes | Select the method: GET, POST, PUT, DELETE |
| URL | Yes | Endpoint of API |
| Header | API request headers | |
| Query | No | API query parameters |
| Extract response | Use this area to parse, calculate, or extract specific fields from the API response, the operations work just like JavaScript |
Extract response
In this example, the API response from https://api.restful-api.dev/objects looks like this:
API response
id is 2, write JavaScript that extracts that field from the response:

Extract the response with JavaScript code
Extract Response section, first run the workflow once, open the queue to inspect the API response, then click Analyze variable.

Analyze the API response

Review the API response details

id is 2:
id is 2:


Copy code

The finished JavaScript snippet
id is 2 :
