读取技能版本
GET
/anthropic/v1/skills/{skill_id}/versions/{version}◐ 部分支持请求参数
skill_idstring必填path: Skill ID(路径或查询参数)。
versionstring必填path: 路径参数:版本号。
返回
501
支持上传 Skill 目录(含 SKILL.md)并按版本管理,下载的是 application/zip。只支持 source=custom,source=anthropic 返回空列表。上传总大小不超过 8 MB、最多 200 个文件,路径不得含 .. 或绝对路径。版本不可变;有未删除版本的技能不能删除(409),需先删除全部版本。
错误按 Claude Managed Agents 格式返回,参见 错误码
请求示例
curl
curl https://api.deepraxis.com/anthropic/v1/skills/skill_123/versions/1 \
-H "x-api-key: $PRAXIS_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "anthropic-beta: managed-agents-2026-04-01"Python
from anthropic import Anthropic
client = Anthropic(
base_url="https://api.deepraxis.com/anthropic",
api_key="$PRAXIS_API_KEY",
)
# 官方有、平台未支持:调用得到 501(not_implemented_error),无副作用。
result = client.beta.skills.versions.retrieve("1", {"skill_id": "skill_123"})
print(result)TypeScript
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
baseURL: "https://api.deepraxis.com/anthropic",
apiKey: "$PRAXIS_API_KEY",
});
// 官方有、平台未支持:调用得到 501(not_implemented_error),无副作用。
const result = await client.beta.skills.versions.retrieve("1", { skill_id: "skill_123" });
console.log(result);响应示例 501
{
"type": "error",
"error": {
"type": "not_implemented_error",
"message": "Not implemented: this Managed Agents operation is not implemented on this platform yet (GET /v1/skills/{skill_id}/versions/{version}); see the docs for the supported subset."
},
"request_id": "09b3af8b-426b-4d15-abc5-bcaecb78891c"
}响应
HTTP 200
Successful response
application/json
| 名称 | 类型 | 说明 |
|---|---|---|
| id | string | Unique identifier for this Skill Version. The id addresses the version in paths and pins it in references. |
| created_at | string | ISO 8601 timestamp of when the skill was created. |
| description | string | Description of the skill version. This is extracted from the SKILL.md file in the skill upload. |
| name | string | The Skill's immutable kebab-case slug, set at creation from the first upload's SKILL.md frontmatter name (or its enclosing directory). Every later upload must resolve to the same value. Also the top-level directory of the Skill's mounted files and the base name of a downloaded archive. |
| skill_id | string | Unique identifier for the skill. The format and length of IDs may change over time. |
| type | string | Object type. For Skill Versions, this is always "skill_version". |