Docs
Sign in

HTTP Request

HTTP Request calls a web address from your workflow and saves the response so later nodes can use it.

Screenshot to add: The HTTP Request settings panel with Request, Body, Authentication and Options sections.

When to use it

Use it when you need to read from or send data to a REST API. In the palette it is described as "REST API call". On the canvas the node shows a coloured badge with the method, such as GET or POST.

Settings

The settings panel has four sections.

Request

FieldWhat it doesNotes
MethodThe kind of requestGET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS. Default GET
URLThe address to callPlaceholder https://api.example.com/v1/users
ParamsQuery string key-value pairsRows of Key and Value. Values can use {{variable}}
HeadersRequest headers, such as Accept or Content-TypeSame row editor

In Params and Headers, each row has a checkbox to switch it on or off, and a remove button. Click Add row for another one.

Body

The Body section only appears for methods other than GET, HEAD and OPTIONS.

FieldWhat it doesNotes
Body typeHow the body is sentnone, x-www-form-urlencoded, form-data (multipart), raw – JSON, raw – text / XML / HTML. Default is JSON
BodyThe contentFor JSON the hint is "JSON — supports {{ Jinja2 }} templates". For the two form types it is a key-value list
Content-TypeRaw bodies onlyText, XML, HTML or JavaScript. Default Text

Authentication

FieldWhat it doesNotes
Auth typeHow to sign the requestNone, Bearer token, Basic auth (user:pass), API key header. Default None
Auth valueThe secret to sendHidden input, placeholder {{env.API_KEY}}. Bearer: the token without "Bearer ". Basic: username:password. API key: Header-Name: value, or just the value, which is sent as X-API-Key

Options

FieldWhat it doesNotes
Timeout (ms)How long to wait for a replyDefault 30000 (30 seconds)
Output keyName under which the response is savedA new node starts with http_output. If empty, the form shows response
Follow redirectsWhether to follow redirectsOn by default
Extract path (JSONPath)Keep only part of the responseExample $.data.items. Empty keeps everything

Inputs and outputs

  • Input: one connection at the top.
  • Output: one connection at the bottom. The response is stored under the Output key.

Example

Illustrative. To look up a customer, set Method to GET, URL to https://api.example.com/v1/users/{{ input.id }}, Auth type to Bearer token, and Extract path to $.data. A later node reads the result from the output key.

Tips

  • Switch a header or param row off with its checkbox instead of deleting it while you test.
  • Use Extract path to keep the saved data small.
  • Sibling nodes exist for other API styles: GraphQL, SOAP and gRPC each have their own node and settings. They are not part of the core list covered here.