n8n Webhook node: the complete reference
Updated 2026-10-21 · 6 min read
- Each Webhook node has a test URL (listens 120 seconds) and a production URL.
- The production URL works only after you publish the workflow.
- Payload limit: 16 MB. On n8n Cloud, replies slower than 100 seconds fail with a 524.
The n8n Webhook node is a trigger that gives your workflow an HTTP endpoint. Anything that can send an HTTP request can start the workflow: Stripe, GitHub, a form, your own backend. The workflow can also answer like an API.
This reference covers URLs, paths, authentication and the request data you receive. It also covers response modes, every option and the most common errors.
Migrating a Pipedream HTTP trigger? The cutover plan for Pipedream HTTP triggers shows how to switch senders without losing events. This page is about the node itself.
Test URL and production URL
Each Webhook node has two URLs. You see them at the top of the node panel (docs).
| Test URL | Production URL | |
|---|---|---|
| Path prefix | /webhook-test/ |
/webhook/ |
| Registered when | You select Listen for test event (or execute the workflow) | You publish the workflow |
| Listens for | 120 seconds | Until you unpublish |
| Data shown in editor | Yes | No, see the Executions tab |
A typical production URL is https://your-n8n.example.com/webhook/orders.
On self-hosted n8n you can change the webhook, webhook-test and webhook-waiting prefixes. Use N8N_ENDPOINT_WEBHOOK, N8N_ENDPOINT_WEBHOOK_TEST and N8N_ENDPOINT_WEBHOOK_WAIT (endpoint variables).
Most "webhook not working" reports come down to this table. Either the sender uses the test URL, or the workflow was never published.
Path and route parameters
By default the Path is a random UUID. This avoids collisions between workflows. Set your own path when you want a stable, readable endpoint. Route parameters are allowed:
/orders/:orderId
/:tenant/events
/:tenant/orders/:orderId
The values arrive in params, for example $json.params.orderId.
n8n allows only one webhook per path and HTTP method across the whole instance. If you publish a second one with the same pair, it fails until you change one of them.
HTTP methods
The node supports DELETE, GET, HEAD, PATCH, POST and PUT. By default it accepts one method.
To accept several, open Settings and turn on Allow Multiple HTTP Methods. The node then has one output per method. So a GET and a POST to the same path can take different branches.
What the workflow receives
The Webhook node outputs one item with these parts, plus metadata such as the webhook URL:
{
"headers": { "content-type": "application/json", "x-signature": "..." },
"params": { "orderId": "1042" },
"query": { "dryRun": "true" },
"body": { "id": 1042, "total": 59.9 }
}
In the next node, reference a value as {{ $json.body.total }}. In later nodes, use {{ $('Webhook').first().json.body.total }}. Query values are strings, so convert them before you compare numbers.
Payload limit: 16 MB. Self-hosted instances can change it with N8N_PAYLOAD_SIZE_MAX (in MiB). File uploads via form-data have their own limit, N8N_FORMDATA_FILE_SIZE_MAX.
To receive files, add the Binary Property option (POST, PATCH or PUT). The file lands in the binary field you name.
To receive data in a raw format such as JSON or XML instead of parsed fields, turn on Raw Body.
Authentication
| Method | Sender must send | Typical use |
|---|---|---|
| None | Nothing | Public forms, senders that sign payloads instead |
| Basic auth | Authorization: Basic … |
Simple internal callers |
| Header auth | A header you define, for example X-API-Key: … |
Most server-to-server calls |
| JWT auth | A signed JWT | Callers that already issue JWTs |
The credential is stored like any other n8n credential.
On top of auth you can add an IP(s) Allowlist. Requests from other IPs get a 403. Is n8n behind a reverse proxy? Then set N8N_PROXY_HOPS, or the allowlist will see the proxy's IP.
Services like Stripe and GitHub sign the payload instead of sending a shared header. For those, keep Authentication on None and verify the signature first. Use the service's own n8n trigger node where one exists, or the Crypto node.
Signature code in a Code node needs crypto. It is blocked in internal runner mode. On self-hosted runners you must allow-list it with NODE_FUNCTION_ALLOW_BUILTIN=crypto.
Response modes
The Respond parameter decides what the caller gets back:
| Respond | Caller receives | Use when |
|---|---|---|
| Immediately | Response code and "Workflow got started" | Fire-and-forget events, slow workflows |
| When Last Node Finishes | Output of the last node (All Entries, First Entry JSON, First Entry Binary, or No Response Body) | Simple API endpoints |
| Using 'Respond to Webhook' Node | Whatever the Respond to Webhook node defines | Custom status codes, headers, early replies |
| Streaming response | Streamed output | AI agent workflows with streaming nodes |
On n8n Cloud, a request that gets no response within 100 seconds fails with a Cloudflare 524 (common issues). Anything that may run longer should respond immediately. The caller can then poll a second webhook for the result.
Options
| Option | What it does |
|---|---|
| Allowed Origins (CORS) | Comma-separated origins; * by default |
| Binary Property | Stores an uploaded file under this binary field |
| Ignore Bots | Skips link previewers and crawlers |
| IP(s) Allowlist | Allowed caller IPs; others get 403 |
| Only Run If | Expression on { body, headers, params, query }; requests that don't match get a 200 without creating an execution |
| Raw Body | Keeps the raw request body |
| Response Code / Headers / Content-Type / Data | Shape the response (availability depends on the Respond mode) |
| Property Name | Returns one key of the first entry instead of the whole object |
Only Run If helps when a sender posts many event types to one URL. For example, {{ $json.body.type === 'invoice.paid' }} ignores everything else without creating executions.
Since n8n 1.103.0, HTML responses are wrapped in a sandboxed iframe. So relative form actions, and scripts that touch the top window, won't work.
Testing with curl
curl -X POST https://your-n8n.example.com/webhook-test/orders \
-H 'Content-Type: application/json' \
-H 'X-API-Key: test-key' \
-d '{"id":1042,"total":59.9}'
Select Listen for test event first. Then run the command within 120 seconds. Once the workflow is published, switch to /webhook/.
Common errors
| Symptom | Cause | Fix |
|---|---|---|
| 404 on the production URL | Workflow not published | Publish it |
| 404 on the test URL | Not listening | Select Listen for test event, call within 120 s |
| Message that the path and method are already in use | Another published workflow has the same path and method | Change the path or unpublish the other workflow |
| 403 from allowed IPs | n8n is behind a proxy | Set N8N_PROXY_HOPS |
| 524 on Cloud | Response took longer than 100 s | Respond immediately, process in the background |
| Large requests rejected | Over the 16 MB payload limit | Raise N8N_PAYLOAD_SIZE_MAX (self-hosted) or send a link instead |
From Pipedream HTTP triggers
A Pipedream HTTP trigger gives each workflow a URL on *.m.pipedream.net. Its body limit is 512 KB by default. It returns a 200 "Success!" page unless you call $.respond() (Pipedream triggers).
In n8n the same workflow starts with a Webhook node, and $.respond() becomes a Respond to Webhook node. Every sender needs the new URL. Plan the switch before Pipedream Workflows stops on March 31, 2027.
Our converter creates the Webhook node with the right method and response mode for each HTTP-triggered workflow. It also lists the URLs you need to change. The report and 1 workflow are free. Full export: $3 per workflow, $1 each after 50, $19 minimum, one-off. Full process: migrate Pipedream to n8n.
Not affiliated with Pipedream or n8n.
FAQ
Why does my n8n webhook URL return 404?
Usually you are calling the production URL of a workflow that isn't published. Or you are calling the test URL when nobody clicked Listen for test event. The test URL listens for 120 seconds. The production URL works only after you publish.
What is the maximum payload size for the n8n Webhook node?
16 MB. On self-hosted n8n you can raise it with the N8N_PAYLOAD_SIZE_MAX environment variable.
How do I secure an n8n webhook?
Set Authentication to Basic auth, Header auth or JWT auth. You can also add an IP(s) Allowlist. Requests from IPs outside the allowlist get a 403.
Can one Webhook node accept both GET and POST?
Yes. In the node Settings, turn on Allow Multiple HTTP Methods. The node then gets one output per method.
How long can an n8n Cloud webhook take to respond?
n8n Cloud sits behind Cloudflare. A webhook that doesn't respond within 100 seconds fails with a 524. For long jobs, respond immediately and process in the background.
Sources (5)
- https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.webhook
- https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.webhook/common-issues
- https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.webhook/workflow-development
- https://docs.n8n.io/deploy/host-n8n/configure-n8n/basic-configuration/use-environment-variables/endpoints
- https://pipedream.com/docs/workflows/building-workflows/triggers