Skip to main content
Skills

列出 Skill

Forward Skills API 接口说明。

描述

获取当前账户可见的 Skill 列表,支持游标分页和名称前缀搜索。

路径

GET /api/v1/forward/skills

请求头

头部必选说明
AuthorizationBearer <PAT 或 SAT>

查询参数

参数类型必选说明
limitinteger分页大小,最大 100。
pagestring分页游标(推荐使用),取值来自上一页响应的 next_page;与 after_idbefore_id 互斥。
after_idstring向后翻页游标;与 pagebefore_id 互斥。
before_idstring向前翻页游标;与 pageafter_id 互斥。
display_titlestring按 Skill 展示名前缀搜索,不区分大小写。
sourcestring按 Skill 来源过滤,可选 customqoder。传 source 时不支持 before_id
namestring⚠️ 已弃用display_title 的兼容别名,语义完全一致。请使用 display_title

示例请求

curl -X GET "https://api.qoder.com/api/v1/forward/skills" \
  -H "Authorization: Bearer $QODER_ACCESS_TOKEN"

示例响应

{
  "data": [
    {
      "id": "skill_xxx",
      "type": "skill",
      "display_title": "customer-reply",
      "description": "Customer reply skill",
      "source": "custom",
      "latest_version": "1759178010641129",
      "metadata": {
        "source": "console"
      },
      "created_at": "2026-07-23T10:00:00Z",
      "updated_at": "2026-07-23T10:00:00Z",
      "identity_id": null,
      "icon_url": null,
      "binding_info": {
        "agent_template_count": 0
      }
    }
  ],
  "first_id": "skill_xxx",
  "last_id": "skill_xxx",
  "has_more": false,
  "next_page": null
}

空列表响应

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

响应字段

响应 data 数组每一项为 Skill 对象(列表结果不包含 content / content_encoding)。分页字段详见 列表分页字段

错误码

HTTPtype触发条件
400invalid_request_error请求体、路径参数或查询参数非法。
401authentication_error缺少或无效的认证令牌。
403permission_error当前调用方无权访问该资源。
500/502/503api_errorForward 或依赖服务失败。