跳转到主要内容

Documentation Index

Fetch the complete documentation index at: https://docs.qoder.com/llms.txt

Use this file to discover all available pages before exploring further.

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

请求头

头部必选说明
AuthorizationBearer <PAT>

查询参数

参数类型必选说明
limitinteger每页返回数量上限
afterstring游标分页:返回此 ID 之后的记录
完整分页规范详见 分页

示例请求

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

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

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

示例响应

HTTP 200 OK
{
  "data": [
    {
      "id": "skill_019e3bba474b73cfaf19eae9b5f5e66d",
      "type": "skill",
      "name": "test-skill-api-doc",
      "description": "A test skill for API documentation",
      "skill_type": "custom",
      "status": "active",
      "version": 1,
      "content_size": 309,
      "content_sha256": "f253cb7d35790025f85917c0c239422cff1de067d00278db8897c585a3f28d94",
      "metadata": {},
      "created_at": "2026-05-18T15:35:24.248164Z",
      "updated_at": "2026-05-18T15:35:24.248164Z"
    }
  ],
  "first_id": "skill_019e3bba474b73cfaf19eae9b5f5e66d",
  "last_id": "skill_019e3bba474b73cfaf19eae9b5f5e66d",
  "has_more": false
}
空列表响应:
{
  "data": [],
  "first_id": null,
  "last_id": null,
  "has_more": false
}

响应字段

字段类型说明
dataarraySkill 对象数组
first_idstring | null当前页第一条记录 ID
last_idstring | null当前页最后一条记录 ID(用于 after 游标分页)
has_moreboolean是否还有更多记录(true 时使用 last_id 作为下一页的 after 值)

错误码

HTTPtype触发条件
401authentication_error缺少或无效的认证令牌
完整错误信封说明详见 错误参考