Enables or disables the instance’s WebSocket and sets the event filter and base64 media
Auth:Documentation Index
Fetch the complete documentation index at: https://docs.ryzeapi.cloud/llms.txt
Use this file to discover all available pages before exploring further.
TokenAccount or TokenInstance • Rate limit: Global (100/min) • Idempotent: yes (upsert)
label). This endpoint does not open a connection, it only authorizes the later upgrade at GET /ws/:instance.
events is omitted, the client receives all 6 event types, and mediaBase64 stays false.
message.exchange and message.status and turns on mediaBase64: true so frames with media already include the binary content base64-encoded.
enabled: false. The configuration row is preserved, events and mediaBase64 are cleared, and new connections to /ws/:instance start being rejected.
websocket object with the configuration actually persisted (enabled, events, mediaBase64), mirrors the request body after the upsert. When enabled=false, events and mediaBase64 come back cleared; connections already open at /ws/:instance remain until closed naturally, but new connections start being rejected with 400.
TokenAccount or TokenInstance.application/jsonfalse, events and mediaBase64 are cleared before saving.{message.exchange, message.status, call.update, group.flow, instance.state, label.update}.true, message.exchange events with media include media.base64 in the WS frames.HasClients before any serialization work).enabled=false does not disconnect already-open clients: existing connections at /ws/:instance remain until closed naturally; new connections fail with 400.POST /api/instance/new via websocketEnabled, websocketEvents, websocketMediaBase64.| HTTP | error.message |
|---|---|
| 400 | Invalid request body |
| 401 | Invalid token |
| 404 | Instance not found |
| 429 | Rate limit exceeded. Try again later. |
| 500 | Failed to get instance |
GET /api/events/getWebsocket/:instanceGET /ws/:instance, protocol, auth, reconnection.