http node makes HTTP requests to external APIs. It supports all standard HTTP methods, custom headers, query parameters, and request bodies.
Configuration
Config Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
url | string | Yes | - | Request URL (supports templates) |
method | string | No | "GET" | HTTP method |
headers | object | No | - | Request headers |
query | object | No | - | Query string parameters |
body | any | No | - | Request body |
timeout | number | No | 30000 | Timeout in milliseconds (max 60000) |
content_type | string | No | auto | Content-Type header |
on_error | string | No | "abort" | Error handling: "abort" or "continue" |
HTTP Methods
Supported methods:GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS
Output
| Field | Type | Description |
|---|---|---|
status_code | number | HTTP status code |
headers | object | Response headers |
body | any | Response body (auto-parsed if JSON) |
latency_ms | number | Request duration in milliseconds |
success | boolean | true if status is 2xx |
error | string | Error message (only with on_error: "continue") |
Examples
GET Request
GET with Query Parameters
POST with JSON Body
PUT Request
DELETE Request
With Custom Headers
With Timeout
Error Handling
on_error: "abort" (default)
If the request fails (network error, timeout, non-2xx status), the flow stops immediately.
on_error: "continue"
Errors are captured in the output instead of failing the flow:
Body Handling
JSON Body (default)
Objects are automatically serialized as JSON:String Body
Strings are sent as-is:Template Body
Use templates for dynamic content:Response Parsing
- JSON responses are automatically parsed into objects
- Other responses are returned as strings
- Check
Content-Typeheader to determine response format
URL Templates
The URL supports template expressions:Common Patterns
Authenticated Request
Pagination
Webhook Call
Related
- Transform Node - Process response data
- Condition Node - Check response status
- Try Node - Handle request failures