> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nextvisitai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List all access tokens

> Returns a list of the authenticated user's access tokens



## OpenAPI

````yaml api-reference/openapi.json get /v1/auth/tokens
openapi: 3.1.0
info:
  title: Nextvisit API
  description: API for the Nextvisit Clinical Documentation platform for developers
  version: 1.0.0
  termsOfService: https://nextvisit.com/terms/
  contact:
    name: Nextvisit, Inc.
    email: support@nextvisit.com
  license:
    name: Proprietary
    url: https://nextvisit.app/terms-of-service
servers:
  - url: https://nextvisit.app/api
    description: Production API
  - url: http://localhost/api
    description: Developer Proxy
security: []
tags:
  - name: Tokens
    description: >-
      User token management endpoints for secure access to the Nextvisit
      platform. Includes login, logout, and token management operations.
  - name: Progress Notes
    description: >-
      Clinical progress note management including creating, updating,
      retrieving, and signing notes with associated transcriptions and analyses.
  - name: Users
    description: >-
      User account management including profile updates, permission settings,
      role assignments, and practice affiliations.
paths:
  /v1/auth/tokens:
    get:
      tags:
        - Tokens
      summary: List all access tokens
      description: Returns a list of the authenticated user's access tokens
      operationId: apiListTokens
      responses:
        '200':
          description: List of tokens
          content:
            application/json:
              schema:
                type: object
                properties:
                  tokens:
                    type: array
                    items:
                      $ref: '#/components/schemas/TokenInfo'
              examples:
                default:
                  $ref: '#/components/examples/TokensListExample'
        '401':
          $ref: '#/components/responses/Unauthorized'
      security:
        - bearerAuth: []
components:
  schemas:
    TokenInfo:
      type: object
      properties:
        id:
          type: integer
          description: Unique identifier for the token
          example: 123
        name:
          type: string
          description: Name of the device or application the token was created for
          example: iPhone 14 Pro
        created_at:
          type: string
          format: date-time
          description: When the token was created
          example: '2023-01-01T12:00:00.000000Z'
        last_used_at:
          type: string
          format: date-time
          description: When the token was last used
          example: '2023-01-02T14:30:00.000000Z'
      required:
        - id
        - name
        - created_at
    Error:
      type: object
      properties:
        message:
          type: string
          description: Error message
          example: Validation failed
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: Detailed validation errors by field
          example:
            email:
              - The email must be a valid email address
              - The email has already been taken
            password:
              - The password must be at least 8 characters
            template_name:
              - This field is required
      required:
        - message
  examples:
    TokensListExample:
      value:
        tokens:
          - id: 123
            name: iPhone 14 Pro
            created_at: '2023-01-01T12:00:00.000000Z'
            last_used_at: '2023-01-02T14:30:00.000000Z'
          - id: 124
            name: MacBook Pro
            created_at: '2023-01-10T09:15:00.000000Z'
            last_used_at: '2023-01-10T15:22:00.000000Z'
  responses:
    Unauthorized:
      description: Unauthorized access
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            message: Unauthorized
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````