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

# Get one version of a skill

> Returns one listed version's description, instructions and the list of its files, to compare with the live one before making it live. Files with the same `hash` in two versions are the same.



## OpenAPI

````yaml /api/statisfy-api.openapi.json get /v1/skills/{key}/versions/{version}
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}:
    get:
      tags:
        - skills
      summary: Get one version of a skill
      description: >-
        Returns one listed version's description, instructions and the list of
        its files, to compare with the live one before making it live. Files
        with the same `hash` in two versions are the same.
      operationId: skills_get_version
      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
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SkillVersionDetail'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    SkillVersionDetail:
      properties:
        description:
          title: Description
          type: string
        files:
          description: >-
            Its files, without the instructions; text ones are read with GET
            /v1/skills/{key}/versions/{version}/file
          items:
            $ref: '#/components/schemas/SkillFile'
          title: Files
          type: array
        instructions:
          description: What the agent follows when it uses the skill (Markdown)
          title: Instructions
          type: string
        live:
          description: Whether it is the version agents load now
          title: Live
          type: boolean
        parent_addendum:
          anyOf:
            - type: string
            - type: 'null'
          title: Parent Addendum
        run_in_sub_agent:
          title: Run In Sub Agent
          type: boolean
        saved_at:
          anyOf:
            - type: string
            - type: 'null'
          description: When it was saved (ISO 8601); null when storage reported no time
          title: Saved At
        version:
          title: Version
          type: integer
      required:
        - version
        - saved_at
        - live
        - description
        - instructions
        - run_in_sub_agent
        - parent_addendum
        - files
      title: SkillVersionDetail
      type: object
    SkillFile:
      properties:
        hash:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Its content hash: files of two versions with the same hash are the
            same bytes. Null when storage reported none
          title: Hash
        path:
          title: Path
          type: string
        size:
          description: Bytes
          title: Size
          type: integer
      required:
        - path
        - size
        - hash
      title: SkillFile
      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.