Skip to main content

What it does

Lists an application’s WhatsApp templates: cursor pagination + status/category/language filters + name/content search + expand. Data is read fresh directly from Meta (no caching); the app_id is verified to belong to the organization.

Endpoint

Headers

string
required
Secret key in Bearer sk_... format. See Secret Key authentication.

Path parameters

string
required
Application ID. Must belong to the organization (otherwise 404).

Query parameters

All query parameters are optional.
integer
default:"20"
Maximum records per page. Range 1–100.
string
Next-page cursor (the nextCursor from a previous response). Do not pass it on the first request.
string
Previous-page cursor (the previousCursor from a response). Cannot be used together with after.
string
Status filter: APPROVED, PENDING, REJECTED, PAUSED, DISABLED, IN_APPEAL, PENDING_DELETION, DELETED, LIMIT_EXCEEDED, or UNKNOWN. Any other value returns 422. See Template Status.
string
Category filter: UTILITY, MARKETING, or AUTHENTICATION. Any other value returns 422.
string
Language filter: a BCP-47 code (e.g. en, tr).
Meta name_or_content search (matches the template name or body text).
string[]
components → also returns the components (not returned by default). Repeatable. See Template Expand.
Pagination: don’t pass a cursor on the first request; send the response’s nextCursor as after= on the next request.

Response

Type: CursorPagingResult[TemplateResponseModel]. The envelope is { "data": [ ... ], "pagingMetadata": { ... }, "isSuccess": true }.
boolean
true when the request completed successfully.
object[]
The list of templates (TemplateResponseModel).
object
Null fields (id, createdAt, updatedAt, messageSendTtlSeconds, correctCategory, previousCategory) are dropped from the response. On the first request, do not pass after/before — take the cursors from the response.

Examples

First page:
Next page (nextCursorafter):
Empty result: "data": [] with "pagingMetadata": { "hasNext": false, "hasPrevious": false, "pageSize": 0 }.

Errors

object
Error details with code, group, and description; isSuccess is false.

Auth / tenant

Request validation (422)

Meta-side

Example error response (429 rate limit):