Get all sessions for the authenticated user with optional filtering
all - Return all sessions (default)active - Return only active sessionscompleted - Return only completed sessions| Field | Type | Description |
|---|---|---|
success | boolean | Whether the request was successful |
sessions | array | Array of session objects |
sessions[].session_id | integer | Unique session identifier |
sessions[].agent_id | integer | Parent agent ID |
sessions[].session_type | string | Session type (‘agent_voice’, ‘agent_video’, ‘agent_chat’, ‘webrtc_video’) |
sessions[].status | string | Session status (‘active’, ‘completed’) |
sessions[].started_at | string | ISO 8601 timestamp when session started |
sessions[].ended_at | string | ISO 8601 timestamp when session ended (null if active) |
sessions[].duration | integer | Session duration in seconds (null if active) |
sessions[].created_at | string | ISO 8601 timestamp of creation |
sessions[].agent_name | string | Name of parent agent |
sessions[].avatar_id | integer | Avatar ID |
sessions[].avatar_name | string | Avatar display name |
sessions[].avatar_url | string | Avatar image URL |
sessions[].voice_id | string | Voice ID from avatar (null if not set) |
401 Unauthorized - Invalid or missing API key429 Too Many Requests - Rate limit exceeded500 Internal Server Error - Server error