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

# Lists versions for a project

> List all versions of a project.




## OpenAPI

````yaml /openapi/platform-api.yaml get /o/{organisation_id}/projects/{project_id}/versions
openapi: 3.1.0
info:
  title: Versori Platform API
  version: 0.0.1
  license:
    name: UNLICENSED
servers:
  - description: Production
    url: https://platform.versori.com/api/v2
  - description: Staging
    url: https://platform-staging.versori.com/api/v2
  - description: Development
    url: http://localhost:8901
security:
  - bearerToken: []
  - cookie: []
paths:
  /o/{organisation_id}/projects/{project_id}/versions:
    parameters:
      - $ref: '#/components/parameters/organisation_id'
      - $ref: '#/components/parameters/project_id'
    get:
      tags:
        - versions
      summary: Lists versions for a project
      description: |
        List all versions of a project.
      operationId: ListProjectVersions
      parameters:
        - $ref: '#/components/parameters/first'
        - $ref: '#/components/parameters/after'
        - $ref: '#/components/parameters/before'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VersionPage'
components:
  parameters:
    organisation_id:
      name: organisation_id
      in: path
      required: true
      schema:
        type: string
        format: ulid
        x-go-type: ulid.ULID
        x-go-name: OrganisationID
        x-go-type-import:
          path: versori.dev/vergo/ulid
    project_id:
      name: project_id
      in: path
      required: true
      schema:
        type: string
        format: ulid
        x-go-type: ulid.ULID
        x-go-name: ProjectID
        x-go-type-import:
          path: versori.dev/vergo/ulid
    first:
      name: first
      in: query
      required: false
      schema:
        type: integer
        default: 20
    after:
      name: after
      in: query
      required: false
      schema:
        type: string
    before:
      name: before
      in: query
      required: false
      schema:
        type: string
  schemas:
    VersionPage:
      description: A page of project versions.
      type: object
      allOf:
        - $ref: '#/components/schemas/PageInfo'
        - type: object
          properties:
            items:
              type: array
              items:
                $ref: '#/components/schemas/ProjectVersion'
          required:
            - items
    PageInfo:
      type: object
      properties:
        totalCount:
          type: integer
        next:
          type: string
          x-go-type-skip-optional-pointer: true
        prev:
          type: string
          x-go-type-skip-optional-pointer: true
      required:
        - totalCount
    ProjectVersion:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier for the version.
          format: ulid
          x-go-name: ID
          x-go-type: ulid.ULID
          x-go-type-skip-optional-pointer: true
          x-go-type-import:
            path: versori.dev/vergo/ulid
        name:
          type: string
          x-go-type-skip-optional-pointer: true
          description: >
            The short name for this version. This name must be unique within
            this project.
        description:
          type: string
          x-go-type-skip-optional-pointer: true
          description: |
            The description of this version.
        labels:
          type: object
          x-go-type-skip-optional-pointer: true
          x-go-type: map[string]string
          description: |
            Key-value pairs of strings.
        state:
          $ref: '#/components/schemas/VersionState'
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - name
        - state
        - createdAt
    VersionState:
      type: string
      description: The state of the version.
      enum:
        - draft
        - failed
        - ready
        - superseded
  securitySchemes:
    bearerToken:
      description: >
        Bearer token authentication used by the Versori Platform. External
        consumers must provide an API key, however

        internal consumers must provide a JWT id_token issued by our IdP.
      type: http
      scheme: bearer
    cookie:
      description: Cookie authentication used by the Versori Platform.
      type: apiKey
      in: cookie
      name: cookie

````