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

# List a user's policy version history

> The user's append-only policy version history from the durable PG store, each
row flagged ``is_current`` against the active pointer. Secret-adjacent (a version
body carries the raw condition) and admin-only: a non-admin caller is denied 403 so
it can never read another user's policy history. 404 when the user has no policy
history.



## OpenAPI

````yaml /openapi.json get /api/auth/api-keys/{user_id}/policy/versions
openapi: 3.1.0
info:
  description: The operator HTTP surface served under /api/*.
  title: tai42-skeleton API
  version: 0.1.1
servers: []
security: []
paths:
  /api/auth/api-keys/{user_id}/policy/versions:
    get:
      tags:
        - access-control
      summary: List a user's policy version history
      description: >-
        The user's append-only policy version history from the durable PG store,
        each

        row flagged ``is_current`` against the active pointer. Secret-adjacent
        (a version

        body carries the raw condition) and admin-only: a non-admin caller is
        denied 403 so

        it can never read another user's policy history. 404 when the user has
        no policy

        history.
      operationId: get_api_auth_api_keys_user_id_policy_versions
      parameters:
        - in: path
          name: user_id
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data: {}
                required:
                  - data
                type: object
          description: Success.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Missing or invalid api key.
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Forbidden.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Resource not found.
      security:
        - ApiKeyAuth: []
components:
  schemas:
    Error:
      properties:
        error:
          type: string
      required:
        - error
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: x-api-key
      type: apiKey

````