---
title: "List user sessions"
method: GET
path: "/projects/{id}/auth/users/{userId}/sessions"
tags: ["Auth Admin"]
---

# List user sessions

`GET /projects/{id}/auth/users/{userId}/sessions`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/projects/{id}/auth/users/{userId}/sessions`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

List paginated sessions for a specific auth user.
Returns session details including device info, IP address, and activity timestamps.

Ordering and pagination match `GET /auth/user/sessions`: the default is
activity order with `page`/`limit` and the legacy `sessions` body, and
`sort=created_at` opts into the standard cursor/offset hybrid with the
shared `data` envelope. Cursor pagination is only available for
`sort=created_at`, because the activity timestamp changes under paging.
The `status=expired` filter is offset-only because sessions can expire
above a cursor anchor during a walk.

## Path parameters

- `id` string, uuid, required
- `userId` string, uuid, required

## Query parameters

- `page` integer
- `limit` integer
- `sort` 'last_activity' | 'created_at'
- `status` 'active' | 'expired'
- `cursor` string
- `ending_before` string
- `offset` integer

## Response `200`

Paginated list of user sessions

- object
  - `sessions` AuthSession[]
    - `id` string, uuid, required: Unique session identifier
    - `user_id` string, uuid, required: The user this session belongs to
    - `provider` 'email' | 'google' | 'github' | 'microsoft' | 'apple' | 'anonymous', required: Authentication provider used to create this session
    - `user_agent` string: Browser/device user agent string
    - `ip_address` string: IP address of the client when the session was created
    - `last_ip_address` string: IP address of the most recent activity (token refresh)
    - `expires_at` string, date-time, required: When this session expires
    - `last_activity_at` string, date-time: Last activity timestamp
    - `session_started_at` string, date-time: When the session was created
    - `is_active` boolean, required: Whether the session is currently active (not expired)
    - `is_current` boolean, required: Whether this is the session making the current request
    - `created_at` string, date-time
    - `updated_at` string, date-time
  - `total` integer: Total number of sessions
  - `page` integer: Current page number
  - `limit` integer: Number of sessions per page
  - `total_pages` integer: Total number of pages
  - `data` AuthSession[]: Sessions for this page (cursor pagination only)
    - `id` string, uuid, required: Unique session identifier
    - `user_id` string, uuid, required: The user this session belongs to
    - `provider` 'email' | 'google' | 'github' | 'microsoft' | 'apple' | 'anonymous', required: Authentication provider used to create this session
    - `user_agent` string: Browser/device user agent string
    - `ip_address` string: IP address of the client when the session was created
    - `last_ip_address` string: IP address of the most recent activity (token refresh)
    - `expires_at` string, date-time, required: When this session expires
    - `last_activity_at` string, date-time: Last activity timestamp
    - `session_started_at` string, date-time: When the session was created
    - `is_active` boolean, required: Whether the session is currently active (not expired)
    - `is_current` boolean, required: Whether this is the session making the current request
    - `created_at` string, date-time
    - `updated_at` string, date-time
  - `has_more` boolean: Whether a further page exists (cursor pagination only)
  - `next_cursor` string: Opaque cursor for the next page (cursor pagination only)
  - `prev_cursor` string: Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`.

## Other responses

- `400`: Invalid or conflicting pagination parameters
- `404`: User not found

## Changes

- **2026-10-07** `23e7875e7c4c`: 1 info
  - the endpoint scheme security `ProjectAccessToken` was added to the API
- **2026-09-19** `3a6f365f3f35`: 4 breaking, 28 info
  - added the new path request parameter `id`
  - the response's body type changed from no type to `object` for status `400`
  - the `data/items/` response's property type changed from no type to `object` for status `200`
  - the `sessions/items/` response's property type changed from no type to `object` for status `200`
  - …28 more
- **2026-08-27** `bb44e98aba2e`: 5 breaking, 10 warning, 10 info
  - the `sessions/items/` response's property type changed from `object` to no type for status `200`
  - removed the required property `sessions/items/expires_at` from the response with the `200` status
  - removed the required property `sessions/items/id` from the response with the `200` status
  - removed the required property `sessions/items/provider` from the response with the `200` status
  - …21 more

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/projects/:id/auth/users/:userId/sessions/get.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
