Webhooks
Webhooks
Webhooks are the push-based alternative to polling. Instead of periodically asking “are there new tickets?”, you register a URL that Codemeta OS notifies as soon as something happens.
Lifecycle
- Register. You create a webhook subscription per tenant, with a target URL, event filters and a secret.
- Receive. Codemeta OS sends POST requests to your URL.
- Verify. You check
X-Webhook-Signature. - Respond. 2xx → done. 4xx/5xx → retried with backoff.
Authenticity
Every request contains the header X-Webhook-Signature. The value is the
HMAC-SHA256 hex digest over the raw request body, computed with the
secret from the subscription.
X-Webhook-Signature: 91bb1b3f5e4a4b6c…
Verify it before any processing. Learn more in the Tutorial: Secure a webhook receiver.
Retries and ordering
- Retry backoff. On a non-2xx response or timeout, Codemeta OS repeats the delivery with exponential backoff.
- Multiple deliveries possible. Process idempotently. Every event has
a unique
idthat you can use for deduplication. - Ordering not guaranteed. Events can arrive in a different order than they happened on the platform. Do not rely on the order of receipt.
Body format
{
"id": "0193f1a2-…",
"type": "ticket.created",
"tenantId": "0192f2c0-…",
"createdAt": "2026-05-01T12:34:56.789Z",
"data": {
"id": "01938421-…",
"schema": "ticket",
"version": 1
}
}
data contains enough information for most use cases. If you need the
complete current object, fetch it directly via GET.
What is still changing
Codemeta OS is before its public launch. The event catalog is continuously extended. New event types are introduced additively; existing types do not change their format without versioning.
Further reading
- Event catalog — complete list of all events
- Tutorial: Secure a webhook receiver