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

# Read a file of one version

> Returns the text of one of a listed version's files, by its `path` from `files`. A file that isn't text is a 422.



## OpenAPI

````yaml /api/statisfy-api.openapi.json get /v1/skills/{key}/versions/{version}/file
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/skills/{key}/versions/{version}/file:
    get:
      tags:
        - skills
      summary: Read a file of one version
      description: >-
        Returns the text of one of a listed version's files, by its `path` from
        `files`. A file that isn't text is a 422.
      operationId: skills_read_version_file
      parameters:
        - description: The skill's key, from GET /v1/skills
          in: path
          name: key
          required: true
          schema:
            maxLength: 64
            type: string
        - description: A version from GET /v1/skills/{key}/versions
          in: path
          name: version
          required: true
          schema:
            minimum: 1
            type: integer
        - description: >-
            The file's path, from `files` on GET
            /v1/skills/{key}/versions/{version}
          in: query
          name: path
          required: true
          schema:
            maxLength: 512
            minLength: 1
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SkillFileContent'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    SkillFileContent:
      properties:
        content:
          description: The file's text
          title: Content
          type: string
        path:
          title: Path
          type: string
        size:
          description: Bytes
          title: Size
          type: integer
      required:
        - path
        - size
        - content
      title: SkillFileContent
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

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