On this page
Sommatic Docs
Open portal

Webhook Receiver

Listens for external HTTP requests to trigger the workflow.

View as Markdown
Open in
Triggers Available webhook.trigger Version 1.0.0 Execution: async

Entry node for workflows started by an HTTP call. It checks the request method and an optional shared secret, then outputs the request's headers, body, query and method.

This operator exposes a unique URL endpoint. When an external service (e.g., Stripe, Typeform, GitHub) sends a POST request to this URL, the workflow is instantiated with the request body as the payload.

Features:

  • Method Agnostic: Can be configured to accept POST, GET, PUT.
  • Authentication: Supports validating headers or signatures/secrets.
  • Response: Can define what response to send back to the caller (Sync vs Async).

Use Cases:

  • Integrating form submissions (Typeform).
  • Reacting to payment events (Stripe Webhook).
  • Building a custom API endpoint.

How it works

  1. What starts it: a POST to the backend at /workflow-orchestration/trigger/webhooks/{mode}/{bindingIdentifier}, where bindingIdentifier is an ingress binding id or slug that points to the workflow. The body limit is 5 MB. The call is synchronous by default; execution_mode=async (query string or body) returns at once with the instance id.
  2. mode test runs the workflow draft; prod runs the default published version (or the latest one) and fails when none exists. The request becomes the run's input { body, headers, query, method }.
  3. The node resolves its config and compares the request method (upper-cased, default GET) with method (default POST) unless method is ANY.
  4. Checks auth_type: none (default); header compares the header named auth_config.header_name with auth_config.secret; basic compares the whole Authorization header with auth_config.secret; any other value is rejected.
  5. Outputs { headers, body, query, method } on out with meta.reply_mode.

In a workflow

The node as it appears in a workflow file (draft_nodes[]), and the envelope of a successful run.

{
  "node_id": "node-webhook",
  "label": "Order webhook",
  "operator_slug": "webhook.trigger",
  "operator_version": "1.0.0",
  "config": {
    "method": "POST",
    "auth_type": "header",
    "auth_config": {
      "header_name": "x-webhook-token",
      "secret": "<shared-secret>"
    }
  }
}

Configuration

method string Optional

Default: POST

Allowed values: POSTGETPUTPATCHDELETE

path string Optional

Custom path segment (e.g. /my-hook).

response_mode string Optional

Immediate: Returns 200 OK instantly. Workflow End: Waits for workflow to finish and returns result.

Default: immediate

Allowed values: immediateworkflow_end

Behaviour in the code

What the implementation does with these keys beyond what the schema says.

auth_type Read by the code, not declared
Undeclared, like auth_config (header_name, secret) and reply_mode (default sync, only echoed in meta). Values are compared as plain strings; basic does not decode the header.
method
The code also accepts ANY, which is not in the schema's enum. Since the backend route is POST-only, keep POST or ANY.
path
Declared but not read: the URL is defined by the ingress binding. response_mode is not read either; use execution_mode=async on the call for an immediate response.

Output ports

out default

The method and authentication checks passed. Header names are lower-case.

Data
{
  "headers": {
    "content-type": "application/json",
    "user-agent": "curl/8.7.1"
  },
  "body": {
    "event": "order.received",
    "data": {
      "order_id": "ord_123",
      "total": 129.99
    }
  },
  "query": {},
  "method": "POST"
}
error

The method or the authentication check failed. The output is the envelope { ok, errors, port, meta: { status_code } }; status_code (405 or 401) is informational and does not change the HTTP response of the call.

Data
{
  "ok": false,
  "errors": [
    "Authentication Failed: Invalid header secret"
  ],
  "port": "error",
  "meta": {
    "status_code": 401
  }
}

In expressions

What a later node can read from this node's output with $("Webhook Receiver").item.json.<path> (write your node's label instead of Webhook Receiver). Editor marks the paths the workflow editor suggests under Previous Nodes (the output contract); Worker marks the paths the worker really returns through out, from the output shown in Ports.

ExpressionEditorWorker
$("Webhook Receiver").item.json.bodyobject= {…}
$("Webhook Receiver").item.json.headersobject= {…}
$("Webhook Receiver").item.json.queryobject= {…}
$("Webhook Receiver").item.json.headers.content-typestringNot suggested by the editor= "application/json"—
$("Webhook Receiver").item.json.headers.user-agentstringNot suggested by the editor= "curl/8.7.1"—
$("Webhook Receiver").item.json.body.eventstringNot suggested by the editor= "order.received"—
$("Webhook Receiver").item.json.body.dataobjectNot suggested by the editor= {…}—
$("Webhook Receiver").item.json.methodstringNot suggested by the editor= "POST"—

— Worker: The worker returns it but the editor does not suggest it: write it by hand. Keys inside objects can depend on your data or configuration (for example one key per label).

Errors

Message Port Cause and fix
Method Not Allowed: Expected <method>, got <incoming> error method is not POST or ANY. The ingress route only accepts POST, so any other value always fails.
Authentication Failed: Invalid header secret error auth_type is header and the header is missing or different. Authentication Failed: Invalid basic auth is the basic equivalent.
Authentication Failed: Auth type <auth_type> not implemented error auth_type is not none, header or basic (for example jwt or hmac).
No published version found for this workflow error Returned by the backend, before the node runs, for a prod call to a workflow that was never published. Webhook binding not found means the binding id or slug is wrong.

Output contract

body object Optional
headers object Optional
query object Optional

Contracts (JSON Schema)

The definition exactly as the orchestrator declares it. All is the whole *.definition.js; compare it with the sections above to spot differences between the documentation and the schema. Use it to validate a node before you publish.

{
  "slug": "webhook.trigger",
  "name": "Webhook Receiver",
  "category": "triggers",
  "version": "1.0.0",
  "description": "Listens for external HTTP requests to trigger the workflow.\n\n  This operator exposes a unique URL endpoint. When an external service (e.g., Stripe, Typeform, GitHub) sends a POST request to this URL, the workflow is instantiated with the request body as the payload.\n\n  **Features:**\n  - **Method Agnostic:** Can be configured to accept POST, GET, PUT.\n  - **Authentication:** Supports validating headers or signatures/secrets.\n  - **Response:** Can define what response to send back to the caller (Sync vs Async).\n\n  **Use Cases:**\n  - Integrating form submissions (Typeform).\n  - Reacting to payment events (Stripe Webhook).\n  - Building a custom API endpoint.",
  "capabilities": [
    "http",
    "webhook",
    "api",
    "ingress"
  ],
  "config_schema": {
    "type": "object",
    "properties": {
      "method": {
        "type": "string",
        "enum": [
          "POST",
          "GET",
          "PUT",
          "PATCH",
          "DELETE"
        ],
        "default": "POST",
        "title": "HTTP Method"
      },
      "path": {
        "type": "string",
        "title": "Route Path",
        "description": "Custom path segment (e.g. /my-hook)."
      },
      "response_mode": {
        "type": "string",
        "enum": [
          "immediate",
          "workflow_end"
        ],
        "default": "immediate",
        "description": "Immediate: Returns 200 OK instantly. Workflow End: Waits for workflow to finish and returns result."
      }
    }
  },
  "input_contract_schema": null,
  "output_contract_schema": {
    "type": "object",
    "description": "The incoming HTTP request data.",
    "properties": {
      "body": {
        "type": "object"
      },
      "headers": {
        "type": "object"
      },
      "query": {
        "type": "object"
      }
    }
  },
  "ports": [
    {
      "port_id": "out",
      "label": "Received",
      "is_default": true,
      "description": "Request received."
    },
    {
      "port_id": "error",
      "label": "Error"
    }
  ],
  "execution_mode": "async",
  "tags": [
    "http",
    "api",
    "webhook",
    "trigger"
  ],
  "is_stateful": false,
  "publisher": {
    "identity": "org_sommatic_ai",
    "profile": {
      "name": "Sommatic AI",
      "verified": true,
      "url": "https://me.veripass.com/sommatic",
      "logo_url": null
    }
  }
}

Execution

Execution
async
Stateful
No
Capabilities
httpwebhookapiingress
Tags
httpapiwebhooktrigger

Notes and limits

  • The ingress endpoint itself is unauthenticated; protection depends on auth_type in this node and on the binding. A failed check still creates a run, which ends on error.
  • A paused workflow is not run: in test mode the call gets 423, in prod mode it gets 200 with a paused instance. In the editor with sample data the engine skips this node and passes the sample input on out.
  • Downstream, read the payload at {{ $json.body.<field> }}.

Reviewed against the orchestrator code · 31e874b · 2026-11-26

Install agent tools

Give your coding agent the official Sommatic AI docs: skills, the docs MCP server and Markdown pages, so it never has to scrape the site.

Skills only. They do not update by themselves; run it again to refresh.

npx skills add https://docs.sommatic.ai
How agents read these docs