---
title: "List Sessions"
method: GET
path: "/api/v2/sessions"
tags: ["Sessions"]
---

# List Sessions

`GET /api/v2/sessions`

If authenticated as an admin, returns all the account's sessions. If authenticated as an agent or end user, returns only the sessions of the user making the request.

#### Pagination

- Cursor pagination (recommended)
- Offset pagination

See [Pagination](/api-reference/introduction/pagination/).

#### Allowed For

* Admins, Agents, End users

## Query parameters

- `page[before]` string
- `page[after]` string
- `page[size]` integer

## Response `200`

Success response

- SessionsResponse
  - `sessions` SessionObject[]
    - `authenticated_at` string, nullable — When the session was created
    - `id` integer, required — Automatically assigned when the session is created
    - `last_seen_at` string, nullable — The last approximate time this session was seen. This does not update on every request.
    - `url` string, nullable — The API URL of this session
    - `user_id` integer, nullable — The id of the user

## Changes

> 29 revisions in range; 1 not diffed, 1 could not be searched.

- **2025-06-12** `edbf399da815` — 3 info
  - added the new optional `query` request parameter `page[after]`
  - added the new optional `query` request parameter `page[before]`
  - added the new optional `query` request parameter `page[size]`

[Change history](https://skmtc.dev/botbrains-io/apis/support-api/changes/api/v2/sessions/get.md)

---

[API](https://skmtc.dev/botbrains-io/apis/support-api.md) · [All operations](https://skmtc.dev/botbrains-io/apis/support-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/botbrains-io/support-api/revisions/d53eac07ba68/schema)
