> ## Documentation Index
> Fetch the complete documentation index at: https://microstrate-1133-notifications-prefs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get session tokens

> Retrieves all active session tokens for the current user



## OpenAPI

````yaml /api-reference/endpoint/accounts/openapi.json get /accounts/session-tokens
openapi: 3.0.3
info:
  title: quiva.ai Gateway
  description: >-
    API for managing accounts, users, authentication, and payments in the
    quiva.ai platform
  version: 1.0.0
  contact:
    name: quiva.ai Support
    url: https://app.quiva.ai
servers:
  - url: https://api.quiva.ai
    description: Production API server
security:
  - bearerAuth: []
  - apiKeyAuth: []
tags:
  - name: Account Management
    description: Operations related to account creation, updating, and deletion
  - name: User Management
    description: Operations related to user creation, updating, and deletion
  - name: Authentication
    description: Operations related to authentication and session management
  - name: API Keys
    description: Operations related to API key management
  - name: Multi-Factor Authentication
    description: Operations related to MFA setup and verification
  - name: Payment
    description: Operations related to subscription and payment management
  - name: Mesh Nodes
    description: Operations related to mesh node management
paths:
  /accounts/session-tokens:
    get:
      tags:
        - Authentication
      summary: Get session tokens
      description: Retrieves all active session tokens for the current user
      operationId: getSessionTokens
      responses:
        '200':
          description: Session tokens retrieved successfully
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    type: object
                    properties:
                      auth:
                        type: array
                        items:
                          $ref: '#/components/schemas/SessionObject'
                      refresh:
                        type: array
                        items:
                          $ref: '#/components/schemas/RefreshTokenObject'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    SessionObject:
      type: object
      required:
        - account_id
        - user_id
        - account
        - role
        - expiry
        - ip
        - agent
        - platform
        - token
        - refresh_token
        - is_suspended
        - location
      properties:
        account_id:
          type: string
          description: Account ID
        user_id:
          type: string
          description: User ID
        account:
          type: string
          description: Account name
        email:
          type: string
          description: User email
        role:
          type: string
          description: User role
        expiry:
          type: number
          description: Subscription
        ip:
          type: string
          description: IP address
        agent:
          type: string
          description: User agent
        platform:
          type: string
          description: Platform
        token:
          type: string
          description: Authentication token
        refresh_token:
          type: string
          description: Refresh token
        is_suspended:
          type: boolean
          description: Whether the user is suspended
        location:
          type: string
          description: Location
    RefreshTokenObject:
      type: object
      properties:
        account_id:
          type: string
          description: Account ID
        user_id:
          type: string
          description: User ID
        account:
          type: string
          description: Account name
        email:
          type: string
          format: email
          description: User email
        role:
          type: string
          description: Role
        expiry:
          type: integer
          format: int64
          description: Token expiration timestamp
        token:
          type: string
          description: Refresh token
    Error:
      type: object
      properties:
        error:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key

````