List Templates
Retrieve a paginated list of templates in the workspace.
Endpoint
GET https://api.campaignlark.com/v1/templates
Query Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
page | integer | optional | 1 | Page number. |
limit | integer | optional | 50 | Items per page (1–100). |
Sample Request
GET https://api.campaignlark.com/v1/templates?page=1&limit=50
Response
Success — 200 OK
{
"error": null,
"data": {
"templates": [
{
"id": 1,
"name": "Welcome Email",
"type": "editor",
"processed": true
}
],
"pagination": {
"current_page": 1,
"per_page": 50,
"total_pages": 1,
"total_count": 1
}
}
}
Template Object (List)
| Field | Type | Description |
|---|---|---|
id | integer | Unique template ID. |
name | string | Template name. |
type | string | editor or code. |
processed | boolean | Whether the template has been fully processed and is ready to use. Always true for editor templates. |
Pagination
| Field | Type | Description |
|---|---|---|
current_page | integer | The current page number. |
per_page | integer | Number of items per page. |
total_pages | integer | Total number of pages. |
total_count | integer | Total number of items. |