List approved templates
Returns all Meta-approved WhatsApp message templates for your workspace. Use the `template_name` field from the response when calling `POST /v1/messages/templates`. **Note:** Templates are cached and may take up to 7 days to reflect changes made in Meta Business Manager.
Authorization
api-key X-API-Key<token>
API key for the public Messaging API (/v1/*)
In: header
Query Parameters
category?string
Filter by category (e.g. MARKETING, UTILITY, AUTHENTICATION)
language?string
Filter by language code (e.g. en, sw)
Response Body
application/json
curl -X GET "http://localhost:3006/v1/templates"[
{
"id": "6634e2b1a7c3f500231a8b01",
"name": "order_confirmation",
"category": "UTILITY",
"language": "en",
"status": "approved",
"components": [
{
"type": "HEADER",
"format": "TEXT",
"text": "Order Confirmed"
},
{
"type": "BODY",
"text": "Hello {{1}}, your order #{{2}} has been confirmed."
}
]
}
]