Purpose
The API node calls an external HTTP endpoint directly from your workflow, like a Postman request as a node. Use it to integrate any REST API that doesn’t have a dedicated tool: post to a CRM, fetch a record, trigger a downstream system, or send data to a partner service. Where the Tool node runs a governed MCP tool and the Agent node lets an LLM decide, the API node is fully deterministic: you define the request, and it runs exactly as configured every time. Every field supports template variables, so requests are built from data produced earlier in the workflow.How it works
1
Workflow reaches the API node
Execution arrives at the node with the outputs of previous steps available as template variables.
2
Request is assembled
The URL, headers, query parameters, and body are resolved from templates. Secret references (
{{vault:...}}) are pulled from HashiCorp Vault at this moment, never stored in the workflow.3
Safety checks run
The target is validated against SSRF protection before the request is sent, so a templated URL can’t be pointed at internal infrastructure.
4
Request is sent
The HTTP call is made with your configured method, auth, and timeout.
5
Response is captured
The status code, headers, and body are captured (JSON is parsed automatically) and made available to later nodes.
SSRF protection is always on. Requests to private, loopback, and link-local addresses are blocked so a workflow can only reach genuinely external services.
Configuration
Method and URL
Choose the HTTP method and target URL. The URL supports templates, so you can build it from earlier outputs. Supported methods:GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
Headers and query parameters
Add any request headers and URL query parameters. Values support templates.Request body
Setbody_type to control how the body is encoded, then provide the body.
Authentication
The API node supports six auth modes. Every secret-bearing field accepts an inline value or a Vault reference like{{vault:org/api/example}}, resolved at execution time.
- None
- Bearer
- Basic
- API key
- Custom headers
- HMAC
No authentication.
Response handling
Control timeouts, redirects, and how failures are treated.timeout_seconds— Per-request timeout. Default 30, maximum 60.follow_redirects— Whether to follow3xxredirects. Default true.fail_on_error_status— When true, a4xx/5xxresponse fails the node so error handling can retry or branch. When false (default), the response is captured and passed on for your workflow to inspect.max_response_bytes— Caps how much of the response body is captured. Default 1 MB, maximum 16 MB.
Use cases
Post to a system without a dedicated tool
Scenario: Push an extracted record into an internal CRM.Fetch reference data for an agent
Scenario: Look up live pricing before an agent drafts a quote.Trigger a downstream webhook
Scenario: Notify a partner system when a workflow completes, signing the payload with HMAC.Best practices
Store secrets in Vault, not in the node
Store secrets in Vault, not in the node
Use
{{vault:...}} references for tokens, passwords, and secrets. They are resolved at execution time and never saved into the workflow definition or version history.Fail loudly on critical writes
Fail loudly on critical writes
For requests that change state (POST/PUT/DELETE), set
fail_on_error_status: true so a rejected request triggers retry or a fallback branch instead of silently continuing.Keep timeouts realistic
Keep timeouts realistic
Set
timeout_seconds to match the endpoint’s expected latency. A slow third-party API shouldn’t stall the whole workflow indefinitely, but don’t set it so low that normal responses are cut off.Cap large responses
Cap large responses
If an endpoint can return a large payload you don’t need in full, lower
max_response_bytes to keep only what downstream nodes will use.Validate before you branch
Validate before you branch
When
fail_on_error_status is false, use a Condition node to check the response status or body before acting on it.Next steps
Tool node
Run governed MCP tools instead of raw HTTP calls
Custom tools
Turn a frequent API into a reusable MCP tool
Secrets and Vault
Store API credentials securely with Vault references
Condition node
Branch on the API response status or body