Building flows
HTTP request
Call any HTTP API as a step in a flow.
The http_request node sends an HTTP request to a URL you name. Integration nodes compile down to http_request, so this is the node to reach for when no integration covers the API you need.
Spec
| Field | Meaning |
|---|---|
method | Required. One of GET, POST, PUT, PATCH, DELETE. |
url | Required. The request URL. |
headers | Optional. A map of header name to value. |
body | Optional. The request body. |
Referencing data
url, headers, and body accept {{slug.field}} references that resolve to an earlier node's output, so a request can carry values produced upstream. See How data moves.
{
"slug": "notify",
"type": "http_request",
"spec": {
"method": "POST",
"url": "https://api.example.com/messages",
"headers": { "Content-Type": "application/json" },
"body": { "text": "Order {{trigger.id}} shipped" }
},
"config": { "auth": ["example_key"] }
}config.auth names the credential the request uses. See Connecting integrations.
