Appearance
List WhatsApp templates
Returns the WhatsApp message templates of a connected Meta WhatsApp Cloud channel, fetched directly from Meta.
Pass for_text_message=1 when you only want templates that can be sent with Send a message (APPROVED, exact one text variable, and no media or location header).
GET/api/user/channels/{channel}/whatsapp-templates
Required scope:
messages:sendPath parameters
integer
Query parameters
boolean
string
string
string
string
integer
string
string
curl -X GET "https://loopx-console.test/api/user/channels/512/whatsapp-templates?for_text_message=1&limit=20" \
-H "Authorization: Bearer $TOKEN" \
-H "Accept: application/json"Example response
{
"status": true,
"code": 200,
"validation": [],
"message": "WhatsApp templates retrieved successfully",
"data": {
"templates": [
{
"id": "99918273645",
"name": "order_update",
"language": "en",
"category": "UTILITY",
"previous_category": null,
"status": "APPROVED",
"status_label": "Approved",
"rejected_reason": null,
"quality_score": "GREEN",
"parameter_format": "POSITIONAL",
"header": null,
"body": {
"text": "Hello, your order {{1}} is ready.",
"examples": [
"#1042"
]
},
"footer": "Reply STOP to unsubscribe",
"buttons": [],
"components": [
{
"type": "BODY",
"text": "Hello, your order {{1}} is ready.",
"example": {
"body_text": [
[
"#1042"
]
]
}
},
{
"type": "FOOTER",
"text": "Reply STOP to unsubscribe"
}
]
}
],
"paging": {
"before": "MAZDZD",
"after": "MjQZD",
"has_previous": false,
"has_next": false
}
}
}Scope
This endpoint accepts tokens with either messages:send or pipelines:read. Find the channel id from List pipelines (channels[].id where provider = "whatsapp" and connector = "meta") or from a conversation message's channel_id.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
channel | integer | yes | Meta WhatsApp Cloud channel id — must belong to your workspace |
Query parameters
| Name | Type | Description |
|---|---|---|
for_text_message | boolean (1 / 0 / true / false) | When 1 (true), returns only templates valid for Send a message: status = APPROVED, exact one text variable, and no media or location header (header.format is TEXT or null). Overrides status to APPROVED. |
status | string | string[] | Filter by template status (APPROVED, PENDING, REJECTED, PAUSED, DISABLED, IN_APPEAL, PENDING_DELETION). Accepts a single value, a comma-separated string, or an array. |
category | string | Filter by category: UTILITY, MARKETING, or AUTHENTICATION. |
language | string | Filter by template language code (e.g. en, en_US, ar). |
search | string | Filter by template name substring (max 512 chars). |
limit | integer | Number of templates to request from Meta per page (1–100, default 20). |
after | string | Cursor from data.paging.after to fetch the next page. |
before | string | Cursor from data.paging.before to fetch the previous page. |
Response fields
Each item in data.templates contains everything required to preview or send the template:
| Field | Type | Description |
|---|---|---|
id | string | Meta template id — pass as template.id to Send a message |
name | string | Template name on Meta — pass as template.name |
language | string | Template language code (e.g. en, en_US, ar) — pass as template.language |
category | string | UTILITY, MARKETING, or AUTHENTICATION |
status | string | APPROVED, PENDING, REJECTED, PAUSED, DISABLED, … |
status_label | string | Human-readable status label |
rejected_reason | string | null | Meta rejection reason when status = REJECTED, otherwise null |
quality_score | string | null | GREEN, YELLOW, RED, or UNKNOWN |
parameter_format | string | null | POSITIONAL (e.g. {{1}}) or NAMED (e.g. {{order_id}}) |
header | object | null | Normalized header (format, text, example, media_example) or null |
body | object | Normalized body with text (string) and examples (string[]) |
footer | string | null | Footer text, if any |
buttons | object[] | Normalized buttons (type, text, url, url_example, phone_number) |
components | object[] | Raw Meta template components array |
Pagination (data.paging)
| Field | Type | Description |
|---|---|---|
before | string | null | Cursor to pass as before for the previous page |
after | string | null | Cursor to pass as after for the next page |
has_previous | boolean | true when a previous page exists |
has_next | boolean | true when a next page exists |
Errors
| Code | When |
|---|---|
403 | Token is missing both messages:send and pipelines:read scopes, or the channel belongs to a different workspace |
404 | Channel not found |
422 | Invalid query parameter (status, category, language, for_text_message, or limit), or the channel is not a connected Meta WhatsApp Cloud channel |
502 | Meta's Graph API could not be reached or rejected the WABA credentials |