PlatformXeDocs
Get API Key

Custom Events External Webhook Peers

Add a partner HTTPS endpoint to a federation group, and pause, resume or remove it.

An external webhook peer is a member of a federation group that is a URL rather than a PlatformXe organisation: a partner system, an integration, an on-premises listener. It needs no PlatformXe account and no accept step; it receives every push of the group as a signed POST. The body, the headers and how to verify the signature are on Federation: external webhook peers.

Every route is owner only and needs events:federate. Adding a peer and resuming one need Enterprise (402 FEDERATION_NOT_AVAILABLE); removing and pausing are open on every plan. A peer that is not in a group your organisation belongs to answers 404 PEER_NOT_FOUND; a member of the group that is not the owner gets 403 FORBIDDEN.

MethodPathPlan
POST/api/v1/events/custom/federation/groups/{id}/external-peersEnterprise
DELETE/api/v1/events/custom/federation/external-peers/{id}Any
POST/api/v1/events/custom/federation/external-peers/{id}/pauseAny
POST/api/v1/events/custom/federation/external-peers/{id}/resumeEnterprise

{id} in the last three is the peer id (peer.id in the add answer), not the group id.

Add a peer

POST /api/v1/events/custom/federation/groups/{id}/external-peers

FieldTypeRequiredDescription
labelstringYes2 to 80 characters; the only detail members other than the owner see
webhookUrlstringYesHTTPS, a public host, at most 2,048 characters
headersobjectNoStatic headers sent on every relay (a partner token, for example)
curl -X POST https://api.platformxe.com/api/v1/events/custom/federation/groups/k3v9x2m8q1p0w7r4t6y5u3e2/external-peers \
  -H "Content-Type: application/json" \
  -H "x-api-key: pxk_live_your_api_key_here" \
  -d '{
    "label": "Partner OTA",
    "webhookUrl": "https://partner.example.com/inbound/platformxe",
    "headers": { "Authorization": "Bearer partner-token" }
  }'

201, with the signing secret once:

{
  "success": true,
  "data": {
    "peer": {
      "id": "p4t6y5u3e2k3v9x2m8q1w7r0",
      "groupId": "k3v9x2m8q1p0w7r4t6y5u3e2",
      "peerType": "external_webhook",
      "memberOrganizationId": null,
      "externalWebhookUrl": "https://partner.example.com/inbound/platformxe",
      "externalWebhookLabel": "Partner OTA",
      "externalWebhookHeaderNames": ["Authorization"],
      "status": "accepted",
      "invitedBy": "lettings",
      "invitedAt": "2026-11-20T09:10:00.000Z",
      "acceptedBy": "lettings",
      "acceptedAt": "2026-11-20T09:10:00.000Z",
      "pausedBy": null,
      "pausedAt": null,
      "removedBy": null,
      "removedAt": null
    },
    "secret": "whsec_…"
  }
}

Store the secret when you receive it. It is never shown again, and this answer is not kept for an x-idempotency-key replay. A retry of the add answers 409 DUPLICATE without the secret, so a secret lost with the first answer cannot be fetched again: remove the peer and add it again. That is also how to rotate it: re-adding a removed URL issues a new secret.

What PlatformXe keeps:

  • The secret and the static headers are sealed under the key-management envelope, bound to this peer, opened only to sign and send a relay, and never placed in a queued job. If the key-management service is unavailable the peer is not created (503 KMS_UNAVAILABLE).
  • Only the owner sees the URL and the header names; header values are never returned.

URL and header rules

The URL is checked when you add the peer and again immediately before every send:

  • HTTPS only, and a public host: localhost, *.local and *.internal names, loopback, private (RFC 1918), link-local (including 169.254.169.254) and unique-local IPv6 addresses are refused, and a host name must resolve only to public addresses.
  • Each send connects to the addresses that were just checked (no second lookup), never follows a redirect (a 3xx is a failed relay), and gives up after 15 seconds.

Static headers: at most 10; token names of at most 64 characters, each given once; no hop-by-hop, framing or identity names (Host, Content-Length, Transfer-Encoding, Connection, Cookie, Forwarded, Proxy-Authorization, …), and no X-Caldera-*, X-Forwarded-* or Sec-* names; values without line breaks or NUL, at most 1 KiB each. A refused URL or header is 400 BAD_REQUEST with the reason.

Limits

CapValue
External peers in one group20
External peers across every group your organisation owns100
External peers at one host across your groups5
Relays to one peerAt most 5 in flight and 600 a minute

A cap reached is 409 LIMIT_REACHED. The same URL twice in one group is 409 DUPLICATE.

The add emits CUSTOM_EVENT_FEDERATION_MEMBER_INVITED (first add only) and CUSTOM_EVENT_FEDERATION_MEMBER_ACCEPTED to the owner, with memberOrganizationId set to extwh:<peer id>.

Errors: 400 BAD_REQUEST, 402 FEDERATION_NOT_AVAILABLE, 403 FORBIDDEN, 404 GROUP_NOT_FOUND, 409 GROUP_ARCHIVED, 409 DUPLICATE, 409 LIMIT_REACHED, 503 KMS_UNAVAILABLE.

Signing

Each relay is signed with the peer's secret. During the dual-send window it carries both:

  • X-Caldera-Signature-V2: sha256= + HMAC-SHA256(secret, {X-Caldera-Timestamp}.{rawBody}), with X-Caldera-Timestamp (Unix seconds) and X-Caldera-Delivery-Id (<pushId>:<emitId>:<peerId>, the same on every retry). This is the signature to verify.
  • X-Caldera-Signature: sha256= + HMAC-SHA256(secret, rawBody), body only, until 2027-04-30. After that date X-Caldera-Signature carries the timestamped value.

Refuse a timestamp more than 5 minutes from your clock, compare in constant time, and deduplicate on X-Caldera-Emit-Id (delivery is at least once). A failed relay is retried on the delivery ladder: 6 attempts, 2 / 4 / 8 / 16 / 32 minutes apart, plus or minus 20 %. Full header table and verifier code: Federation (SDK).

Remove a peer

DELETE /api/v1/events/custom/federation/external-peers/{id}

Relays to the peer stop, in-flight retries included, and its sealed secret and headers are deleted (only a hash of the secret is kept, for diagnostics; it can never sign). Answers the peer with status: "removed"; emits CUSTOM_EVENT_FEDERATION_MEMBER_REMOVED (reason: "owner_removed") to the owner.

Errors: 403 FORBIDDEN, 404 PEER_NOT_FOUND, 409 INVALID_STATE (already removed).

Pause and resume a peer

POST /api/v1/events/custom/federation/external-peers/{id}/pause

POST /api/v1/events/custom/federation/external-peers/{id}/resume

Stop a partner for a while without re-provisioning it: while paused nothing is sent (in-flight retries stop too), and the secret and headers are kept. Pause takes an accepted peer, resume a paused one; both answer the peer. A peer the daily reconcile paused because the owner left Enterprise resumes only when the owner is eligible again (409 INVALID_STATE by hand). No lifecycle event is emitted for a pause or a resume.

Errors: 402 FEDERATION_NOT_AVAILABLE (resume), 403 FORBIDDEN, 404 PEER_NOT_FOUND, 409 GROUP_ARCHIVED, 409 INVALID_STATE.