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

# Get a skill file

> Return the text content of a file in the skill's folder. Only text files can be read through this endpoint; binary assets (images, fonts) are not available via the API.



## OpenAPI

````yaml /openapi.yaml get /api/v1/spaces/{spaceId}/skills/{skillId}/files/{path}
openapi: 3.1.0
info:
  title: Nuwacom API
  description: API for Nuwacom application
  version: 1.0.0
servers:
  - url: https://{customer-tenant}.nuwacom.ai
    description: Nuwacom API
security:
  - bearerAuth: []
paths:
  /api/v1/spaces/{spaceId}/skills/{skillId}/files/{path}:
    get:
      tags:
        - Skills
      summary: Get a skill file
      description: >-
        Return the text content of a file in the skill's folder. Only text files
        can be read through this endpoint; binary assets (images, fonts) are not
        available via the API.
      operationId: getApiV1SpacesBySpaceIdSkillsBySkillIdFilesByPath
      parameters:
        - in: path
          name: spaceId
          schema:
            anyOf:
              - type: string
                minLength: 2
                maxLength: 6
              - type: string
                minLength: 21
                maxLength: 21
            description: ID of the space the skill belongs to.
          required: true
        - in: path
          name: skillId
          schema:
            type: string
            format: uuid
            description: Unique ID of the skill.
          required: true
        - in: path
          name: path
          schema:
            type: string
            minLength: 1
            maxLength: 512
            pattern: ^[a-zA-Z0-9_\-./]+$
            description: >-
              Relative path of the file within the skill folder (e.g.
              "reference/format.md"). Must not contain "..", "." or empty
              segments.
          required: true
      responses:
        '200':
          description: File content returned successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  path:
                    type: string
                  content:
                    type: string
                    description: Full text content of the file (UTF-8).
                required:
                  - path
                  - content
        '400':
          description: The path points to a binary file, which cannot be read as text.
        '403':
          description: >-
            The caller lacks permission to view skills in this space, or the
            skills feature is disabled.
        '404':
          description: Skill or file not found in the provided space.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````