Subscribe to real-time diagnostic log entries using Server-Sent Events (SSE).
Opens a persistent SSE connection that delivers diagnostic log entries for a Meeting Buddy session in real time. The response uses the text/event-stream content type. This is useful for debugging bot connection issues, monitoring audio relay health, and observing session lifecycle events as they happen.
The server sends a keepalive comment (: keepalive) every 15 seconds to prevent proxy timeouts. When the session reaches a terminal state, a close event is sent and the stream ends.
session_id string required
The session identifier. Must start with mbsess_.
log — Diagnostic log entry
Sent when a notable event occurs during the session lifecycle.
| Field | Type | Description |
|---|---|---|
session_id | string | Session identifier |
level | string | Log level: "info", "warning", or "error" |
message | string | Human-readable log message |
timestamp | string | ISO 8601 timestamp |
details | object or null | Additional context (e.g., meeting ID, error details) |
close — Stream termination
Sent when the session reaches a terminal state. The stream closes after this event.
| Field | Type | Description |
|---|---|---|
reason | string | Always "session_ended" |
| Level | Message | Description |
|---|---|---|
info | Bot audio relay connected | Bot successfully connected to the audio relay |
info | Bot leaving meeting (end_session) | Session stop was requested |
warning | Bot disconnected from audio relay | Bot lost connection unexpectedly |
error | Audio relay error | An error occurred in the audio pipeline |
A text/event-stream response. Each event is formatted as:
event: <event_type>
data: <json_payload>
A keepalive comment is sent every 15 seconds:
: keepalive
- Bash
- Python
- Python
- JavaScript
curl -N -H "Authorization: Bearer $ACCESS_TOKEN" \
"https://api.aitronos.com/v1/meeting-buddy/sessions/mbsess_abc123def456/logs/stream"