Create webhook
Register an https endpoint to receive signed event callbacks for ONE client or ONE campaign. Pass client_id (every campaign of that agency client) or campaign_id (that campaign only); on a login with agency clients one of them is required, and an endpoint never hears another client's events. On a login with no clients both may be omitted (the whole account). Events: run.started, run.completed, run.failed, drafts.ready, message.ready, message.approved, push.completed, decision.opened, signal.new, brief.ready, or "*" for all. Returns the signing secret ONCE — deliveries carry `X-Sayintel-Signature: t=<unix>,v1=<hex hmac_sha256(secret, `${t}.${rawBody}`)>`. Reject deliveries older than 5 minutes.
Request
curl -X POST "https://sayintel.com/api/public/v1/webhooks" \
-H "Authorization: Bearer $SAYINTEL_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"url": "<url>"}'Try it out
Sent as a bearer token to this site only, and kept in this tab's session storage. It is never written to disk or sent anywhere else.
Body
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| url | body | string | yes | Public https URL that will receive POST callbacks. |
| events | body | array | no | Event names to subscribe to. Defaults to ["*"] (all events). |
| description | body | string | no | — |
| client_id | body | string | no | The agency client whose events this endpoint receives (all its campaigns). |
| campaign_id | body | string | no | The one campaign whose events this endpoint receives. |
| idempotency_key | body | string | no | Optional retry guard. Reusing the same key with the same arguments replays the first result instead of running the action twice; reusing it with different arguments is rejected. |
| workspace | body | string | no | Not accepted on this tool: it acts on your own account, and naming another workspace is refused. |
| acting_account | body | string | no | Which sayintel login this call acts on: an account_id or email from list_accounts. Required once logins are linked to this connection. |
Response
{
"ok": true,
"tool": "create_webhook",
"kind": "write",
"data": { ... },
"error": null
}Notes
- Scope required: write. How scopes work.
- Accepts Idempotency-Key. A retry with the same key replays the first result instead of repeating the work.
- Same capability over MCP as the tool create_webhook. MCP setup.