Skip to main content

List Templates

Retrieve a paginated list of templates in the workspace.


Endpoint

GET https://api.campaignlark.com/v1/templates

Query Parameters

ParameterTypeRequiredDefaultDescription
pageintegeroptional1Page number.
limitintegeroptional50Items 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)

FieldTypeDescription
idintegerUnique template ID.
namestringTemplate name.
typestringeditor or code.
processedbooleanWhether the template has been fully processed and is ready to use. Always true for editor templates.

Pagination

FieldTypeDescription
current_pageintegerThe current page number.
per_pageintegerNumber of items per page.
total_pagesintegerTotal number of pages.
total_countintegerTotal number of items.