列出技能
GET
/agent/v1/skills◐ 部分支持请求参数
sourcestring可选query: 按来源筛选技能。若提供,仅返回指定来源的技能:custom 仅返回用户创建的技能;anthropic 仅返回 Anthropic 创建的技能。
limitnumber可选query: Number of items per page.
pagestring可选query: 不透明分页游标:原样传入上一响应的 next_page 值。第一页省略。来自不同查询或格式错误的游标返回 400。
返回
200
支持上传 Skill 目录(含 SKILL.md)并按版本管理,下载的是 application/zip。只支持 source=custom,source=anthropic 返回空列表。上传总大小不超过 8 MB、最多 200 个文件,路径不得含 .. 或绝对路径。版本不可变;有未删除版本的技能不能删除(409),需先删除全部版本。
错误按 Anthropic 错误格式返回(type / message / request_id),参见 错误码
请求示例
curl
curl https://api.deepraxis.com/agent/v1/skills \
-H "Authorization: Bearer $PRAXIS_API_KEY"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",
headers={"Authorization": f"Bearer {opts['api_key']}"},
)
print(resp.status_code, resp.json())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`, {
headers: { Authorization: `Bearer ${opts.apiKey}` },
});
console.log(resp.status, await resp.json());响应示例 200
{
"data": [
{
"id": "skill_251b52d0a70447e685d3ca9efc23edce",
"type": "skill",
"display_name": "docs-sample",
"latest_version_id": "1792747555718000",
"source": "custom",
"created_at": "2026-10-23T09:25:55.718Z",
"updated_at": "2026-10-23T09:25:55.718Z"
}
],
"next_page": null
}响应
HTTP 200
Successful response
application/json
| 名称 | 类型 | 说明 |
|---|---|---|
| data | array<object> | Items of this page, in the order requested by the call. |
| data[].id | string | Unique identifier for the skill. The format and length of IDs may change over time. |
| data[].created_at | string | ISO 8601 timestamp of when the skill was created. |
| data[].display_name | string | Human-readable, single-line label for the Skill. Maximum 255 characters. Always set: derived from the SKILL.md frontmatter name when omitted at creation. Not unique. |
| data[].latest_version_id | string | ID of the newest Skill Version — what latest references resolve to. Always set: a Skill holds at least one version. |
| data[].source | object | Where the Skill comes from. Possible values: - "custom": authored by the platform user; private to their workspace - "anthropic": published by Anthropic; shared and read-only - "anthropic_example": Anthropic-published sample Skill - "plugin": resolved from an installed plugin |
| data[].type | string | Object type. For Skills, this is always "skill". |
| data[].updated_at | string | ISO 8601 timestamp of when the skill was last updated. |
| next_page | string | null | Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page. |