---
title: "Get a single file from a skill version"
method: GET
path: "/api/v1/skills/{slug}/versions/{version}/files/{*}"
tags: ["Skills"]
---

# Get a single file from a skill version

`GET /api/v1/skills/{slug}/versions/{version}/files/{*}`

## Request

- Base URL: `https://api.skills-hub.ai`
- URL: `https://api.skills-hub.ai/api/v1/skills/{slug}/versions/{version}/files/{*}`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

Returns the content of one file within a published skill version, keyed by the relative path captured after `files/` (nested paths allowed). Public, honors skill visibility, and rejects path-traversal attempts with `400 INVALID_PATH`.

## Path parameters

- `slug` string, required
- `version` string, required
- `*` string, required

## Response `200`

Successful response. The returned fields are described in this endpoint's summary/description; typed per-field response schemas are being added incrementally.

- unknown

---

[API](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api.md) · [All operations](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api/revisions/cb5d46d80300?raw)
