N8nWebhook
N8nWebhook
Section titled “N8nWebhook”Receive webhook from n8n
Endpoint: /api/n8n/n8nwebhook
Tags: n8n Integration
API Details
GET /api/n8n/n8nwebhook
Request
Section titled “Request”schema: z.object({ event: Str({ description: "Event type" }), payload: z.record(z.any()).describe("Event payload"), workflow: z.object({ id: Str({ description: "n8n workflow ID" }), name: Str({ description: "n8n workflow name" }) }).optional() }),Responses
Section titled “Responses”Status Code: 200
Section titled “Status Code: 200”Webhook processed successfully
schema: z.object({ success: Bool(), result: z.record(z.any()), }),Status Code: 400
Section titled “Status Code: 400”Bad request
schema: z.object({ success: Bool(), error: Str(), }),Status Code: 401
Section titled “Status Code: 401”Unauthorized
schema: z.object({ success: Bool(), error: Str(), }),