smartchat

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

Permissiontemplates:read (all permissions)
RiskRead
Idempotency-KeyNot needed (how it works)
Safe to repeatSafe: the call only reads.
Rate limit classread (120 requests per minute per key)
ConfirmationNone
MCP toollist_templates
Since version2026-10-25

#What it does

  • Only reads data. It changes nothing and sends nothing.

#Request

Query parameters

NameTypeRequiredDescription
limitintegernoItems per page (1 to 100, default 20). 1 to 100; default 20
cursorstringnonext_cursor from the previous page. Opaque; only valid with the same filters. up to 300 characters
statusstringnoOnly templates with this approval state. one of: draft, pending, approved, rejected, paused, disabled
sendablebooleannoTrue: only templates that can be sent through the API now. False: only the others.

#Lists, filters and sorting

  • Items per page: limit from 1 to 100, default 20 (MCP: default 20, maximum 50).
  • Next page: send next_cursor of the answer as cursor. The cursor only works with the same filters. See Pagination.
  • Filters: status, sendable.
  • Sorting: newest first (created_at descending, then id descending); 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-*.

NameTypeDescription
objectstringAlways "list". always list
dataarray of objectThe items of this page. up to 100 items
data[].objectstringAlways "template". always template
data[].idstringTemplate ID.
data[].namestringName of the template. up to 120 characters
data[].channelstringChannel. Only whatsapp exists. one of: whatsapp
data[].purposestringPurpose of the template, for example marketing or utility. up to 40 characters
data[].languagestring or nullLanguage version at WhatsApp, for example en or de. up to 10 characters
data[].textstringMessage text with placeholders such as {{1}}. up to 20000 characters
data[].footerstring or nullFooter line or null. up to 60 characters
data[].buttonsarray of objectButtons of the template. up to 10 items
data[].buttons[].typestringquick_reply sends the label back as a reply. url opens a web address. one of: quick_reply, url
data[].buttons[].textstringLabel on the button. up to 60 characters
data[].buttons[].urlstring or nullWeb address for a url button, otherwise null. up to 2000 characters
data[].statusstringApproval state at WhatsApp. Only approved templates can be sent outside the 24-hour window. one of: draft, pending, approved, rejected, paused, disabled
data[].sendablebooleanTrue if the template can be sent through the API now (approved, WhatsApp, not a system template).
data[].variablesarray of stringAll placeholders in the approved text. up to 50 items
data[].settable_variablesarray of stringPlaceholders a caller may fill. The others come from the contact. up to 50 items
data[].submittablebooleanTrue if the template can be submitted to WhatsApp now (draft or rejected and without issues).
data[].issuesarray of stringWhy the template cannot be submitted yet. Empty if there are no issues. up to 50 items
data[].rejection_reasonstring or nullReason given by WhatsApp when the template was rejected, otherwise null. up to 500 characters
data[].created_atstringWhen the template was created. up to 40 characters; format date-time
data[].updated_atstringWhen the template was last changed. up to 40 characters; format date-time
has_morebooleanTrue if another page exists.
next_cursorstring or nullPass this as 'cursor' to get the next page; null on the last page. up to 300 characters
urlstringThe path of this list. up to 200 characters
total_countintegerApproximate total; may be inaccurate. Only present where cheap to compute. 0 to 1000000000

#Errors

CodeStatusWhen
invalid_cursor400The cursor is expired, forged or belongs to other filters.
api_key_expired401This API key has expired.
api_key_invalid401This API key is not valid.
api_key_revoked401This API key was revoked.
authentication_required401No API key was sent. Send 'Authorization: Bearer <key>'.
account_blocked403This account is blocked.
insufficient_scope403This key lacks a required permission.
ip_not_allowed403This IP address is not allowed for this key.
validation_failed422A field is not valid.
rate_limited429Too many requests. Wait and try again.
internal_error500Something went wrong on our side.
service_unavailable503The service is temporarily unavailable.

All errors use one format.