sayintel
Endpoint

Create webhook

POST/api/public/v1/webhookswrite

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

Try it outPOST/api/public/v1/webhookswrite

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.

Paste an API key to run.

Body

NameInTypeRequiredDescription
urlbodystringyesPublic https URL that will receive POST callbacks.
eventsbodyarraynoEvent names to subscribe to. Defaults to ["*"] (all events).
descriptionbodystringno—
client_idbodystringnoThe agency client whose events this endpoint receives (all its campaigns).
campaign_idbodystringnoThe one campaign whose events this endpoint receives.
idempotency_keybodystringnoOptional 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.
workspacebodystringnoNot accepted on this tool: it acts on your own account, and naming another workspace is refused.
acting_accountbodystringnoWhich 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.