PlatformXeDocs
Get API Key

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 toThe calling service (untargeted)One recipient of the calling service (recipientRef)
ReceivesEvery matching event of the serviceOnly events dispatched to its recipient
Signature headersX-Webhook-*X-Caldera-* plus the legacy X-Webhook-* pair
URL policyHTTPSHTTPS, no credentials in the URL, public host; re-checked before every attempt
RedirectsNever followed (a 3xx is a failed attempt)Never followed (a 3xx is a failed attempt)
Secret at restPlaintextSealed; the plaintext is shown once
CapPer calling servicePer recipient (default 5; not counted toward the service cap), within a ceiling of 50,000 recipient endpoints per service
StatusACTIVE / PAUSED / FAILINGFAILING 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

  1. You register a webhook URL and the event types it subscribes to (a v2 endpoint also names its recipientRef).
  2. 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 }.
  3. Your endpoint returns a 2xx status within 10 seconds to acknowledge receipt.
  4. 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).
  5. 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 as booking.created (webhook. is reserved); a v2 endpoint may also subscribe to * or prefix.*. 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

ScopeAllows
webhooks:manageCreate, list, get, update, delete, test, rotate, read deliveries, redeliver
webhooks:dispatchPOST /api/v1/webhooks/dispatch

Endpoints

MethodPathDescription
GET/api/v1/webhooksList webhooks (?recipientRef= filters one recipient)
POST/api/v1/webhooksCreate a webhook (returns the secret once)
GET/api/v1/webhooks/:idGet a webhook
PATCH/api/v1/webhooks/:idUpdate a webhook
DELETE/api/v1/webhooks/:idDelete a webhook
POST/api/v1/webhooks/:id/rotateRotate the secret (returns it once)
POST/api/v1/webhooks/:id/testSend a test delivery
POST/api/v1/webhooks/dispatchSend an event to one recipient (v2)
GET/api/v1/webhooks/:id/deliveriesDelivery log, newest first
POST/api/v1/webhooks/deliveries/:deliveryId/redeliverRe-send a v2 delivery

Next steps