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

# List policy versions

> Return every policy version on your account, newest first, without their policy_definition payloads.




## OpenAPI

````yaml https://app.herondata.io/swagger get /api/policy_version
openapi: 3.0.0
info:
  contact:
    email: support@herondata.io
    name: Support
  title: Heron Data API
  version: '2021-07-19'
servers:
  - description: Production
    url: https://app.herondata.io
security:
  - ApiKeyAuth:
      - key_XXX
externalDocs:
  description: Read Tutorial
  url: https://docs.herondata.io/
paths:
  /api/policy_version:
    get:
      tags:
        - Policy Versions
      summary: List policy versions
      description: >
        Return every policy version on your account, newest first, without their
        policy_definition payloads.
      parameters:
        - description: Account to act on. Honoured only for admins.
          in: query
          name: user_id
          required: false
          schema:
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  policy_versions:
                    items:
                      $ref: '#/components/schemas/PolicyVersionSummarySchema'
                    type: array
                type: object
          description: OK
        '404':
          description: Not found
      security:
        - ApiKeyAuth: []
components:
  schemas:
    PolicyVersionSummarySchema:
      properties:
        author_email:
          description: >-
            Email of whoever last acted on this version: the drafter while it is
            a draft, the publisher once published
          readOnly: true
          type: string
        change_description:
          description: What changed in this version
          nullable: true
          readOnly: true
          type: string
        created:
          format: date-time
          readOnly: true
          type: string
        last_edited_at:
          format: date-time
          nullable: true
          readOnly: true
          type: string
        published_at:
          format: date-time
          nullable: true
          readOnly: true
          type: string
        status:
          enum:
            - draft
            - active
            - archived
          readOnly: true
        version:
          description: Version number, unique per account
          readOnly: true
          type: integer
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: x-api-key
      type: apiKey

````

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