---
title: "Get plugin content"
method: GET
path: "/api/v1beta/plugins/content"
tags: ["plugins"]
---

# Get plugin content

`GET /api/v1beta/plugins/content`

Retrieve the plugin.json 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

- GithubComStacklokToolhivePkgPluginsPluginContent
  - `description` string — Description is the plugin description from the OCI config labels.
  - `files` GithubComStacklokToolhivePkgPluginsPluginFileEntry[] — 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.
  - `manifest` string — Manifest is the raw .claude-plugin/plugin.json body.
  - `name` string — Name is the plugin name from the OCI config labels.
  - `version` string — Version is the plugin 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)
