Skip to main content
GET
List sessions

Query Parameters

page
string

Opaque cursor from a previous response's next_page or prev_page. Omit order or keep the cursor's order. Date filters must still include the cursor position.

Pattern: ^\d{1,15}:[^/\\]+$
limit
string

Maximum number of results to return (1-100, default 50)

Pattern: ^(?:[1-9]\d?|100)$
order
enum<string>

Sort by creation time, asc for oldest first or desc for newest first (default).

Available options:
asc,
desc
include_archived
enum<string>

Include archived results: true or false (default false)

Available options:
true,
false
agent_id
string

Only sessions created with this agent

Required string length: 1 - 256
agent_version
string

Expected version. The archive is refused if the resource changed or a live automation uses it.

Pattern: ^[1-9]\d{0,14}$
automation_id
string

Only sessions created by this automation.

Required string length: 1 - 128
memory_store_id
string

Only sessions that mount this memory store.

Required string length: 1 - 256
statuses
tuple

Only sessions in any of these statuses. Repeat to include more than one status.

created_at[gt]
string<date-time>

Only sessions created after this time.

Pattern: ^\d{4}-\d{2}-\d{2}T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d{1,3})?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$
created_at[gte]
string<date-time>

Only sessions created at or after this time.

Pattern: ^\d{4}-\d{2}-\d{2}T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d{1,3})?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$
created_at[lt]
string<date-time>

Only sessions created before this time.

Pattern: ^\d{4}-\d{2}-\d{2}T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d{1,3})?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$
created_at[lte]
string<date-time>

Only sessions created at or before this time.

Pattern: ^\d{4}-\d{2}-\d{2}T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d{1,3})?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$

Response

Success

data
object[]
required
next_page
string | null
required

Token for the next page, or null when there are no more results.

prev_page
string | null

Token for the preceding page, or null on the first page.