Webhooks Overview
Outbound webhook delivery with signed payloads, retries, v1 caller endpoints and v2 per-recipient endpoints.
The PlatformXe Webhooks Service delivers event notifications to your application via HTTP callbacks. When an event occurs, a signed JSON payload is sent to the endpoints subscribed to it.
Two delivery engines
Every endpoint has an engineVersion.
| v1 (engine 1) | v2 (engine 2) | |
|---|---|---|
| Endpoint belongs to | The calling service (untargeted) | One recipient of the calling service (recipientRef) |
| Receives | Every matching event of the service | Only events dispatched to its recipient |
| Signature headers | X-Webhook-* | X-Caldera-* plus the legacy X-Webhook-* pair |
| URL policy | HTTPS | HTTPS, no credentials in the URL, public host; re-checked before every attempt |
| Redirects | Never followed (a 3xx is a failed attempt) | Never followed (a 3xx is a failed attempt) |
| Secret at rest | Plaintext | Sealed; the plaintext is shown once |
| Cap | Per calling service | Per recipient (default 5; not counted toward the service cap), within a ceiling of 50,000 recipient endpoints per service |
| Status | ACTIVE / PAUSED / FAILING | FAILING after 4 consecutive failures still receives events and returns to ACTIVE on the next success; PAUSED receives nothing |
v1 behaviour is unchanged for every existing endpoint. An endpoint created without engineVersion is v1, unless a recipientRef is given and the PLATFORMXE_WEBHOOK_ENGINE_DEFAULT environment variable is 2 (with any other value a recipientRef without engineVersion: 2 is refused).
How it works
- You register a webhook URL and the event types it subscribes to (a v2 endpoint also names its
recipientRef). - When a matching event fires (or you dispatch one to a recipient), PlatformXe sends an HTTP POST with a signed JSON body
{ event, event_id, timestamp, data }. - Your endpoint returns a
2xxstatus within 10 seconds to acknowledge receipt. - A failed delivery is retried with exponential backoff; after the last attempt it is marked
FAILED(and, for v2, reported to the PlatformXe operators once). - You can read an endpoint's delivery log and, for v2, redeliver a delivery.
A v2 dispatch answers once the deliveries are recorded; the attempts themselves run after the response.
Key features
- Event-based subscriptions -- subscribe to specific event types: built-ins,
custom.*or your own dotted names such asbooking.created(webhook.is reserved); a v2 endpoint may also subscribe to*orprefix.*. See event names. - Signed payloads --
sha256=HMAC-SHA256 over{timestamp}.{rawBody}; see Signature verification. - Targeted dispatch (v2) -- send an event to one recipient's endpoints only, idempotent by
eventId. - Exponential retry -- the first attempt plus up to 5 retries, about 2, 4, 8, 16 and 32 minutes apart, each wait varied by up to 20% (6 attempts over about an hour).
- Delivery log and redelivery -- inspect attempts and re-send a v2 delivery.
- One-time secrets -- the signing secret is returned once on create and rotate, never again.
Your endpoint must respond within 10 seconds with a 2xx status code. Timeouts and non-2xx responses are failures and trigger a retry. Receivers must be state-idempotent: a retry or a redelivery carries the same event and delivery id.
API scope
| Scope | Allows |
|---|---|
webhooks:manage | Create, list, get, update, delete, test, rotate, read deliveries, redeliver |
webhooks:dispatch | POST /api/v1/webhooks/dispatch |
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /api/v1/webhooks | List webhooks (?recipientRef= filters one recipient) |
| POST | /api/v1/webhooks | Create a webhook (returns the secret once) |
| GET | /api/v1/webhooks/:id | Get a webhook |
| PATCH | /api/v1/webhooks/:id | Update a webhook |
| DELETE | /api/v1/webhooks/:id | Delete a webhook |
| POST | /api/v1/webhooks/:id/rotate | Rotate the secret (returns it once) |
| POST | /api/v1/webhooks/:id/test | Send a test delivery |
| POST | /api/v1/webhooks/dispatch | Send an event to one recipient (v2) |
| GET | /api/v1/webhooks/:id/deliveries | Delivery log, newest first |
| POST | /api/v1/webhooks/deliveries/:deliveryId/redeliver | Re-send a v2 delivery |
Next steps
- Manage Webhooks -- create, update, dispatch and inspect webhooks
- Signature Verification -- verify signatures and prevent replay attacks