---
title: "Get current user's sessions"
method: GET
path: "/auth/user/sessions"
tags: ["Authentication"]
---

# Get current user's sessions

`GET /auth/user/sessions`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/auth/user/sessions`
- Auth: HTTP bearer

Returns paginated sessions for the currently authenticated user.
Each session includes device info, IP addresses, and activity timestamps.
The current session is marked with `is_current: true`.

**Ordering and pagination.** Without `sort`, results are ordered by most
recent activity and paged with `page`/`limit`, returning the
`sessions`/`total`/`page`/`limit`/`total_pages` body below. This is the
legacy default and is preserved for existing clients.

Send `sort=created_at` to opt into the standard list contract: results are
ordered by session start (newest first) and may be paged either with
`page`/`limit` or by cursor with `cursor`/`ending_before` plus a bounded
`offset` past the cursor anchor. Cursor responses use the shared
`data` envelope with `next_cursor`/`prev_cursor`.

Unlike other list endpoints, sending `limit` without `page` does **not**
select cursor mode here; `sort=created_at` is the only opt-in. Cursor
pagination is rejected with 400 for the activity order, because
`last_activity_at` changes whenever a session refreshes its token: a row
that crosses the cursor anchor between two requests would be skipped and
never shown. The `status=expired` filter is also offset-only because a
session can expire above the cursor anchor during a walk. Sending that
filter in cursor mode, `page` with `cursor` or `ending_before`, or both
cursor directions returns 400.

## 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
- `401`: Not authenticated

## Changes

- **2026-09-19** `3a6f365f3f35`: 4 breaking, 30 info
  - the response's body type changed from no type to `object` for status `400`
  - the response's body type changed from no type to `object` for status `401`
  - 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`
  - …30 more
- **2026-08-27** `bb44e98aba2e`: 7 breaking, 10 warning, 10 info
  - the response's body type changed from `object` to no type for status `401`
  - the `sessions/items/` response's property type changed from `object` to no type for status `200`
  - removed the required property `error` from the response with the `401` status
  - removed the required property `sessions/items/expires_at` from the response with the `200` status
  - …23 more
- **2026-07-27** `bb52784e098a`: 1 info
  - added the optional property `code` to the response with the `401` status

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/auth/user/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)
