Event Envelope and Payload Contracts
Stable envelope
Every event is wrapped in:typetimestampdata
Event type coverage in your platform
Your seeded default catalog includes domains like:user.*session.*organization.*workspace.*api_key.*agent.*execution_context.*
Sample payload examples
Contract handling guidance
- Route behavior by
type, not by inferred payload shape. - Treat unknown fields as non-breaking additions.
- Keep strict validation only for fields you truly require.
- Log unsupported
typevalues for forward compatibility.
API contract examples
1) Signature verification input
Use this canonical message format for verification:2) Event envelope consumed by receivers
3) API spec to validate payload and replay behavior
Usedocumentation/api-specs/backend-api/webhooks-openapi.yaml for:
- Delivery history endpoints
- Replay task endpoints
- Analytics and timeseries endpoints
Go-live checklist
- Raw-body signature verification passes integration tests.
- Idempotency guard keyed by
webhook-idis deployed. - Queue-first processing path is in place.
- Replay runbook tested on staging data.
- Alerting for receiver failures and backlog is active.
