Overview

A webhook trigger lives on the runtime that runs the bot (Desktop or a cloud computer). Its public address is a cloud-api channel route with provider webhook_trigger. The route queues deliveries while the runtime sleeps and relays them signed with the runtime’s device token. The runtime checks the sender’s own signature, keeps only the trigger’s events, logs each delivery and starts the bot on a task thread. Every tool in that run asks first. For the user guide, see Start a bot from another app.

Manage triggers (Clerk session)

Create body (snake_case). Only name and the bot are required:
A trigger in responses carries verify, route_id, public_url and has_secret, never the secret.

Public address (cloud-api)

Then PATCH /api/v1/webhook-triggers/:id with {"route_id", "public_url"}. Senders post to the url. cloud-api takes POST only, answers 200 at once, keeps the sender’s signature headers (X-Hub-Signature-256, X-GitHub-Event, Stripe-Signature, Linear-Signature, X-Shopify-Hmac-Sha256, X-Shopify-Topic, X-Allternit-Signature, X-Allternit-Event) and relays to the runtime at POST /webhooks/relayed/<route id>, signed with the device token (relay_auth).

Deliver straight to a runtime: POST /webhooks/inbound/:id

For a runtime the sender can reach directly. The sender’s signature is required here; an address trigger is refused, because only the relay proves the delivery came through its address.
Triggers made before November 2026 have no stored secret; for them, the old X-Allternit-Trigger-Secret header with the signature still works.

Answers and delivery status

Through the public address the sender always gets cloud-api’s 200; the delivery list holds the outcome.

The bot run

The runtime creates a task thread for the bot (created_by: "webhook", origin: {webhookTriggerId, deliveryId, source, event}). It restricts the session’s tools to ask (PLAN_ONLY: deny) and sends one turn with the instructions and the event JSON. The JSON is marked as untrusted data, and is cut at 60,000 characters. A bot bound to another vendor can’t take webhook events: the delivery fails with that reason. Connector events still create a Rails ticket for MCP Events from a connected app.