Skip to content
中文

Download Skill Version Content

GET/agent/v1/skills/{skill_id}/versions/{version}/content◐ Partial

Request parameters

  • skill_idstringrequired

    path: Skill id (skill_...), as returned by skills.create or skills.list. A skill of another organization returns 404.

  • versionstringrequired

    path: Skill version id, as returned by skills.versions.create or skills.versions.list; an opaque string that increases with each upload.

Returns

200

Skill directories (a folder containing SKILL.md) can be uploaded and versioned; content downloads as application/zip. Only source custom is supported, and source anthropic returns an empty list. Uploads are limited to 8 MB in total and 200 files, with no .. or absolute paths. Versions are immutable. A skill that still has live versions cannot be deleted (409); delete all versions first.

Errors follow the Anthropic error format (type / message / request_id) — see error codes

Request

curl
curl https://api.deepraxis.com/agent/v1/skills/skill_123/versions/1759178010641129/content \
  -H "Authorization: Bearer $PRAXIS_API_KEY" --output skill.zip
Python
import requests

opts = dict(
    base_url="https://api.deepraxis.com/agent",
    api_key="$PRAXIS_API_KEY",
)

# /agent 是我们自己的 Managed Agents 形状,直接发 HTTP 请求(Bearer 认证)
resp = requests.get(
    f"{opts['base_url']}/v1/skills/skill_123/versions/1759178010641129/content",
    headers={"Authorization": f"Bearer {opts['api_key']}"},
)
resp.raise_for_status()
with open("skill.zip", "wb") as file:
    file.write(resp.content)
TypeScript
const opts = {
  baseURL: "https://api.deepraxis.com/agent",
  apiKey: "$PRAXIS_API_KEY",
};

// /agent 是我们自己的 Managed Agents 形状,直接发 HTTP 请求(Bearer 认证)
const resp = await fetch(`${opts.baseURL}/v1/skills/skill_123/versions/1759178010641129/content`, {
  headers: { Authorization: `Bearer ${opts.apiKey}` },
});
if (!resp.ok) throw new Error(`HTTP ${resp.status}`);
const { writeFile } = await import("node:fs/promises");
await writeFile("skill.zip", Buffer.from(await resp.arrayBuffer()));

Response 200

{
  "content_type": "application/zip",
  "size_bytes": 231
}

Response

HTTP 200

Binary response body

application/octet-stream

Name Type Description
$ string (binary)