分页列出当前账号下的 Forward Template。
请求头
|
Header |
是否必填 |
说明 |
|
Authorization |
是 |
|
查询参数
|
参数 |
类型 |
是否必填 |
默认值 |
说明 |
|
|
string |
否 |
- |
按 |
|
|
integer |
否 |
20 |
分页大小,最大 100。 |
|
|
string |
否 |
- |
向后翻页游标,不能与 |
|
|
string |
否 |
- |
向前翻页游标,不能与 |
示例请求
curl -s -X GET 'https://api.qoder.com.cn/api/v1/forward/templates' \
-H "Authorization: Bearer $QODER_PAT"
示例响应
HTTP 200 OK
{
"data": [
{
"type": "template",
"id": "tmpl_support",
"name": "Support assistant",
"description": "Handles customer support requests",
"status": "active",
"created_at": "2026-06-18T10:00:00Z",
"updated_at": "2026-06-18T10:00:00Z"
}
],
"first_id": "tmpl_support",
"last_id": "tmpl_support",
"has_more": false
}
响应字段
|
字段 |
类型 |
说明 |
|
|
array |
当前页的 Template 摘要列表。 |
|
|
string|null |
当前页第一条记录 ID。 |
|
|
string|null |
当前页最后一条记录 ID。 |
|
|
boolean |
是否还有更多记录。 |
错误
|
HTTP |
Type |
Code |
触发条件 |
|
400 |
|
- |
分页参数不合法或 |
|
401 |
|
|
PAT 无效或已过期。 |
|
403 |
|
- |
当前调用方无权访问该资源。 |
备注
-
结果只包含当前鉴权账号可见的 Template。
-
after_id和before_id不能同时传入。
相关
该文章对您有帮助吗?