Get all sessions for a specific agent
| Field | Type | Description |
|---|---|---|
success | boolean | Whether the request was successful |
sessions | array | Array of session objects |
sessions[].id | integer | Session ID |
sessions[].session_id | integer | Session ID (alias) |
sessions[].agent_id | integer | Parent agent ID |
sessions[].call_type | string | Session type (‘voice’, ‘video’, ‘chat’) |
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[].metadata | object | Custom metadata (JSON) |
sessions[].created_at | string | ISO 8601 creation timestamp |
created_at in descending order (most recent first)null for ended_at and duration401 Unauthorized - Invalid or missing authentication403 Forbidden - Insufficient permissions404 Not Found - Agent not found or access denied500 Internal Server Error - Server error