Templates
Templates belong to a WABA. Create them per business after Embedded Signup.
Scope templates:write to create. Scope templates:read to list and get.
POST /api/v1/templates submits components to Graph, then stores status: "PENDING". The stored row is inside data. If Graph rejects the create, no row is stored. The response is META_ERROR with Meta’s code, message, and error_user_msg in details (see Errors). That failure is not turned into a template REJECTED status. Wait until status is APPROVED before you rely on delivery. This API does not emit template.status_update. Poll GET /api/v1/templates/:id or call POST /api/v1/templates/sync (202, body { "data": { "message": "Template sync enqueued" } }). Sync is tenant-wide and async.
wabaId must already have a credential on this tenant. Otherwise 400 VALIDATION_ERROR (No credential found for this WABA).
List one business’s templates:
GET /api/v1/templates?phoneNumberId=PHONE_ID&status=APPROVEDphoneNumberId limits the list to that phone’s WABA. wabaId filters directly. Sending both with two different WABAs returns 400 (phoneNumberId belongs to a different WhatsApp account than wabaId). Omitting both returns every template on the tenant. status is an optional string. Page limit default 50, max 100.
name max 512. language length 2–10 (es, or es_MX). category is MARKETING, UTILITY, or AUTHENTICATION. Identity is unique on (wabaId, name, language).
Appointment reminders in these examples are UTILITY. Meta can recategorize during review. This API does not override that.
Spanish reminder
{
"wabaId": "WABA_ID",
"name": "recordatorio_cita",
"language": "es",
"category": "UTILITY",
"components": [
{
"type": "BODY",
"text": "Hola {{1}}, le recordamos su cita el {{2}} a las {{3}}. Responda SI para confirmar o NO para cancelar.",
"example": { "body_text": [["Ana", "2 de octubre", "10:30"]] }
}
]
}Spanish confirmation
Use a second name. Do not reuse recordatorio_cita for a different body.
{
"wabaId": "WABA_ID",
"name": "cita_confirmada",
"language": "es",
"category": "UTILITY",
"components": [
{
"type": "BODY",
"text": "Hola {{1}}, su cita del {{2}} a las {{3}} quedó confirmada. Si necesita un cambio, responda a este mensaje.",
"example": { "body_text": [["Ana", "2 de octubre", "10:30"]] }
}
]
}PATCH /api/v1/templates/:id updates the local components and category only. DELETE returns 204 and tries to delete the name on Meta.
How to send the approved template, and what happens when the 24-hour window is closed: Send messages.