Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

HTTP Request

core.http_request · version 4.2 · Action

Call any HTTP API and use the response in the workflow.

Ports

PortKindLabelRequiredMax connections
input 0main
output 0main

Credentials

SlotAccepted kindsRequired
httpAuthhttp.basic, http.bearer, http.header, http.query, http.custom, http.digest, http.oauth2, http.oauth1

Parameters

NameTypeDefaultRequiredShown whenDescription
methodoptions"GET"HTTP method to use. One of GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS.
urlstring""yesURL. Address to call, including the scheme.
authenticationoptions"none"How to authenticate the request. One of none, genericCredentialType, predefinedCredentialType.
genericAuthTypeoptionsauthentication = genericCredentialTypeGeneric auth type. Kind of generic credential. One of httpBasicAuth, httpDigestAuth, httpHeaderAuth, httpQueryAuth, httpCustomAuth, httpBearerAuth, oAuth1Api, oAuth2Api.
nodeCredentialTypestringauthentication = predefinedCredentialTypeCredential type. Integration credential type to reuse for this request.
sendQuerybooleanfalseSend query parameters. Add query parameters to the URL.
queryParametersfixed_collectionsendQuery = trueQuery parameters. Name/value pairs.
queryParameters.parameterscollectionParameter. One name/value pair.
queryParameters.parameters.namestring""Parameter name.
queryParameters.parameters.valuestring""Parameter value.
sendHeadersbooleanfalseSend headers. Add request headers.
headerParametersfixed_collectionsendHeaders = trueHeaders. Name/value pairs.
headerParameters.parameterscollectionParameter. One name/value pair.
headerParameters.parameters.namestring""Parameter name.
headerParameters.parameters.valuestring""Parameter value.
sendBodybooleanfalseSend body. Send a request body.
contentTypeoptions"json"sendBody = trueBody content type. How the body is encoded. One of json, form-urlencoded, multipart-form-data, raw, binaryData.
specifyBodyoptions"keypair"sendBody = trueSpecify body. Enter fields one by one or as JSON. One of keypair, json, string.
bodyParametersfixed_collectionspecifyBody = keypairBody fields. Name/value pairs.
bodyParameters.parameterscollectionParameter. One name/value pair.
bodyParameters.parameters.namestring""Parameter name.
bodyParameters.parameters.valuestring""Parameter value.
jsonBodyjson""specifyBody = jsonJSON body. Body as JSON.
rawContentTypestring""contentType = rawRaw content type. Content-Type sent with a raw body.
bodystring""contentType = rawRaw body text.
inputDataFieldNamebinary_property"data"contentType = binaryDataBinary property. Binary property of the input item to send.
optionscollectionAdditional request options.
options.timeoutnumber300000Timeout (ms). Abort the request after this many milliseconds.
options.allowUnauthorizedCertsbooleanfalseIgnore TLS certificate errors. Accept invalid or self-signed certificates.
options.proxystring""HTTP proxy URL, for example http://proxy:8080.
options.queryParameterArraysoptions"brackets"Array format in query. How array values are written in the query string.
options.batchingfixed_collectionSend items in batches: batchSize items, then wait batchInterval ms.
options.redirectfixed_collectionRedirects. followRedirects and maxRedirects.
options.responsefixed_collectionresponseFormat (autodetect, json, text, file), fullResponse, neverError, outputPropertyName.
options.paginationfixed_collectionRepeat the request for further pages using $response and $pageCount.
options.retrycollectionRetry (Tappet). maxRetries, initialDelayMs, maxDelayMs: retry 429/5xx responses, honouring Retry-After.

Import

Exported workflows that use these node types import to this node. Unverified ranges import with a parameter warning until parity fixtures confirm them; see Migrating.

Source typeVersion rangeStatusFixtures
n8n-nodes-base.httpRequest1unverified
n8n-nodes-base.httpRequest2unverified
n8n-nodes-base.httpRequest3unverified
n8n-nodes-base.httpRequest>=4 <5unverified