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 Tool

ai.tool_http_request · version 1.1 · AI sub-node

Lets the model call an HTTP API.

Ports

PortKindLabelRequiredMax connections
output 0ai_tool

Credentials

SlotAccepted kindsRequired
httpHeaderAuthhttp.header
httpQueryAuthhttp.query
httpBasicAuthhttp.basic
httpBearerAuthhttp.bearer

Parameters

NameTypeDefaultRequiredShown whenDescription
toolDescriptionstringyesDescription. Tells the model what the API does and when to call it.
methodoptions"GET"One of GET, POST, PUT, PATCH, DELETE, HEAD.
urlstringyesURL. Use {name} for values the model fills in.
authenticationoptions"none"One of none, genericCredentialType.
genericAuthTypeoptionsauthentication = genericCredentialTypeCredential Type. One of httpHeaderAuth, httpQueryAuth, httpBasicAuth, httpBearerAuth.
sendQuerybooleanfalseSend Query.
specifyQueryoptions"keypair"sendQuery = trueQuery Format. One of keypair, json, model.
parametersQueryfixed_collectionsendQuery = true; specifyQuery = keypairQuery Parameters.
parametersQuery.valuescollection
parametersQuery.values.namestring
parametersQuery.values.valueProvideroptions"modelRequired"Value Source. One of modelRequired, modelOptional, fieldValue.
parametersQuery.values.valuestring
jsonQueryjsonsendQuery = true; specifyQuery = jsonQuery JSON.
sendHeadersbooleanfalseSend Headers.
specifyHeadersoptions"keypair"sendHeaders = trueHeaders Format. One of keypair, json, model.
parametersHeadersfixed_collectionsendHeaders = true; specifyHeaders = keypairHeaders Parameters.
parametersHeaders.valuescollection
parametersHeaders.values.namestring
parametersHeaders.values.valueProvideroptions"modelRequired"Value Source. One of modelRequired, modelOptional, fieldValue.
parametersHeaders.values.valuestring
jsonHeadersjsonsendHeaders = true; specifyHeaders = jsonHeaders JSON.
sendBodybooleanfalseSend Body.
specifyBodyoptions"keypair"sendBody = trueBody Format. One of keypair, json, model.
parametersBodyfixed_collectionsendBody = true; specifyBody = keypairBody Parameters.
parametersBody.valuescollection
parametersBody.values.namestring
parametersBody.values.valueProvideroptions"modelRequired"Value Source. One of modelRequired, modelOptional, fieldValue.
parametersBody.values.valuestring
jsonBodyjsonsendBody = true; specifyBody = jsonBody JSON.
placeholderDefinitionsfixed_collectionPlaceholder Definitions.
placeholderDefinitions.valuescollectionPlaceholder.
placeholderDefinitions.values.namestring
placeholderDefinitions.values.descriptionstring
placeholderDefinitions.values.typeoptions"string"One of string, number, boolean, json.

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/n8n-nodes-langchain.toolHttpRequest1unverified