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

# List personal tokens

> Returns metadata without token values.



## OpenAPI

````yaml /api-reference/openapi.personal.json get /v1/users/me/pats
openapi: 3.1.0
info:
  title: Personal token API
  description: User-scoped API for account and organization management.
  version: 0.1.0
servers:
  - url: https://api.microsandbox.dev
security:
  - bearer: []
paths:
  /v1/users/me/pats:
    get:
      tags:
        - Credentials
      summary: List personal tokens
      description: Returns metadata without token values.
      operationId: list_pats
      responses:
        '200':
          description: Active PATs for the current user
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PersonalAccessTokenResponse'
        '401':
          description: Unauthorized
      security:
        - bearer: []
components:
  schemas:
    PersonalAccessTokenResponse:
      type: object
      description: PAT metadata returned in list responses. Never includes the raw token.
      required:
        - id
        - name
        - prefix
        - created_at
      properties:
        created_at:
          type: string
          format: date-time
        expires_at:
          type:
            - string
            - 'null'
          format: date-time
        id:
          type: string
          format: uuid
        last_used_at:
          type:
            - string
            - 'null'
          format: date-time
        name:
          type: string
        prefix:
          type: string
          description: Last 8 chars of the original token - safe to display.
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: >-
        Personal access token (msb_pat_…) or session JWT - the credential an
        agent acts with on a user's behalf.

````