Webhooks
Webhooks send your systems a message when something happens in the workspace. They need the Webhook Events add-on, and only admins can add, edit or delete endpoints.
- Go to Developers, Webhooks and click Add endpoint.
- Enter the Endpoint URL, which must be a public https address, tick the events under Scopes, then click Add endpoint.
- Copy the signing secret. It's shown once.
- On your server, check the
X-Codi-Signatureheader:t=<time>,v1=<signature>, an HMAC-SHA256 of the time, a dot and the body, made with your secret. The page has a Node.js example.
| Group | Events |
|---|---|
| Agent | agent.created, agent.updated, agent.published, agent.draft_saved, agent.draft_discarded, agent.rolled_back, agent.deleted, agent.unarchived, agent.invoke, agent.message.completed, agent.message.failed |
| Conversation | conversation.created |
| Guardrail | guardrail.passed, guardrail.redacted, guardrail.blocked |
| Tool | tool.call.completed, tool.call.failed |
| Knowledge base | kb.retrieve |
| Policy and audit | policy.check, audit.commit |
| Subscription | subscription.addon.enabled, subscription.addon.disabled |
| Webhook | webhook.created, webhook.updated, webhook.secret_rotated, webhook.deleted |
- Rotate makes a new secret, with no overlap: deliveries switch to it within about 10 seconds.
- To pause an endpoint, click Edit, set Status to Paused and save. Paused · billing means it paused because the add-on was turned off.
- A failed delivery isn't retried. The workspace owner gets an email about failures instead. Each delivery is listed under Observability, Webhook logs.
Need some help? Email support
Something not working? See troubleshooting