> ## 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.

# List templates

> List Forward templates under the current account with cursor pagination.

`GET /api/v1/forward/templates`

Lists Forward template baselines. Archived templates are excluded unless requested.

## 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

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

## Example response

**HTTP 200 OK**

```json theme={null}
{
  "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.

## Related

<CardGroup cols={2}>
  <Card title="Create a template" icon="plus" href="/cloud-agents/api/forward/templates/create" />

  <Card title="Get a template" icon="file-lines" href="/cloud-agents/api/forward/templates/get" />
</CardGroup>
