Skip to main content
Each bot has a webhook URL. When another system sends a POST to it, the bot’s active routines with Webhook turned on run, with the request body as their input. Use it to react to new orders, form submissions, alerts, or anything that can send an HTTP request.

Set it up

  1. Create a routine on the bot, add the Webhook trigger, and switch it Active.
  2. The routine editor shows the URL to POST to and a key. Copy both.
Click Rotate key to replace the key. The old key stops working at once. From the API, bots/rotateWebhookSecret with { botId } returns a new secret and the path.

Send an event

Limits and responses

Up to five active webhook routines on the bot run for each event.

Safety

The webhook body comes from outside, so Cadence treats it as untrusted. A run started by a webhook needs the bot owner’s approval for any action with side effects, and cannot visit new websites.

GitHub

For GitHub events, turn on the Git event trigger and point a GitHub webhook at /api/v1/bots/YOUR_BOT_ID/github with the key as the GitHub webhook secret. Cadence checks GitHub’s X-Hub-Signature-256 signature.