Event Subscriptions Overview
Subscribe to platform events and receive webhooks when things happen.
PlatformXe emits events when significant actions occur across its services — files uploaded, permissions changed, invoices created, and more. Event subscriptions let you receive these events via webhooks in real time.
How it works
- Register a subscription with a name, a list of event names or patterns (
eventTypes) and a webhook URL; PlatformXe returns the signing secret once - PlatformXe matches events against your subscription's
eventTypes - Webhooks are delivered with HMAC-SHA256 signatures and retry logic
Event types
PlatformXe emits 193 typed domain events (see the Event Catalog). Their names are SCREAMING_SNAKE_CASE, with no dots, and you name them exactly:
ROLE_CREATEDINVOICE_PAIDFILE_UPLOADEDWEBHOOK_CREATED
Your own custom events are delivered under their canonical name, TENANT_CUSTOM:<org>:<namespace>.<name>@<version>.
Wildcard patterns
Subscriptions support three kinds of pattern:
| Pattern | Matches |
|---|---|
ROLE_CREATED | Exact match only |
TENANT_CUSTOM:<org>:lettings.* | Every type starting TENANT_CUSTOM:<org>:lettings. (each of your custom events in the lettings namespace, every version) |
TENANT_CUSTOM:<org>:<ns>.<name>@* | Every version of one of your custom events |
A prefix.* pattern needs the dot, so it reaches dotted names only (custom events), never a SCREAMING_SNAKE_CASE event. Nothing else is a wildcard: * on its own, or FRAUD_* (no dot), matches no event.
Fraud and compliance events
Fraud and compliance events carry customer, case and regulatory data, so only a short list of operational ones leaves PlatformXe through event subscriptions and GET /api/v1/event-log. Each is sent with only the fields below, whatever the full event holds; the entity columns of these rows are empty. They are delivered by the once-a-minute delivery sweep rather than at the moment of the event, so one arrives up to about a minute after it happened, then follows the retry policy. The Tenant Portal's event log shows none of the fraud events (these included) to a member without access to the fraud pages.
| Event | Fields delivered (besides organizationId, timestamp, sourceApp) |
|---|---|
FRAUD_RULE_CREATED | ruleId, name, version, status |
FRAUD_RULE_PROMOTED_TO_SHADOW | ruleId, name, version, previousStatus, status |
FRAUD_RULE_PUBLISHED | ruleId, name, version, previousStatus, status |
FRAUD_RULE_ARCHIVED | ruleId, name, version, previousStatus, status |
FRAUD_RULE_UPDATED | ruleId, name, version, previousVersion, status, changedFields (field names only) |
FRAUD_TERMS_ACCEPTED | acceptedBy, version, acceptedAt |
FRAUD_PACK_ACTIVATED | pack, packVersion, billing |
FRAUD_PACK_SETTINGS_UPDATED | pack, keys |
FRAUD_ORG_PROFILE_UPDATED | currency, regulator, repair |
FRAUD_PROVIDER_DOWN | provider |
FRAUD_CASE_ESCALATED | caseId, previousStatus, reason |
On FRAUD_PACK_ACTIVATED and FRAUD_PACK_SETTINGS_UPDATED, pack names a sector fraud pack or add-on (for example insurance.health); no other field is sent for an add-on.
Every other FRAUD_ event (decisions, screening hits, devices, case opened / stage changed / closed / cleared / assigned, PEP and watch-list hits, SAR drafted / approved / filed, recovery, collaboration, desk roles, inspections, outcomes, federation pushes) and SUSPICIOUS_ACTIVITY_FLAGGED is portal-only: shown in the Tenant Portal behind the fraud pages' own access rule, never returned by GET /api/v1/event-log (also when named in eventTypes: none come back, with a 200), never delivered and never replayed.
- Creating or updating a subscription whose
eventTypesnames one of them (FRAUD_SAR_FILED,FRAUD_*, …) is refused with 400RESTRICTED_EVENT_TYPE; the message lists the entries to remove (the first five). - A subscription stored before this rule that names one keeps its other entries;
GETreturns those names inrestrictedEventTypesso you can remove them (aPATCHthat sends them back is refused). - Broad patterns cannot reach them:
*andFRAUD_*match no event, andprefix.*needs a dot.
Quick example
// Subscribe to role changes; the signing secret is returned once
const { subscription, secret } = await client.events.createSubscription({
name: 'Permission changes',
eventTypes: ['ROLE_CREATED', 'ROLE_UPDATED', 'ROLE_DELETED'],
webhookUrl: 'https://your-app.com/webhooks/platformxe',
});
PlatformXe generates the signing secret; you do not send one. Store secret to verify deliveries (see Webhook Delivery). See Manage Subscriptions for the request and response.
List only the events your handler acts on. For your custom events, a namespace pattern (TENANT_CUSTOM:<org>:<ns>.*) or a version pattern (…@*) keeps a subscription current as you add events or versions.
Next steps
- Manage Subscriptions — CRUD for subscriptions
- Webhook Delivery — signatures, retries, headers
- Event Catalog — every event PlatformXe emits