Skip to main content
Actions

HTTP Request

action_http

Call an external REST API and output the response inline or as a FileRef.

Inputs1
Outputs1
Settings20
Field Access{{Template}}
Examples2

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

Inputs (1)
inPort 0Inbound execution flow
Outputs (1)
outPort 1Outbound execution flow with HTTP response

How 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