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

# List User Tokens

> Returns all tokens assigned to the specified user, including their IDs, expiration dates, and revocation status.



## OpenAPI

````yaml GET /api/v1/organizations/{org_id}/users/{user_id}/tokens
openapi: 3.1.0
info:
  title: Organization Management API
  version: 1.0.0
servers:
  - url: https://anaconda.com
    description: Anaconda Cloud
security: []
paths:
  /api/v1/organizations/{org_id}/users/{user_id}/tokens:
    get:
      tags:
        - organizations
      summary: List User Tokens
      description: >-
        Returns all tokens assigned to the specified user, including their IDs,
        expiration dates, and revocation status.
      operationId: list_user_tokens
      parameters:
        - name: org_id
          in: path
          required: true
          schema:
            type: string
          description: >-
            Your organization ID, found in your organization's URL:
            `anaconda.com/app/organizations/<ORG_ID>/`.
        - name: user_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: The unique identifier of the user whose tokens to retrieve.
      responses:
        '200':
          description: List of user tokens
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenListResponse'
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - JWT or Access Token: []
components:
  schemas:
    TokenListResponse:
      type: object
      required:
        - items
      properties:
        items:
          type: array
          description: The list of tokens for the user.
          items:
            $ref: '#/components/schemas/Token'
    HTTPValidationError:
      type: object
      properties:
        detail:
          type: array
          description: A list of validation errors.
          items:
            $ref: '#/components/schemas/ValidationError'
    Token:
      type: object
      required:
        - id
        - expires_at
        - metadata
      properties:
        id:
          type: string
          description: The unique identifier for this token.
        expires_at:
          type: string
          description: The expiration date and time of this token.
        metadata:
          type: object
          description: Additional metadata associated with this token.
        revoked:
          type:
            - boolean
            - 'null'
          description: Whether this token has been revoked.
    ValidationError:
      type: object
      required:
        - loc
        - msg
        - type
      properties:
        loc:
          type: array
          items:
            type: string
          description: >-
            The location of the validation error (for example, `["body",
            "name"]`).
        msg:
          type: string
          description: A human-readable validation error message.
        type:
          type: string
          description: The type of validation error.
  securitySchemes:
    JWT or Access Token:
      bearerFormat: JWT
      description: >-
        Bearer token obtained by authenticating with [service
        account](/anaconda-platform/admin/service-accounts) credentials
        (`client_id` and `client_secret`).


        See the [Getting
        started](/anaconda-platform/admin/org-management-api/org-management-api)
        page for the full authentication flow.
      scheme: bearer
      type: http

````