全部产品
Search
文档中心

Qoder CN 系列:列出 Skills

更新时间:Jul 14, 2026

获取当前账户下所有 Skill 的列表,支持分页。

GET /api/v1/cloud/skills

获取当前账户下所有 Skill 的列表,支持分页。

请求头

头部

必选

说明

Authorization

Bearer <PAT>

查询参数

参数

类型

必选

说明

limit

integer

每页返回数量上限。默认 20,范围 1-100。超过 100 返回 400 invalid_request_error

page

string

Claude 风格的向后翻页游标,等价于 after_id;与 before_idafter_id 互斥

after_id

string

游标分页:返回此 ID 之后的记录。与 pagebefore_id 互斥

before_id

string

游标分页:返回此 ID 之前的记录。与 pageafter_id 互斥

name

string

按 Skill 名称前缀搜索,不区分大小写

source

string

按来源过滤,可选值:customqoder

完整分页规范详见 分页。

示例请求

# 获取所有 Skill
curl -X GET "https://api.qoder.com.cn/api/v1/cloud/skills" \
  -H "Authorization: Bearer $QODER_PAT"

# 分页获取
curl -X GET "https://api.qoder.com.cn/api/v1/cloud/skills?limit=10" \
  -H "Authorization: Bearer $QODER_PAT"

# 使用游标翻页
curl -X GET "https://api.qoder.com.cn/api/v1/cloud/skills?limit=10&page=skill_019e3bba474b73cfaf19eae9b5f5e66d" \
  -H "Authorization: Bearer $QODER_PAT"

示例响应

HTTP 200 OK

{
  "data": [
    {
      "id": "skill_019e3bba474b73cfaf19eae9b5f5e66d",
      "type": "skill",
      "display_title": "test-skill-api-doc",
      "description": "A test skill for API documentation",
      "source": "custom",
      "latest_version": "1",
      "metadata": {
        "team": "docs"
      },
      "created_at": "2026-05-18T15:35:24.248164Z",
      "updated_at": "2026-05-18T15:35:24.248164Z"
    }
  ],
  "next_page": null,
  "first_id": "skill_019e3bba474b73cfaf19eae9b5f5e66d",
  "last_id": "skill_019e3bba474b73cfaf19eae9b5f5e66d",
  "has_more": false
}

空列表响应:

{
  "data": [],
  "next_page": null,
  "first_id": null,
  "last_id": null,
  "has_more": false
}

响应字段

字段

类型

说明

data

array

Skill 对象数组;列表响应不包含 content

next_page

string | null

下一页向后游标;has_moretrue 时传给 page

first_id

string | null

当前页第一条记录 ID

last_id

string | null

当前页最后一条记录 ID

has_more

boolean

是否还有更多记录(true 时使用 next_page 作为下一页的 page 值)

错误码

HTTP

type

触发条件

400

invalid_request_error

limitsource 非法,或同时传入多个 pagebefore_idafter_id

401

authentication_error

缺少或无效的认证令牌

完整错误信封说明详见 错误参考