List Sessions
Query parameters
Maximum number of results to return.
Opaque pagination cursor from a previous response.
When true, includes archived sessions. Default: false (exclude archived).
A timestamp in RFC 3339 format
Return sessions created at or after this time (inclusive).
A timestamp in RFC 3339 format
Return sessions created after this time (exclusive).
A timestamp in RFC 3339 format
Return sessions created at or before this time (inclusive).
A timestamp in RFC 3339 format
Return sessions created before this time (exclusive).
Filter sessions created with this agent ID.
Filter by agent version. Only applies when agent_id is also set.
ListOrder enum
Sort direction for results, ordered by created_at. Defaults to desc (newest first).
Filter sessions whose resources contain a memory_store with this memory store ID.
Filter sessions created by this deployment ID.
Filter by session status. Repeat the parameter to match any of multiple statuses.
Headers
Optional header to select the Workspace for this request. The value is a Workspace ID (for example, wrkspc_011CZkZaBF1tNoB5wlCeusgy).
Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.
Response
Successful response (OK)
Example response
{
"data": [],
"next_page": "page_MjAyNS0wNS0xNFQwMDowMDowMFo=",
"prev_page": "page_MjAyNS0wNS0xM1QwMDowMDowMFo="
}