Skip to main content

Webhooks API

This reference covers the REST API for managing webhook subscriptions. For setup, security verification, and retry handling patterns, see the Webhook Integration Guide.

Base URL

All endpoints require a Bearer API key in the Authorization header.

Event Types

Subscribe to one or more event types when registering a webhook. Events are namespaced by domain. Wildcard * is supported (e.g., payment.*) but not recommended in production — explicit lists make consumer behavior clearer.

Endpoints

Register Webhook

Body
Response 201
signingSecret is returned only at registration. Store it securely. If lost, use POST /webhooks/{id}/rotate-secret to generate a new one (and update your consumer).

List Webhooks

Response 200

Update Webhook

Body (any subset of fields)

Delete Webhook

Rotate Signing Secret

Response 200
After rotation, both the old and new secrets are valid for 24 hours to allow zero-downtime rollover. Update your consumer to verify against the new secret, then the old secret is invalidated.

Retry a Failed Event

Re-attempts delivery immediately. Returns the same retry semantics as the original delivery (exponential backoff for subsequent failures).

List Recent Deliveries

Response 200

Event Payload Shape

Every webhook POST to your endpoint follows this envelope:

Headers

Always verify X-Cronozen-Signature before processing — see the verification example.

Rate Limits

Webhook outbound delivery from Cronozen has no per-endpoint rate limit, but high-frequency endpoints may queue. If your endpoint cannot keep up with a burst, return 429 Retry-After — Cronozen respects this header. Webhook management API calls follow standard API rate limits (see API Overview).

See Also