Webhooks

The Webhook node.

The Webhook node starts a workflow on an HTTP request. A workflow has one trigger node.

  • URLs. The editor shows two URLs with the same last part: the test URL (/hooks-test/<path>) and the production URL (/hooks/<path>). The last part is the Path of the node. Without a path, it is a generated token. The test URL works before a publish: click Listen for test event or Execute step on the Webhook node, then send one request to it. The copy button beside each URL copies it. The production URL works after you publish and turn on Active. Two triggers cannot use the same path.
  • HTTP Method. GET, POST (default), PUT, PATCH, DELETE, or HEAD. A request with another method gets 405.
  • Authentication. None, Basic Auth (credential type "Basic auth"), Header Auth (credential type "Header auth"), or JWT Auth (credential type "JWT auth"). A bad or missing login gets 401 or 403.
  • JWT Auth. The request sends Authorization: Bearer <token>. The credential sets the algorithm. HS256, HS384, and HS512 use a secret. RS, PS, and ES algorithms use a public key (PEM). The alg in the token must be the same as the algorithm of the credential. A token after its exp time or before its nbf time gets 403.
  • Respond.
    • Immediately: answer 202 with { "runId": "…" } when the run is queued.
    • When Last Node Finishes: hold the request until the run ends, then answer with the output of the last node. After ZERODOT_WEBHOOK_SYNC_TIMEOUT_MS (30 s) the answer is 202. A failed run gets 500.
    • Using 'Respond to Webhook' Node: hold the request until a Respond to Webhook node runs. The node sets the status code, headers, and body. A run that ends without this node gets 500.
  • Options (click Add option): Allowed Origins (CORS), Binary Property, IP(s) Allowlist, Ignore Bots, No Response Body, Only Run If (an expression, for example {{ $trigger.body.type === "order" }}), Raw Body, Response Code, Response Data, and Response Headers.
  • The IP allowlist reads X-Forwarded-For. It works only when ZERODOT_TRUST_PROXY=true and a proxy that you control sets the header. Without it, the allowlist rejects every request.
  • The test URL checks the method only. It does not apply authentication, the allowlist, or the other options.
  • Binary Property. For POST, PUT, and PATCH, the node saves the body as a file in binary.<name> of the input: base64 text with the mimeType from Content-Type. Then body is empty. There is no separate binary store.

Change this page on GitHub