API Reference
Templates

List templates

GET/{waba-id}/message_templates
Base URL: https://whatsapp.mimicr.dev/v24.0 · provider: https://graph.facebook.com/v24.0

Lists the message templates of the WhatsApp Business Account, with cursor pagination (limit, after, before; paging.next when there are more). Filters accept comma-separated values.

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Path parameters

waba-idstringrequired

WhatsApp Business Account (WABA) ID.

Example: "313255174969123"

Query parameters

namestring

Filter by name (partial match).

statusstring

Filter by status, e.g. APPROVED,PENDING.

categorystring

Filter by category.

languagestring

Filter by language code.

quality_scorestring

Filter by quality score.

hsm_idstring

Filter by template ID.

fieldsstring

Comma-separated fields to return, e.g. name,status,category,language,components.

summarystring

total_count adds a summary with the template count and limit.

limitinteger

Page size (default 25).

afterstring

Cursor of the next page.

beforestring

Cursor of the previous page.

Responses

200Templates.
dataobject[]
Show child attributes
idstring

Template ID.

namestring

Template name.

languagestring

Language and locale code.

statusstring

Review status.

APPROVEDPENDINGREJECTEDPAUSEDDISABLED
categorystring

Category.

MARKETINGUTILITYAUTHENTICATION
sub_categorystring

Sub-category, when set.

previous_categorystring

Category before Meta recategorized the template.

correct_categorystring

Category after recategorization.

parameter_formatstring

Variable format.

POSITIONALNAMED
message_send_ttl_secondsinteger

Time-to-live of messages sent with the template.

quality_scoreobject
Show child attributes
scorestring

Quality.

GREENYELLOWREDUNKNOWN
dateinteger

Unix timestamp of the score.

rejected_reasonstring

Rejection reason (NONE when not rejected).

last_updated_timestring

Last update, YYYY-MM-DDTHH:MM:SS+0000.

componentsobject[]
Show child attributes
typestringrequired

Component type.

HEADERBODYFOOTERBUTTONS
formatstring

HEADER format.

TEXTIMAGEVIDEODOCUMENTLOCATION
textstring

Text with variables {{1}}, {{2}}… (or {{name}} with parameter_format: NAMED).

exampleobject

Sample values, required when the component has variables.

Show child attributes
body_textstring[][]

Sample values of the body variables.

header_textstring[]

Sample values of the header variables.

header_handlestring[]

Handle of a sample header media, from the Resumable Upload API.

add_security_recommendationboolean

Authentication BODY: appends the security disclaimer.

code_expiration_minutesinteger

Authentication FOOTER: code expiry in minutes (1 to 90).

buttonsobject[]

BUTTONS: 1 to 10 buttons.

Show child attributes
typestringrequired

Button type.

QUICK_REPLYURLPHONE_NUMBERCOPY_CODEOTPFLOWCATALOGMPMVOICE_CALL
textstring

Button label.

urlstring

URL button target, may end with a {{1}} variable.

phone_numberstring

PHONE_NUMBER button.

otp_typestring

OTP button: COPY_CODE, ONE_TAP or ZERO_TAP.

exampleany

Sample value.

pagingobject
Show child attributes
cursorsobject
Show child attributes
beforestring

Cursor that points to the start of the page.

afterstring

Cursor that points to the end of the page.

nextstring

URL of the next page, present only when there are more results.

summaryobject
Show child attributes
total_countinteger

Number of templates.

message_template_countinteger

Number of templates.

message_template_limitinteger

Template limit of the account.

401Missing, invalid or revoked access token (190; a revoked token adds error_subcode: 460). A missing token answers 400 with code 104.
errorobjectrequired
Show child attributes
messagestringrequired

Human-readable error message, for WhatsApp errors prefixed with (#code).

typestringrequired

Exception type.

Example: "OAuthException"
codeintegerrequired

Error code. See the error codes reference.

error_subcodeinteger

More specific code, when there is one (for example 33 for objects that do not exist or are not visible to the token, 460 for revoked tokens, 2388024 for duplicate templates).

error_user_titlestring

Title meant to be shown to the end user.

error_user_msgstring

Message meant to be shown to the end user.

error_dataobject
Show child attributes
messaging_productstring

Always whatsapp.

detailsstring

Details about the error.

fbtrace_idstringrequired

Trace ID. Include it when you contact support.