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

# List personal access tokens

> List token metadata without revealing token values. This administration operation requires an interactive user JWT; a personal access token cannot administer tokens.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/users/{user_id}/personal-access-tokens
openapi: 3.1.0
info:
  title: Synth API Reference
  version: 2026-08-23.alpha
  description: HTTP API for your account, tasks, datasets, agent runs and usage.
servers:
  - url: https://sprites-gateway.api.synthlabs.ai
    description: Synth API
security: []
tags:
  - name: Identity
    description: Manage customer tokens without exposing internal service credentials.
  - name: Registry
    description: >-
      Create, discover, set visibility, version, execute, and inspect results
      for Harbor-compatible tasks and datasets.
  - name: Managed execution
    description: Validate, run, observe, and retrieve Harbor-compatible managed work.
  - name: Usage
    description: Inspect authoritative current rolling quota.
paths:
  /api/v1/users/{user_id}/personal-access-tokens:
    get:
      tags:
        - Identity
      summary: List personal access tokens
      description: >-
        List token metadata without revealing token values. This administration
        operation requires an interactive user JWT; a personal access token
        cannot administer tokens.
      operationId: listPersonalAccessTokens
      parameters:
        - in: path
          name: user_id
          required: true
          schema:
            format: uuid
            title: User Id
            type: string
        - in: query
          name: limit
          required: false
          schema:
            default: 100
            maximum: 100
            minimum: 1
            title: Limit
            type: integer
        - in: query
          name: offset
          required: false
          schema:
            default: 0
            minimum: 0
            title: Offset
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PersonalAccessTokenListResponse'
          description: Successful Response
        '401':
          description: Interactive login is missing, invalid, or expired
        '403':
          description: >-
            Caller is not the requested user, used a PAT/API key, or no longer
            has active organization membership
        '422':
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/HTTPValidationError'
                  - properties:
                      detail:
                        title: Detail
                        type: string
                    required:
                      - detail
                    title: PatCreateOrgClaimError
                    type: object
          description: >-
            Request validation failed or the login lacks a top-level
            `organization_id` claim
        '503':
          description: PAT storage is temporarily unavailable
      security:
        - UserBearer: []
components:
  schemas:
    PersonalAccessTokenListResponse:
      description: Owner-scoped token metadata list.
      properties:
        items:
          items:
            $ref: '#/components/schemas/PersonalAccessTokenSummary'
          title: Items
          type: array
        limit:
          title: Limit
          type: integer
        offset:
          title: Offset
          type: integer
      required:
        - items
        - limit
        - offset
      title: PersonalAccessTokenListResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    PersonalAccessTokenSummary:
      description: Safe token metadata; never includes raw or hashed secret material.
      properties:
        created_at:
          format: date-time
          title: Created At
          type: string
        creation_request_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: Creation Request Id
        expires_at:
          format: date-time
          title: Expires At
          type: string
        id:
          format: uuid
          title: Id
          type: string
        last_used_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Last Used At
        name:
          title: Name
          type: string
        organization_id:
          format: uuid
          title: Organization Id
          type: string
        revoked_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Revoked At
        scopes:
          items:
            enum:
              - gateway:user
              - inference:invoke
            type: string
          title: Scopes
          type: array
        token_ref:
          pattern: ^tok_[0-9a-f]{8}$
          title: Token Ref
          type: string
      required:
        - id
        - organization_id
        - name
        - token_ref
        - scopes
        - created_at
        - expires_at
      title: PersonalAccessTokenSummary
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    UserBearer:
      description: Synth customer access token for the current user and organization.
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.