HTTP Request
Call an external REST API and output the response inline or as a FileRef.
About this Node
Performs outbound HTTPS requests (`GET`, `POST`, `PUT`, `PATCH`, `DELETE`, `HEAD`) to external APIs with full `{{key}}` templating across URLs, query parameters, headers, and request bodies. Supports Secrets Vault authentication (`bearer`, `api_key`, `basic`), inline JSON/text parsing or streaming large binary responses to a `FileRef`, and emits response body, HTTP status code, and headers into state.
Ports & Branches
inPort 0Inbound execution flowoutPort 1Outbound execution flow with HTTP responseHow this Node Reads Data
| Input | Access | Field | Example | Description |
|---|---|---|---|---|
| URL Template | {{Template}} | url |
https://api.example.com/v1/orders/{{order_id}} |
Interpolates `{{key}}` placeholders into the target HTTPS endpoint URL. |
| Query Parameters & Headers | {{Template}} | headers |
X-Correlation-Id: {{request_id}} |
Interpolates `{{key}}` placeholders inside query parameter and custom header keys/values. |
| Request Body Template | {{Template}} | body_template |
{ "status": "{{decision}}", "summary": "{{summary}}" } |
Interpolates `{{key}}` placeholders in `json`, `raw`, or `form_urlencoded` request payloads. |
State Keys Written (Outputs)
| Key Pattern | Type | Role | Description |
|---|---|---|---|
{output_key} |
object | string | FileRef |
Primary | Parsed JSON or text response body (`inline` mode), or a `FileRef` handle to the downloaded artifact (`fileref` mode). |
{output_key}_status |
integer |
Secondary | Numeric HTTP response status code (e.g., `200`, `201`, `404`). |
{output_key}_headers |
object |
Secondary | Normalized dictionary of HTTP response headers returned by the remote endpoint. |
Tips & Best Practices
- Outbound requests block private/loopback IP addresses automatically to prevent SSRF.
- Mutating methods (`POST`, `PUT`, `PATCH`, `DELETE`) default to 1 attempt (no auto-retry) to avoid duplicate side effects, while `GET` inherits the workflow retry policy; override per node under Resilience & Retries.
- Use `response_mode: "fileref"` for payloads larger than a few hundred kilobytes or any binary content (PDF, Parquet, images).
Commonly Paired With
Settings Parameters (20)
Configuration schema synchronized with the workflow catalog
| Field | Type | Default | Allowed Options | Description |
|---|---|---|---|---|
method |
string |
GET |
GET, POST, PUT, PATCH, DELETE | — |
url |
string |
— |
— | Request URL (supports {{context}} interpolation) |
query_params |
array |
— |
— | Templated query string parameters |
headers |
array |
— |
— | Templated request headers |
body_mode |
string |
none |
none, json, form_urlencoded, raw | — |
body_template |
string |
— |
— | Templated JSON or raw request body |
body_form_params |
array |
— |
— | Templated URL-encoded form parameters |
raw_content_type |
string |
text/plain |
— | — |
auth_type |
string |
none |
none, bearer, api_key, basic | — |
secret_name |
string |
— |
— | Referenced encrypted secret name |
secret_kind |
string |
custom |
custom, webhook_callback, llm_provider | — |
auth_header_name |
string |
X-API-Key |
— | — |
auth_prefix |
string |
"" |
— | — |
auth_api_key_placement |
string |
header |
header, query | — |
auth_username |
string |
— |
— | Optional Basic auth username (supports {{context}} interpolation) |
response_mode |
string |
inline |
inline, fileref | — |
output_key |
string |
http_response |
— | — |
output_filename |
string |
— |
— | Optional filename override template when streaming to FileRef |
timeout_seconds |
integer |
30 |
— | — |
fail_on_error_status |
boolean |
true |
— | — |
Authenticated JSON POST with Bearer Secret
Create a ticket in an external helpdesk API using a secret stored in the Secrets Vault and dynamic state fields.
Node Configuration
{
"Id": "action_http_1",
"Type": "action_http",
"Config": {
"method": "POST",
"url": "https://api.example.com/v1/tickets",
"body_mode": "json",
"body_template": "{\u0022subject\u0022: \u0022{{subject}}\u0022, \u0022priority\u0022: \u0022{{priority}}\u0022}",
"auth_type": "bearer",
"secret_name": "helpdesk_api_token",
"response_mode": "inline",
"output_key": "ticket_response",
"timeout_seconds": 30,
"fail_on_error_status": true
}
}Sample Input State
{
"subject": "VPN outage",
"priority": "high"
}Expected Output State
{
"ticket_response": { "id": "TKT-901", "state": "open" },
"ticket_response_status": 201,
"ticket_response_headers": { "content-type": "application/json" }
}Tip: Set `fail_on_error_status: false` if you want to inspect `{output_key}_status` in a downstream Condition node instead of failing on 4xx/5xx.
Stream Large Report Download as FileRef
Download a PDF or CSV export directly into object storage as a `FileRef` ready for LLM multimodal analysis or Dataset Write.
Node Configuration
{
"Id": "action_http_1",
"Type": "action_http",
"Config": {
"method": "GET",
"url": "https://reports.example.com/exports/{{report_id}}.csv",
"auth_type": "api_key",
"auth_api_key_placement": "header",
"auth_header_name": "X-API-Key",
"secret_name": "reports_api_key",
"response_mode": "fileref",
"output_filename": "report-{{report_id}}.csv",
"output_key": "report_file"
}
}Sample Input State
{
"report_id": "2026-11"
}Expected Output State
{
"report_file": { "type": "file_ref", "filename": "report-2026-11.csv", "size_bytes": 84210 },
"report_file_status": 200
}