List Agent Sessions
Changed onList your team's sessions, newest first. Filter by agent, status, end reason, caller number, SIP Call-ID, end user ID, call_sid, or creation time. Paginate with cursor (recommended; follow next_cursor while has_more is true) or with page for offset pagination with a total count. The two are mutually exclusive.
Request
- Base URLhttps://api.fish.audio
- URLhttps://api.fish.audio/v1/agent/sessions
- AuthHTTP bearer
Query parameters
Comma-separated status filter (pending/active/completed/failed/unknown). Default: every status.
Comma-separated end reason filter (user_hangup/agent_hangup/escalated/conversation_timeout/heartbeat_timeout/agent_join_timeout/internal_error/llm_endpoint_failure/room_join_timeout/cancelled/dial_failed).
Filter by call direction (inbound/outbound). Sessions predating the field count as inbound.
Exact-match caller E.164 (phone sessions only).
Exact-match SIP Call-ID of the call's INVITE, for looking up the session behind a carrier CDR entry (phone sessions only).
Exact-match end_user_id set at session creation.
Exact-match carrier call id (Twilio's CallSid on inbound calls through a Twilio number), the call_sid the conversation_init request carries, for finding the session behind that request.
1-based page number (offset pagination). Returns total; mutually exclusive with cursor, which deep scans must use.
Also count the filtered set on the cursor path.
Response
Request fulfilled, document follows
Changes
- info
endpoint added
- info