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

Webhook

core.webhook · version 2.1 · Trigger · webhook trigger

Starts the workflow when an HTTP request arrives.

Ports

PortKindLabelRequiredMax connections
output 0main

Credentials

SlotAccepted kindsRequired
httpBasicAuthhttp.basic
httpHeaderAuthhttp.header
jwtAuthhttp.jwt

Parameters

NameTypeDefaultRequiredShown whenDescription
multipleMethodsbooleanfalseAccept several methods.
httpMethodoptions"GET"HTTP method. Method the webhook listens for. One of GET, POST, PUT, PATCH, DELETE, HEAD.
pathstring""URL path after /webhook/; segments starting with ‘:’ become parameters.
authenticationoptions"none"One of none, basicAuth, headerAuth, jwtAuth.
responseModeoptions"onReceived"Respond. When and how the caller gets a reply. One of onReceived, lastNode, responseNode.
responseCodenumber200Response code.
responseDataoptions"firstEntryJson"responseMode = lastNodeResponse data. One of allEntries, firstEntryJson, firstEntryBinary, noData.
responseBinaryPropertyNamestring"data"responseData = firstEntryBinaryBinary property to return.
optionscollection{}
options.binaryPropertyNamestring"data"Binary property. Where uploaded files are stored; several files get an index suffix.
options.rawBodybooleanfalseKeep raw body. Also store the unparsed body as binary data.
options.ignoreBotsbooleanfalseIgnore bots. Drop requests from crawlers and link previews.
options.allowedOriginsstring"*"Allowed origins (CORS). Comma separated list, or * for any.
options.ipWhiteliststring""Allowed IP addresses. Comma separated IPs or CIDR ranges; empty allows all.
options.noResponseBodybooleanfalseNo response body.
options.responseDatastring""Custom response body. Body sent when responding immediately.
options.responseContentTypestring""Response content type.
options.responsePropertyNamestring""Property to return. Return only this property of the first item.
options.responseHeadersfixed_collectionResponse headers.

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.webhook1unverified
n8n-nodes-base.webhook>=2 <3unverified