List sessions

GET/v1/sessions
Returns unarchived sessions for the current organization, optionally filtered by name, parent, or lifecycle state.

Authorization

header

Authorization: Bearer <token>

An access token from Settings → Access tokens, with the scopes this call needs. Authentication

Query parameters

searchstring
Search sessions by name. Matches names containing the term, case-insensitively.
Length
at most 255
parentIdstring | null
Only sessions spawned under this parent session.
ancestorIdstring | null
All readable descendants, excluding this session. Stops at six visible tree levels. Unreadable parents hide their branches.
statusstring | null
Only sessions in this lifecycle state.
Value in
"pending" | "idle" | "running" | "failed"
archivedstring | null
Include archived sessions.
Value in
"true" | "false"
mineSharedstring | null
Only sessions created by the current viewer or shared through its collaborator roster. Existing read permissions still apply.
Value in
"true" | "false"
usedSincestring
Only sessions last used at or after this ISO-8601 instant. Pass the same filter on every page; ordering and pagination are unchanged.
afterstring
Return items after this cursor (ID)
limitstring
Max items to return (1-100, default 25)

Responses

Successapplication/json

dataarray<Session>required
firstIdstring | nullrequired
ID of the first item in this page
lastIdstring | nullrequired
ID of the last item (use as cursor for next page)
hasMorebooleanrequired
Whether more items exist after this page