Events are delivered via WebSocket in real time. Applications subscribe using Subscription Sets.

Connecting to WebSocket

Step-by-step Flow

  1. Open WebSocketwss://<WebAdmin>/api/ws (with Basic Auth)
  2. Receive WebSocket ID{"webSocketId": "aa922613-78ad-..."}
  3. Create Subscription SetPOST /api/v1/subscriptions/ws/{wsId}/subscriptionsets
  4. Subscribe to eventsPUT .../subscriptionsets/{ssId}/calleventaccounts/{account}

Keep-Alive

Send periodic messages (e.g., "hello") to prevent timeout. Server echoes back if alive.


Call Events

Call events track call lifecycle. Each event includes subscriptionSetId, event, callId, observedParty, timestamp, and version.

dial

Account has dialed a call.

{
  "subscriptionSetId": "12345",
  "event": "dial",
  "callId": 1,
  "observedParty": "100@Windstream",
  "timestamp": "2015-05-11T14:06:52-04",
  "version": "v1",
  "from": "100@Windstream",
  "to": "101@Windstream",
  "sipCallId": "[email protected]",
  "dialingDeviceId": 1
}

ringback

Dialed call is ringing at remote end.

offer