---
title: "Get session tokens"
method: GET
path: "/accounts/session-tokens"
tags: ["Authentication"]
---

# Get session tokens

`GET /accounts/session-tokens`

## Request

- Base URL: `https://api.quiva.ai`
- URL: `https://api.quiva.ai/accounts/session-tokens`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/docs/accounts/session-tokens/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves all active session tokens for the current user

## Response `200`

Session tokens retrieved successfully

- object
  - `data` object, required
    - `auth` SessionObject[]
      - `account_id` string, required: Account ID
      - `user_id` string, required: User ID
      - `account` string, required: Account name
      - `email` string: User email
      - `role` string, required: User role
      - `expiry` number, required: Subscription
      - `ip` string, required: IP address
      - `agent` string, required: User agent
      - `platform` string, required: Platform
      - `token` string, required: Authentication token
      - `refresh_token` string, required: Refresh token
      - `is_suspended` boolean, required: Whether the user is suspended
      - `location` string, required: Location
    - `refresh` RefreshTokenObject[]
      - `account_id` string: Account ID
      - `user_id` string: User ID
      - `account` string: Account name
      - `email` string, email: User email
      - `role` string: Role
      - `expiry` integer: Token expiration timestamp
      - `token` string: Refresh token

## Other responses

- `401`: Unauthorized

## Changes

- **2025-06-12** `4979dfd00eda`: 2 warning, 1 info
  - removed the optional property `auth` from the response with the `200` status
  - removed the optional property `refresh` from the response with the `200` status
  - added the required property `data` to the response with the `200` status
- **2025-06-10** `964e2801b73d`: 1 breaking, 13 info
  - the `auth/items/` response's property type changed from no type to `object` for status `200`
  - added the optional property `auth/items/email` to the response with the `200` status
  - added the required property `auth/items/account` to the response with the `200` status
  - added the required property `auth/items/account_id` to the response with the `200` status
  - …10 more

[Operation history](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/changes/accounts/session-tokens/get.md)

---

[API](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway.md) - [All operations](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/revisions/700eb1ace61a?raw)
