Webhook events and payloads
To choose an event, read the catalogue on the deployment that will deliver it. tradebird webhooks catalogue --json and client.webhooks.catalogue() list the event names your integration can use. Select the exact type and check which resources your receiver is allowed to follow.
For example, if your app should alert a colleague when a mailbox needs attention, subscribe to the mailbox event and keep the resource IDs it supplies. Use the receiver’s authorized client to fetch the current state before showing the alert. Access is checked again on delivery and catch-up.
Each envelope includes id, type, schema_version, occurred_at, tenant_id, resource, and event-specific data. For example, webhook.test carries data.synthetic: true. A mailbox attention event tells you to inspect the authorized inquiry. The event alone cannot authorize reading an email or sending a reply.
Verify the raw-body signature headers webhook-id, webhook-timestamp, and webhook-signature. Deduplicate by event ID. Keep the original fact separate from current resource state, which may have changed since the event occurred. Subscribe and recover.
Events for a shared mailbox
| Event | When to fetch current state |
|---|---|
mailbox_activation.changed | The activation started, changed, paused, resumed, or disconnected. |
mailbox_conversation.changed | An inquiry needs input, has a draft ready, or has been handled. |
mailbox.attention_required | Inspect the mailbox for a problem that needs a person. |
These events carry IDs and state. Read mail content through the separately authorized mailbox operations.