PlatformXeDocs
Get API Key

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

  1. Register a subscription with a name, a list of event names or patterns (eventTypes) and a webhook URL; PlatformXe returns the signing secret once
  2. PlatformXe matches events against your subscription's eventTypes
  3. 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_CREATED
  • INVOICE_PAID
  • FILE_UPLOADED
  • WEBHOOK_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:

PatternMatches
ROLE_CREATEDExact 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.

EventFields delivered (besides organizationId, timestamp, sourceApp)
FRAUD_RULE_CREATEDruleId, name, version, status
FRAUD_RULE_PROMOTED_TO_SHADOWruleId, name, version, previousStatus, status
FRAUD_RULE_PUBLISHEDruleId, name, version, previousStatus, status
FRAUD_RULE_ARCHIVEDruleId, name, version, previousStatus, status
FRAUD_RULE_UPDATEDruleId, name, version, previousVersion, status, changedFields (field names only)
FRAUD_TERMS_ACCEPTEDacceptedBy, version, acceptedAt
FRAUD_PACK_ACTIVATEDpack, packVersion, billing
FRAUD_PACK_SETTINGS_UPDATEDpack, keys
FRAUD_ORG_PROFILE_UPDATEDcurrency, regulator, repair
FRAUD_PROVIDER_DOWNprovider
FRAUD_CASE_ESCALATEDcaseId, 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 eventTypes names one of them (FRAUD_SAR_FILED, FRAUD_*, …) is refused with 400 RESTRICTED_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; GET returns those names in restrictedEventTypes so you can remove them (a PATCH that sends them back is refused).
  • Broad patterns cannot reach them: * and FRAUD_* match no event, and prefix.* 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