Event Topic
All organizational events are published to a single topic:Event Payload Structure
Each MESSAGE frame contains a JSON body with the following fields:Core Fields
Event-specific detail (for example, the particulars of a policy alert) lives inside the
update object. Its shape depends on the entity type, so read the keys present on update rather than assuming a fixed structure.Change Types
Entity Types
Theentity field indicates what kind of object changed. Common entity types include:
The entity types available depend on your organization’s configured devices and policies. Subscribe to
/topic/change/{orgUuid} and log the entity field of each event to discover all available event types.Inspecting Policy Alerts
When an event hasentity: "POLICY_ALERT", the alert-specific detail is carried inside the update object. The shape of update depends on the entity type and is not a fixed public schema, so inspect the keys present on each alert rather than assuming particular fields:
Filtering Events
By Entity Type
Filter for specific event types to reduce noise:By Change Type
React differently based on whether an event was created, updated, or deleted:By Device
Filter events for a specific camera or sensor:By Entity and Change Type
React to specific kinds of security events by combining theentity and type fields:
Enriching Events with REST API Data
WebSocket events contain minimal data for efficiency. Use the REST API to fetch additional details when needed:Get Camera Name from Device UUID
Get Alert Details
Cache camera names locally to avoid excessive REST API calls. Camera names change infrequently, so a cache with a 5-minute TTL works well.