Skip to main content
GET
List sessions
Returns a paginated list of sessions visible to the authenticated user. Results are sorted by creation date (newest first) by default. Returns a paginated list of Session summary objects. Each row carries last_activity_at — when the session’s latest event was ingested (agent steps, status changes, user messages) — so you can spot which live sessions are actually moving. It is null for sessions that predate the field.

Query parameters

integer
default:"1"
Page number (1-based).
integer
default:"10"
Items per page. Maximum: 100.
string
default:"-created_at"
Sort order. Options: created_at, -created_at.
string[]
Filter by session status. Multi-value. Values: queued, pending, running, paused, idle, awaiting_tool_results, completed, failed, timed_out, interrupted.
string[]
Filter by agent identifier. Multi-value. Example: web-price-finder.
string
Filter by group ID. Returns all sessions tagged with this group.
string
Filter by parent session ID. Returns only child sessions of the given parent.
string
Filter by schedule ID. Returns only sessions created by that schedule’s fires.
Case-insensitive match on the session’s first message or answer.
string
Only sessions created before this timestamp (ISO 8601).
string
Only sessions created after this timestamp (ISO 8601).
string
Only sessions that finished before this timestamp (ISO 8601).
string
Only sessions that finished after this timestamp (ISO 8601).
string
default:"me-in-organization"
Access scope: me (your sessions anywhere), me-in-organization (your sessions in the current org), organization (everyone’s sessions in the org), or me-or-organization.

Examples

List your recent sessions

Response

Filter by status and agent

List all sessions in a group

Find the subagents a session spawned

Multi-agent runs delegate work to child sessions. The parent’s status lists their IDs in subagent_session_ids; pass the parent’s ID to parent_session_id to pull the whole roster in one call, each child labeled with the agent that ran it. Walk deeper trees by recursing on a child’s own ID.
Response
Each child is a session like any other: open it by id to poll its status, read its answer from /changes, or replay its events.