Overview
The API Request node sends HTTP/HTTPS requests to APIs and web services. It supports all HTTP methods, custom headers, various body formats, form data, file uploads, and advanced retry logic. Response data is stored in the workflow context for use in subsequent nodes.Configuration
The API endpoint URL. Supports variable interpolation:
https://api.example.com/users/${data.userId}HTTP method to use.Options:
GET- Retrieve dataPOST- Create resourcesPUT- Update resourcesPATCH- Partial updateDELETE- Delete resourcesHEAD- Get headers onlyOPTIONS- Get supported methods
Custom HTTP headers as key-value pairs.Common headers:
Authorization: Bearer tokens, API keysContent-Type: Request body formatAccept: Response format preference- Custom headers for API requirements
{ "Authorization": "Bearer ${data.token}" }Request body content. Supports variable interpolation.
Format of the request body:
json- JSON format (Content-Type: application/json)text- Plain textxml- XML formatform- URL-encoded form data
Request timeout in milliseconds.
Context variable name to store the response.
If
true, failed requests log warnings but don’t stop workflow execution.Form Data & File Uploads
Form fields for multipart/form-data requests.Field structure:
name: Field namevalue: Field value (supports variable interpolation)
Files for multipart/form-data uploads.File structure:
name: Form field namefilePath: Path to file (supports variable interpolation)
Retry Configuration
Enable automatic retry on failure.
Retry strategy:
count- Retry a fixed number of timesuntilCondition- Retry until a condition is met
Number of retry attempts (for count strategy).
Condition for retry strategy. Checks response status, headers, or body.
Delay between retries in milliseconds.
Delay strategy:
fixed- Constant delayexponential- Exponentially increasing delay
Response Structure
The API response is stored in the context with this structure:Examples
Basic Requests
Authentication
With Variables
Form Data & File Upload
With Retry
Accessing Response Data
Common Patterns
API Chain
Error Handling
Notes
Response bodies are automatically parsed as JSON when the Content-Type header indicates JSON. Otherwise, they’re stored as raw text.
The
contextKey parameter allows storing multiple API responses in the workflow context for later use.Related Nodes
- API cURL - Execute cURL commands
- Verify Element - Verify API responses
- JavaScript Code - Process API data
- Loop - Iterate over API results
