> ## 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.

# Get Files for a given version

> Retrieves the files for the given version ID and project ID.




## OpenAPI

````yaml /openapi/platform-api.yaml get /o/{organisation_id}/projects/{project_id}/versions/{version_id}/files
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/{version_id}/files:
    parameters:
      - $ref: '#/components/parameters/organisation_id'
      - $ref: '#/components/parameters/project_id'
      - $ref: '#/components/parameters/version_id'
    get:
      tags:
        - versions
      summary: Get Files for a given version
      description: |
        Retrieves the files for the given version ID and project ID.
      operationId: GetVersionFiles
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Files'
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
    version_id:
      name: version_id
      in: path
      required: true
      schema:
        type: string
        format: ulid
        x-go-type: ulid.ULID
        x-go-name: VersionID
        x-go-type-import:
          path: versori.dev/vergo/ulid
  schemas:
    Files:
      type: object
      properties:
        files:
          type: array
          description: The files associated with the project.
          items:
            $ref: '#/components/schemas/File'
        labels:
          type: object
          description: >
            The labels associated with the project. Labels are stored as
            key-value pairs.

            Only string-string values are allowed
          x-go-type: map[string]string
          x-go-type-skip-optional-pointer: true
      required:
        - files
        - labels
    File:
      type: object
      properties:
        filename:
          type: string
          description: The name of the file.
        content:
          type: string
          description: The content of the file.
      required:
        - filename
        - content
  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

````