Webhook Data Receiver
n8n-nodes-base.webhook
Receive and validate incoming webhook data with custom authentication and payload processing. Essential for integrating external systems.
π‘ Use Cases
- Receive data from external applications
- Trigger workflows from third-party events
- Create custom API endpoints
π Node Configuration
{
"nodes": [
{
"parameters": {
"content": "## π Webhook Receiver\n\n**Usage:**\nReceives incoming webhook data and validates payload.\n\n**Required Input:**\n- Webhook POST request with body containing `event` and `data` fields\n\n**Setup:**\n1. No credentials needed\n2. Configure webhook path\n3. Validates and processes incoming data\n4. Returns success response\n\n**Output:**\nValidated webhook data with metadata and timestamp",
"height": 238,
"width": 389,
"color": 4
},
"type": "n8n-nodes-base.stickyNote",
"position": [
96,
332
],
"typeVersion": 1,
"id": "sticky-d4c3b2a1-f0e9-4d8c-7b6a-5e4f3d2c1b0a",
"name": "Sticky Note"
},
{
"parameters": {
"httpMethod": "POST",
"path": "custom-webhook",
"responseMode": "responseNode",
"options": {
"rawBody": false
}
},
"id": "d4c3b2a1-f0e9-4d8c-7b6a-5e4f3d2c1b0a",
"name": "Webhook Receiver",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1.1,
"position": [
368,
400
],
"webhookId": "custom-webhook-id"
},
{
"parameters": {
"mode": "runOnceForEachItem",
"jsCode": "// Validate and process webhook data\nconst payload = $input.item.json.body;\n\n// Example validation\nif (!payload || !payload.event || !payload.data) {\n throw new Error('Invalid webhook payload');\n}\n\n// Process the data\nreturn {\n json: {\n eventType: payload.event,\n receivedAt: new Date().toISOString(),\n data: payload.data,\n source: $input.item.json.headers['user-agent'] || 'Unknown',\n validated: true\n }\n};"
},
"id": "c3b2a1f0-e9d8-4c7b-6a5e-4f3d2c1b0a9f",
"name": "Validate Webhook Data",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
640,
400
]
},
{
"parameters": {
"respondWith": "json",
"responseBody": "={{ { \"status\": \"success\", \"message\": \"Webhook received and processed\", \"id\": $json.eventType } }}"
},
"id": "b2a1f0e9-d8c7-4b6a-5e4f-3d2c1b0a9f8e",
"name": "Respond to Webhook",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1,
"position": [
912,
400
]
}
],
"connections": {
"Webhook Receiver": {
"main": [
[
{
"node": "Validate Webhook Data",
"type": "main",
"index": 0
}
]
]
},
"Validate Webhook Data": {
"main": [
[
{
"node": "Respond to Webhook",
"type": "main",
"index": 0
}
]
]
}
},
"pinData": {},
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "751aeba95f3d1aebe5a6ebe9d20293dd6c0f61b00ef369c580f0dc54913f5fcb"
}
}
BuildShip configuration not available for this node.
Make.com configuration not available for this node.