List templates
Lists the WhatsApp message templates of the account, newest first. Use it to find a template ID and to see which templates WhatsApp has approved. Returns templates with status, variables and whether they can be sent.
GET /v1/templates
| Permission | templates:read (all permissions) |
| Risk | Read |
| Idempotency-Key | Not needed (how it works) |
| Safe to repeat | Safe: the call only reads. |
| Rate limit class | read (120 requests per minute per key) |
| Confirmation | None |
| MCP tool | list_templates |
| Since version | 2026-10-25 |
#What it does
- Only reads data. It changes nothing and sends nothing.
#Request
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
limit | integer | no | Items per page (1 to 100, default 20). 1 to 100; default 20 |
cursor | string | no | next_cursor from the previous page. Opaque; only valid with the same filters. up to 300 characters |
status | string | no | Only templates with this approval state. one of: draft, pending, approved, rejected, paused, disabled |
sendable | boolean | no | True: only templates that can be sent through the API now. False: only the others. |
#Lists, filters and sorting
- Items per page:
limitfrom 1 to 100, default 20 (MCP: default 20, maximum 50). - Next page: send
next_cursorof the answer ascursor. The cursor only works with the same filters. See Pagination. - Filters:
status,sendable. - Sorting: newest first (
created_atdescending, theniddescending); no other order.
#Examples
curl "https://api.smartchat.marketing/v1/templates?status=approved&limit=2" \
-H "Authorization: Bearer $SMARTCHAT_API_KEY"import os
import requests
response = requests.get(
"https://api.smartchat.marketing/v1/templates",
headers={"Authorization": "Bearer " + os.environ["SMARTCHAT_API_KEY"]},
params={
"status": "approved",
"limit": "2",
},
)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.smartchat.marketing/v1/templates?status=approved&limit=2", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.SMARTCHAT_API_KEY}`,
},
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());Response (200):
{
"object": "list",
"data": [
{
"object": "template",
"id": "tpl_0f8c1a2e4b7d4c3e9a5b6d7e8f901234",
"name": "Autumn menu",
"channel": "whatsapp",
"purpose": "marketing",
"language": "en",
"text": "Hi {{first_name}}, our autumn menu is here. Book a table for this week.",
"footer": "Reply STOP to unsubscribe",
"buttons": [
{
"type": "quick_reply",
"text": "Book a table",
"url": null
}
],
"status": "approved",
"sendable": true,
"variables": [
"first_name"
],
"settable_variables": [],
"submittable": false,
"issues": [],
"rejection_reason": null,
"created_at": "2026-10-25T09:41:07Z",
"updated_at": "2026-10-25T09:41:07Z"
}
],
"has_more": false,
"next_cursor": null,
"url": "/v1/templates"
}#Response
Status 200. Every response has the headers Request-Id, SmartChat-Version and X-RateLimit-*.
| Name | Type | Description |
|---|---|---|
object | string | Always "list". always list |
data | array of object | The items of this page. up to 100 items |
data[].object | string | Always "template". always template |
data[].id | string | Template ID. |
data[].name | string | Name of the template. up to 120 characters |
data[].channel | string | Channel. Only whatsapp exists. one of: whatsapp |
data[].purpose | string | Purpose of the template, for example marketing or utility. up to 40 characters |
data[].language | string or null | Language version at WhatsApp, for example en or de. up to 10 characters |
data[].text | string | Message text with placeholders such as {{1}}. up to 20000 characters |
data[].footer | string or null | Footer line or null. up to 60 characters |
data[].buttons | array of object | Buttons of the template. up to 10 items |
data[].buttons[].type | string | quick_reply sends the label back as a reply. url opens a web address. one of: quick_reply, url |
data[].buttons[].text | string | Label on the button. up to 60 characters |
data[].buttons[].url | string or null | Web address for a url button, otherwise null. up to 2000 characters |
data[].status | string | Approval state at WhatsApp. Only approved templates can be sent outside the 24-hour window. one of: draft, pending, approved, rejected, paused, disabled |
data[].sendable | boolean | True if the template can be sent through the API now (approved, WhatsApp, not a system template). |
data[].variables | array of string | All placeholders in the approved text. up to 50 items |
data[].settable_variables | array of string | Placeholders a caller may fill. The others come from the contact. up to 50 items |
data[].submittable | boolean | True if the template can be submitted to WhatsApp now (draft or rejected and without issues). |
data[].issues | array of string | Why the template cannot be submitted yet. Empty if there are no issues. up to 50 items |
data[].rejection_reason | string or null | Reason given by WhatsApp when the template was rejected, otherwise null. up to 500 characters |
data[].created_at | string | When the template was created. up to 40 characters; format date-time |
data[].updated_at | string | When the template was last changed. up to 40 characters; format date-time |
has_more | boolean | True if another page exists. |
next_cursor | string or null | Pass this as 'cursor' to get the next page; null on the last page. up to 300 characters |
url | string | The path of this list. up to 200 characters |
total_count | integer | Approximate total; may be inaccurate. Only present where cheap to compute. 0 to 1000000000 |
#Errors
| Code | Status | When |
|---|---|---|
invalid_cursor | 400 | The cursor is expired, forged or belongs to other filters. |
api_key_expired | 401 | This API key has expired. |
api_key_invalid | 401 | This API key is not valid. |
api_key_revoked | 401 | This API key was revoked. |
authentication_required | 401 | No API key was sent. Send 'Authorization: Bearer <key>'. |
account_blocked | 403 | This account is blocked. |
insufficient_scope | 403 | This key lacks a required permission. |
ip_not_allowed | 403 | This IP address is not allowed for this key. |
validation_failed | 422 | A field is not valid. |
rate_limited | 429 | Too many requests. Wait and try again. |
internal_error | 500 | Something went wrong on our side. |
service_unavailable | 503 | The service is temporarily unavailable. |
All errors use one format.