> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Logs Ws

> Operational log endpoint for realtime debugging and log telemetry.

Operational log endpoint for realtime debugging and log telemetry.

### Response

No response body — WebSocket upgrade (`101`). WebSocket upgrade. The server streams JSON text frames: first a `&#123;'type': 'connection.established', 'timestamp', 'message', 'tenant'&#125;` frame, then a bootstrap frame per active session, then every broadcast log/event for the tenant as it happens. There is no JSON response body over plain HTTP.

### Status codes

| Code  | Meaning                                                                                                                                                                                                                                                                                                         |
| ----- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `101` | WebSocket upgrade. The server streams JSON text frames: first a `&#123;'type': 'connection.established', 'timestamp', 'message', 'tenant'&#125;` frame, then a bootstrap frame per active session, then every broadcast log/event for the tenant as it happens. There is no JSON response body over plain HTTP. |
| `401` | Unauthorized                                                                                                                                                                                                                                                                                                    |

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://api.voice.stateset.com/api/v1/logs' \
    --header "Authorization: Bearer $STATESET_VOICE_API_KEY"
  ```
</RequestExample>
