{
  "schemaVersion": 1,
  "snapshotDate": "2026-10-23",
  "slug": "reference-app-core-trigger-webhook",
  "title": "Webhook trigger",
  "section": "Library asset reference",
  "description": "Use with the workflow Webhook trigger. Requests require the workflow webhook key.",
  "kind": "trigger",
  "url": "/wiki/reference-app-core-trigger-webhook/",
  "markdown": "/wiki/reference-app-core-trigger-webhook/index.md",
  "json": "/wiki/reference-app-core-trigger-webhook/index.json",
  "headings": [
    {
      "id": "sockets-and-configuration",
      "title": "Sockets and configuration",
      "depth": 2
    },
    {
      "id": "example",
      "title": "Example",
      "depth": 2
    },
    {
      "id": "boundaries",
      "title": "Boundaries",
      "depth": 2
    },
    {
      "id": "catalog-identity",
      "title": "Catalog identity",
      "depth": 2
    },
    {
      "id": "outputs",
      "title": "Outputs",
      "depth": 2
    },
    {
      "id": "configuration-schema",
      "title": "Configuration schema",
      "depth": 2
    },
    {
      "id": "source-and-installed-versions",
      "title": "Source and installed versions",
      "depth": 2
    }
  ],
  "sources": [
    "../OpenNodeFlow-Library/work/catalog-all.mjs",
    "../OpenNodeFlow-Library/work/azure-pack-consolidation-20261022/catalog-policy.mjs",
    "../OpenNodeFlow-Library/work/developer-packs-20261022/catalog.mjs",
    "shared/seed.ts",
    "shared/storage-library.ts",
    "shared/variable-library.ts",
    "shared/control-flow.ts",
    "shared/remote-routes.ts",
    "server/runtime-library.ts",
    "shared/error-library.ts",
    "shared/storage-model.ts",
    "shared/builtin-documentation.ts"
  ],
  "family": "app-core",
  "contract": {
    "key": "app.core.trigger.webhook",
    "slug": "app-core-trigger-webhook",
    "name": "Webhook trigger",
    "kind": "trigger",
    "family": "app-core",
    "packId": null,
    "category": "Triggers",
    "description": "Use with the workflow Webhook trigger. Requests require the workflow webhook key.",
    "inputs": [],
    "outputs": [
      {
        "id": "next",
        "name": "Next",
        "type": "control",
        "typeName": "Control",
        "required": false
      },
      {
        "id": "payload",
        "name": "Payload",
        "type": "object",
        "typeName": "Object",
        "required": false
      }
    ],
    "configSchema": {},
    "documentation": "# Webhook trigger\n\nPasses an accepted webhook body into a selected workflow branch. The server owns HTTP routing and acceptance; this code only logs receipt and returns the input object. Adding this asset alone does not expose an endpoint.\n\n## Sockets and configuration\n- No inputs or asset-specific configuration.\n- **payload** (object): unchanged webhook/run input from `context.input`.\n- **next** (control): automatic success route.\n\nSet this graph instance's entry mode to webhook. Automatic delivery requires both its per-node enabled flag and the workflow automation master. Requests target `/api/hooks/<workflowId>/<triggerNodeId>` and supply the workflow's protected `X-ONF-Webhook-Key` header. All webhook nodes in one workflow share that workflow key; never place its value in asset documentation or graph literals.\n\n## Example\nSend a JSON object such as `{\"eventId\":\"example-001\",\"action\":\"created\"}` through the configured endpoint. Wire payload into a typed event decoder and next into its Execute socket. A successful HTTP 202 means accepted, not completed; inspect the resulting run separately.\n\n## Boundaries\nThe trigger neither validates a domain event nor authenticates a sender inside its code. It does not deduplicate event IDs or checkpoint delivery. Retries can produce repeated runs, so downstream external actions need their own idempotency strategy. Paused, busy or mismatched entries reject acceptance; pausing does not cancel already accepted jobs. Payloads are retained in run input/output. There is no outbound network call, secret read or durable-state write in this body.",
    "tags": [
      "builtin",
      "trigger"
    ],
    "source": "app-builtin-catalog"
  }
}
