This document contains the endpoints for the Events category.
Subscribe to event notifications via WebSocket
/api/v1/ws/subscribe
Authorized
This endpoint upgrades the HTTP connection to WebSocket and subscribes to event notifications. Authentication is required via Authorization header (Bearer token) or query parameters (access_token or authorization).
Parameters
Name
Type
In
Required
Description
event_types
query
query
optional
-
List connected WebSocket clients
/api/v1/ws/clients
Authorized
Returns all currently connected WebSocket clients with queue depth and ping/pong timestamps. Useful for diagnosing stale or dead clients whose queues are filling up.
Get WebSocket event emitter statistics
/api/v1/ws/stats
Authorized
Returns aggregate statistics including total connected clients, subscription counts per event type, uptime, and per-client details with queue depths.
Unsubscribe from specific event types
/api/v1/ws/unsubscribe
Authorized
Unsubscribe an active WebSocket client from specific event types without disconnecting. The client must belong to the authenticated user.
Parameters
Name
Type
In
Required
Description
body
object
body
optional
Unsubscribe request with client ID and event types
Schema
{object}
Cookie Consent
We use Microsoft Clarity to understand how you interact with our website. This helps us improve your experience.
By clicking "Accept", you consent to the use of cookies for analytics and advertising purposes.