FlowsCards

HTTP Request Card

Call an external API and use the response in your flow

The HTTP Request Card calls a public API or webhook and maps parts of the response into flow variables. It needs a Pro plan or higher. In the card panel it is called API Call.

HTTP Request card with method, URL and response mapping

Configuration

SettingDescription
HTTP MethodGET or POST.
URLThe endpoint. It can use variables.
HeadersCustom headers, name and value. Values can use variables.
Request BodyJSON body, shown for POST only. It can use variables.
Timeout (seconds)How long to wait, from 1 to 300. The default is 30.

Response Mapping

Use Extract Variables to copy parts of the JSON response into variables.

FieldDescription
Variable nameName of the variable.
JSON pathWhere the value sits in the response, for example $.data.name.
Default valueUsed when the path finds nothing.

A mapping named userName is available as {{flow.674000000000000001.userName}}, where the long number is the ID of this card. See Variables.

Error Handling

Under Error Handling, add Fallback Variables. They are set when the request fails or times out, with the same three fields as a mapping.

Allowed Destinations

The card calls public addresses only. A request to a private or internal address is blocked before it is sent, and the card takes its error path with a BLOCKED_TARGET result. Blocked targets:

  • Loopback and private ranges, such as 127.0.0.1, 10.x and 192.168.x.
  • Link-local metadata endpoints such as 169.254.169.254.
  • Hostnames that resolve into private space.
  • Non-HTTP schemes.

A misspelled domain also reads as blocked. A hostname that does not resolve to a public address looks the same as an internal host, and both return BLOCKED_TARGET. Check the spelling first.

To reach an internal service, expose it through a public HTTPS endpoint of your own. You cannot add a private host to an allowlist.

Connections

  • 1 input port. Receives execution.
  • Next. The request succeeded.
  • Timeout. The request ran past the timeout.
  • Error. An HTTP or network error.

Operations Cost

2 operations per execution.

Was this page helpful?

On this page