All Products
Search
Document Center

Qoder CN Series:List templates

Last Updated:Jul 15, 2026

List Forward templates under the current account with cursor pagination.

Request headers

Header

Required

Description

Authorization

Yes

Bearer <PAT>

Query parameters

Parameter

Type

Required

Default

Description

status

string

No

-

Filter by active or archived.

limit

integer

No

20

Items per page. Maximum 100.

after_id

string

No

-

Cursor for records after the given Template ID. Cannot be used with before_id.

before_id

string

No

-

Cursor for records before the given Template ID. Cannot be used with after_id.

Example request

curl -s -X GET 'https://api.qoder.com.cn/api/v1/forward/templates?status=active&limit=20' \
  -H "Authorization: Bearer $QODER_PAT"

Example response

HTTP 200 OK

{
  "data": [
    {
      "type": "template",
      "id": "tmpl_support",
      "name": "Support assistant",
      "description": "Handles pre-sales and after-sales support",
      "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
}

Response fields

Field

Type

Description

data

array

Template objects on the current page.

first_id

string|null

ID of the first record on this page.

last_id

string|null

ID of the last record on this page.

has_more

boolean

Whether more records remain.

Errors

HTTP

Type

Trigger

400

invalid_request_error

Invalid pagination parameters or limit above 100.

401

authentication_error

PAT invalid or expired.

403

permission_error

Not authorized for this resource.

Notes

  • Results are scoped to the authenticated account.

  • Use after_id or before_id for cursor pagination, not both.