---
title: "Get skill content"
method: GET
path: "/api/v1beta/skills/content"
tags: ["skills"]
---

# Get skill content

`GET /api/v1beta/skills/content`

Retrieve the SKILL.md body and file listing from an artifact
without installing it. Accepts OCI refs, git refs, or local tags.

## Query parameters

- `ref` string, required

## Response `200`

OK

- GithubComStacklokToolhivePkgSkillsSkillContent
  - `body` string — Body is the raw SKILL.md markdown content.
  - `description` string — Description is the skill description from the OCI config labels.
  - `files` GithubComStacklokToolhivePkgSkillsSkillFileEntry[] — Files is the list of all files in the artifact with their sizes.
    - `path` string — Path is the file path within the artifact.
    - `size` integer — Size is the uncompressed file size in bytes.
  - `license` string — License is the SPDX license identifier from the OCI config labels.
  - `name` string — Name is the skill name from the OCI config labels.
  - `version` string — Version is the skill version from the OCI config labels.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized (registry refused credentials)
- `404` — Not Found (artifact not present in registry)
- `429` — Too Many Requests (registry rate limit)
- `500` — Internal Server Error
- `502` — Bad Gateway (upstream registry or git resolver failure)
- `504` — Gateway Timeout (upstream pull timed out)

---

[API](https://skmtc.dev/stacklok/apis/toolhive-api.md) · [All operations](https://skmtc.dev/stacklok/apis/toolhive-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stacklok/toolhive-api/revisions/e9f942effcda/schema)
