GET

Authorizations

x-api-key
string
header
required

Query Parameters

limit
number

Number of sessions per page, an integer from 1 to 100 (default 20). Any other value is refused with 400.

page
string | null

Opaque cursor from the next_page or prev_page of an earlier page of this list. It is bound to the order it was made with: send the same order again. A cursor whose session is not in this workspace is refused with 400. Omit for the first page.

agent_id
string

Keep the sessions created from this agent (aprf_ ID). A value that is not an agent ID is refused with 400; an agent of another workspace matches nothing.

agent_version
number

Keep the sessions that run this version of the agent, a positive integer. Only applies together with agent_id; without it the value is checked but ignored.

created_at[gt]
string

Keep sessions created after this RFC 3339 timestamp (exclusive).

created_at[gte]
string

Keep sessions created at or after this RFC 3339 timestamp (inclusive).

created_at[lt]
string

Keep sessions created before this RFC 3339 timestamp (exclusive).

created_at[lte]
string

Keep sessions created at or before this RFC 3339 timestamp (inclusive).

deployment_id
string

Keep the sessions created by a run of this deployment. Sessions created through this API have no deployment and never match.

include_archived
boolean

true includes archived sessions; false (the default) leaves them out. Any other value is refused with 400.

memory_store_id
string

Keep the sessions with a memory_store resource of this memory store (memstore_ ID). An ID of no store of the workspace matches nothing; an empty value is refused with 400 unsupported.

order
enum<string>

desc (the default) lists the newest sessions first, asc the oldest first, by created_at and then ID.

Available options:
asc,
desc
statuses
enum<string>[]

Keep the sessions in any of these statuses. Repeat the parameter (statuses=idle&statuses=running), use statuses[], or separate values with commas. rescheduling is accepted but never matches: BMA sessions are idle, running or terminated. An unknown value is refused with 400.

Available options:
rescheduling,
running,
idle,
terminated

Response

Success.

data
object[]
required

The items of this page, in the list's order.

next_page
string | null
required

Cursor of the next page: send it as page to continue. null on the last page.

prev_page
string | null
required

Cursor of the previous page: send it as page to go back. null on the first page.