WebSocket Connections
Returns your API key's live WebSocket slot usage: open connections with their state, and how many slots remain under your plan's limit. Check it before reconnecting so a restart never exceeds your connection limit. This endpoint does not count against your quota.
/v2/ws/connectionsParameters
No parameters required.
Response
successbooleanAlways true on a 2xx response.
tierstringPlan tier of the calling key (free, dev, pro, enterprise).
max_connectionsintegerConcurrent WebSocket connections allowed for your key. 0 means your plan has no WebSocket access.
connectedinteger | nullConnections currently holding a slot (active plus closing).
activeinteger | nullConnections that are open and receiving data.
closinginteger | nullConnections in a close handshake. They hold a slot until it finishes.
availableinteger | nullSlots left before a new connection is rejected with CONNECTION_LIMIT. Never negative.
as_ofstringWhen the counts were last recorded (ISO 8601, UTC). At most about 10 seconds old while connections are open.
connectionsarrayConnections holding a slot, oldest first.
Show 5 fields
idstringOpaque identifier, stable for the connection's lifetime.
statestringactive or closing. Both hold a slot.
connected_atstringWhen the connection authenticated and took its slot (UTC).
last_message_atstring | nullWhen your client last sent a frame (subscribe, unsubscribe or heartbeat). null if none since authenticating.
subscriptionsintegerSubscriptions held across all channels.
slot_releaseobjectHow slots are released.
Show 3 fields
graceful_closestringimmediate: a close frame from your client frees the slot as soon as the close completes.
unexpected_disconnect_max_secondsintegerUpper bound, after your client's last frame, before a connection that dropped without closing frees its slot.
heartbeat_interval_secondsintegerSeconds of silence after which the server pings your client. A missing pong closes the connection.