Path Parameters
senderIdinteger required
The ID of the WhatsApp sender (obtained from the Get Senders endpoint)
Query Parameters
statusstring
Filter templates by approval status. Default: approved. Use all to return all templates regardless of status.
Response Fields
dataarray
Template object properties
id integer
The unique identifier of the template. Use this when sending template messages.
name string
The template name as registered with Meta (e.g., order_confirmation, appointment_reminder)
language string
The template language code (e.g., en, es, pt_BR)
category string
The template category: marketing, utility, or authentication
status string
The approval status: approved, pending, or rejected
body_text string
The template body text, with variable placeholders shown as {{1}}, {{2}}, etc.
variables array
The variable numbers the template needs when sending, as strings ("1", "2", …). They cover the header, body, link buttons and coupon code. Empty array if the template has no variables.
has_variables boolean
Whether this template requires variables to be provided when sending
header_format string | null
TEXT, IMAGE, VIDEO or DOCUMENT, or null if the template has no header. Image, video and document headers send the file attached to the template.
header_text string | null
The header text for TEXT headers, with its variable shown as {{N}}.
footer_text string | null
The footer text, if the template has one.
buttons array
The template’s buttons in order. Each has a type (QUICK_REPLY, URL, PHONE_NUMBER, COPY_CODE or VOICE_CALL) and, depending on the type, text, url, phone_number or code. A link or coupon code that contains {{N}} takes that variable’s value when sending.
Error Responses
404 Not Found Error Response successboolean
false
error string
Sender not found
error_code string
SENDER_NOT_FOUND
cURL
All templates (including pending/rejected)
JavaScript
Python
200 Response
404 Sender Not Found
Notes
- Only
approvedtemplates are returned by default. Templates withpendingorrejectedstatus cannot be used to send messages. - Template approval status is synced with Meta every 4 hours automatically.
- Variables in
body_textare shown as{{1}},{{2}}, etc. Thevariablesarray provides human-readable names for each placeholder. - Templates are required when messaging a user for the first time or outside the 24-hour messaging window.

