Events
Check Websocket
Returns the instance’s current WebSocket configuration
GET
Check Websocket
Auth:
Envelope:
TokenAccount or TokenInstance • Rate limit: Global (100/min) • Idempotent: yes
Description
Returns the instance’s current WebSocket configuration. Returns404 when there is no row in websocket_configs (the instance was never configured via POST), there is no “implicit default config”.
Watch the spelling: the correct path is
getWebsocket (lowercase w in socket), different from POST /websocket. This inconsistency is historical, use the exact literal from the registry.Path parameters
Instance name.
Example
Headers
TokenAccount or TokenInstance.Success response
Returns thewebsocket object with the current configuration: enabled, events and mediaBase64. Note: 404 means “never configured” (no row in websocket_configs), different from enabled=false (which returns 200 with the persisted row and the fields cleared). Handle both cases on the client.
200 OK
200 OK (disabled)
Errors
| HTTP | error.message |
|---|---|
| 401 | Invalid token |
| 404 | Instance not found |
| 404 | WebSocket not configured for this instance |
| 429 | Rate limit exceeded. Try again later. |
| 500 | Failed to get instance |
| 500 | Failed to get websocket configuration |
Notes
404≠ “disabled”:404means “never created a row”; anenabled=falsereturns200normally with"enabled": false. Handle both cases on the client.- No
GET /websocket/:instancealias: unlike the webhook, there is no alias with the “regular” spelling, onlygetWebsocket(lowercase).
Next
Configure WebSocket
POST /api/events/websocket/:instanceConnect via WebSocket
GET /ws/:instance