Custom Events Federation Pushes
Declare which event versions a federation group receives, stop a push, and read the relay log.
A push says "relay every emit of this version of my event to this group". The owner of a federation group declares it for one of its own published registrations; from then on each emit of that version is relayed to every accepted member: a PlatformXe organisation receives it on its federated type fed-<owner>.<namespace>.<name> (delivered to its own subscriptions), an external peer receives a signed POST. SDK calls and wire shapes: Federation (SDK).
| Method | Path | Caller | Plan |
|---|---|---|---|
| GET | /api/v1/events/custom/federation/groups/{id}/pushes | Owner or live member (a pending invitee included) | Enterprise |
| POST | /api/v1/events/custom/federation/groups/{id}/pushes | Owner | Enterprise |
| DELETE | /api/v1/events/custom/federation/pushes/{id} | Owner | Enterprise |
| GET | /api/v1/events/custom/federation/pushes/{id}/relays | Owner | Enterprise |
Scopes: events:federate for POST and DELETE, events:read for GET. A caller with no live relationship to the group gets 404 GROUP_NOT_FOUND (group routes) or 404 PUSH_NOT_FOUND (push routes); a member calling an owner-only route gets 403 FORBIDDEN. Any plan other than Enterprise gets 402 FEDERATION_NOT_AVAILABLE, on these four routes included: an owner that has left Enterprise stops all its pushes by archiving the group, which is open on every plan.
Declare a push
POST /api/v1/events/custom/federation/groups/{id}/pushes
{ "registrationId": "cer_abc123" }
The registration must be the owner's, published, and neither platformxe.generic nor a federated type received from someone else (federated types are never pushed on, so relays cannot loop). The push keeps the registration's schema.
In one transaction the push is stored and the federated type is created, published, in every accepted or paused member organisation, so its subscribers can be set up before the first relay. A pending invitee gets it when it accepts. Declaring a version that was pushed and later undeclared reactivates that push with the registration's current schema.
201:
{
"success": true,
"data": {
"id": "q1p0w7r4t6y5u3e2k3v9x2m8",
"groupId": "k3v9x2m8q1p0w7r4t6y5u3e2",
"sourceRegistrationId": "cer_abc123",
"sourceOrganizationId": "org_…",
"namespace": "lettings",
"name": "property.favorited",
"version": "1.0.0",
"sourceCanonicalName": "TENANT_CUSTOM:org_…:lettings.property.favorited@1.0.0",
"federatedTypeName": "fed-org_….lettings.property.favorited",
"pushedBy": "lettings",
"pushedAt": "2026-11-20T09:15:00.000Z",
"unpushedBy": null,
"unpushedAt": null,
"isActive": true
}
}
The federated namespace is fed- plus the owner's organisation id in lower case, or, when that would not be a valid namespace (over 31 characters, other characters), fed- plus the first 27 hex characters of the id's SHA-256. pushedBy and unpushedBy are shown to the source organisation only (null for members). Emits CUSTOM_EVENT_FEDERATION_PUSH_DECLARED to the owner and every accepted or paused member. An x-idempotency-key header replays the first answer to a retry.
| Code | Status | Cause |
|---|---|---|
BAD_REQUEST | 400 | registrationId missing |
EVENT_NOT_PUSHABLE | 400 | The generic event, or a federated type |
FORBIDDEN | 403 | A member, not the owner |
GROUP_NOT_FOUND | 404 | No such group for this caller |
REGISTRATION_NOT_FOUND | 404 | Not one of the owner's registrations |
GROUP_ARCHIVED | 409 | The group is archived |
INVALID_STATE | 409 | The registration is not published |
DUPLICATE | 409 | That version is already pushed to the group |
LIMIT_REACHED | 409 | 100 active pushes in the group, or a member already holds 500 federated types (nothing is changed) |
FEDERATED_TYPE_CONFLICT | 409 | A member holds that federated type with another schema (nothing is changed; the member archives its copy first) |
List a group's pushes
GET /api/v1/events/custom/federation/groups/{id}/pushes
{ "pushes": [ … ] }, the active pushes; add includeInactive=true for undeclared ones too.
Undeclare a push
DELETE /api/v1/events/custom/federation/pushes/{id}
{id} is the push id. The push becomes inactive: no new relays, and in-flight relay retries stop. A member's federated copy that no other live push needs is archived. Answers the push with isActive: false; emits CUSTOM_EVENT_FEDERATION_PUSH_UNDECLARED to the owner and every accepted or paused member.
Errors: 403 FORBIDDEN, 404 PUSH_NOT_FOUND, 409 INVALID_STATE (already inactive).
Read the relay log
GET /api/v1/events/custom/federation/pushes/{id}/relays
One row per emit and member, newest first, showing the latest attempt.
| Query | Description |
|---|---|
status | relayed or failed (queued is accepted but matches nothing: relay rows are written relayed or failed; anything else is 400 BAD_REQUEST) |
limit | 1 to 100, default 50 |
offset | Rows to skip, default 0 |
limit and offset must be non-negative integers (400 BAD_REQUEST).
{
"success": true,
"data": {
"relays": [
{
"id": "…",
"pushId": "q1p0w7r4t6y5u3e2k3v9x2m8",
"emitId": "cee_e7r2t9y4u1i6o3p8a5s0d2fg",
"peer": "org_partner",
"peerType": "tenant_org",
"status": "relayed",
"errorMessage": null,
"relayedAt": "2026-11-20T09:16:02.000Z",
"createdAt": "2026-11-20T09:16:01.000Z"
}
],
"limit": 50,
"offset": 0
}
}
peer is the member organisation's id, or extwh:<peer id> for an external peer.
Errors: 400 BAD_REQUEST, 403 FORBIDDEN, 404 PUSH_NOT_FOUND.
How relays run
- Each relay re-checks, on every attempt, that the member is still accepted, the push active, the group live and both sides eligible; when one is not, the relay stops.
- A relay is retried on the delivery ladder (6 attempts, 2 / 4 / 8 / 16 / 32 minutes apart, plus or minus 20 %) and is at least once: a member deduplicates on the emit id.
- An emit that is itself a relay is never relayed again, and a chain of emits stops at 50.
- The final outcome emits
CUSTOM_EVENT_FEDERATION_RELAYEDorCUSTOM_EVENT_FEDERATION_RELAY_FAILEDto the owner and, for a PlatformXe member, to that member.