---
title: "Get a Skill file"
method: GET
path: "/skills/v1/{skillId}/files"
tags: ["Skills"]
---

# Get a Skill file

`GET /skills/v1/{skillId}/files`

## Request

- Base URL: `https://api.langdock.com`
- URL: `https://api.langdock.com/skills/v1/{skillId}/files`
- Auth: HTTP bearer

Retrieves a stored Skill file by path from your workspace.

## Path parameters

- `skillId` string, uuid, required

## Query parameters

- `path` string, required

## Response `200`

File returned successfully

- SkillFileContent
  - `path` string, required: Relative path inside the Skill.
  - `sizeBytes` integer, required: File size in bytes.
  - `extension` string, required: Lowercase file extension, including the leading dot.
  - `hasScript` boolean, required: Whether the file is a script file (`.py`, `.sh`, `.js`, or `.ts`).
  - `sha256` string, required: Lowercase SHA-256 hash of the original file bytes.
  - `content` string, required: UTF-8 file contents.

## Other responses

- `400`: Invalid Skill ID, invalid path, unsupported file type, invalid UTF-8, or file larger than 512 KB
- `401`: Invalid or missing API key
- `403`: Missing required scope or access
- `404`: Skill or file not found
- `429`: Rate limit exceeded
- `500`: Internal server error

## Changes

- **2026-11-03** `c62bf90b4013`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/langdock/apis/langdock-api/changes/skills/v1/:skillId/files/get.md)

---

[API](https://skmtc.dev/langdock/apis/langdock-api.md) - [All operations](https://skmtc.dev/langdock/apis/langdock-api/llms.txt) - [OpenAPI document](https://skmtc.dev/langdock/apis/langdock-api/revisions/c62bf90b4013?raw)
