Templates
Find out which templates are approved before you send, and how many parameters each one needs.
Paths are relative to https://api.chatboxai.dev/api, so /v1/messages/template means https://api.chatboxai.dev/api/v1/messages/template. Every request needs an API key, see Authentication.
List templates
GET
/v1/templatesScope
templates:readPaginated| Query parameter | Notes |
|---|---|
page | From 1. |
pageSize | Default 25, maximum 100. |
status | Defaults to APPROVED. Pass ALL or a specific status to see others. |
200 OK
{
"items": [
{
"id": "clx5t9k1x0001",
"name": "order_shipped",
"language": "en",
"category": "UTILITY",
"status": "APPROVED",
"body": "Hi {{1}}, your order {{2}} has shipped and should reach you by {{3}}.",
"components": [
{ "type": "BODY", "text": "Hi {{1}}, your order {{2}} has shipped and should reach you by {{3}}." }
],
"createdAt": "2026-02-11T08:00:00.000Z"
}
],
"total": 6,
"page": 1,
"pageSize": 25
}Placeholders
Count the {{n}} placeholders in body to know how many parameters your send has to supply, in order. A mismatch is rejected by WhatsApp with metaCode: 132000.
Creating templates
Creating and submitting templates is not in this API. A submission is a request to Meta that takes days, can be rejected, and affects the business's quality rating: it belongs to a person in the dashboard.