Skip to main content
GET
List Sessions
Every request requires ?beta=true.

Authorizations

X-Api-Key
string
header
default:sk-ant-local-default
required

OMA workspace API key.

Headers

anthropic-version
string
anthropic-beta
string

Query Parameters

beta
enum<boolean>
required

Selects the beta API contract for this endpoint. Must be true.

Available options:
true
limit
integer<int32>

Maximum number of results to return.

page
string

Opaque pagination cursor from a previous response.

include_archived
boolean

When true, includes archived sessions. Default: false (exclude archived).

created_at[gte]
string<date-time>

Return sessions created at or after this time (inclusive). A timestamp in RFC 3339 format

created_at[gt]
string<date-time>

Return sessions created after this time (exclusive). A timestamp in RFC 3339 format

created_at[lte]
string<date-time>

Return sessions created at or before this time (inclusive). A timestamp in RFC 3339 format

created_at[lt]
string<date-time>

Return sessions created before this time (exclusive). A timestamp in RFC 3339 format

agent_id
string

Filter sessions created with this agent ID.

agent_version
integer<int32>

Filter by agent version. Only applies when agent_id is also set.

order
enum<string>

Sort direction for results, ordered by created_at. Defaults to desc (newest first). ListOrder enum

Available options:
asc,
desc
memory_store_id
string

Filter sessions whose resources contain a memory_store with this memory store ID.

deployment_id
string

Filter sessions created by this deployment ID.

statuses[]
enum<string>[]

Filter by session status. Repeat the parameter to match any of multiple statuses.

SessionStatus enum

Available options:
rescheduling,
running,
idle,
terminated

Response

Successful response (OK)

Paginated list of sessions.

data
object[]

List of sessions.

Example:
next_page
string | null

Opaque cursor for the next page. Null when no more results.

Example:

"page_MjAyNS0wNS0xNFQwMDowMDowMFo="

prev_page
string | null

Opaque cursor for the previous page. Null when on the first page. Pass as the page parameter to navigate backward.

Example:

"page_MjAyNS0wNS0xM1QwMDowMDowMFo="