Events endpoints

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 X-Api-Key header.

Parameters
Name Type In Required Description
event_types query query optional -

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
{
  "client_id": "string",
  "event_types": "[]string",
  "user_id": "string"
}