Skip to main content
Use the sessions resource to inspect and manage sessions after you create them.

List sessions

list() returns one page of sessions that are not archived. Archived sessions are excluded by default.
The page includes has_more and last_id fields for cursor pagination. Use the auto-paginating iterator when you need every matching session:
Pass include_archived=True in Python or include_archived: true in TypeScript to include archived sessions.

Retrieve a session

Retrieve the latest session record by its ID:

Archive a session

Archive a session when you no longer need it in the default session list:
The returned session has an archived status and is available in list results when include_archived is enabled.