Get a Template
Templates are messages pre-approved by WhatsApp that you can use to start conversations with your customers. They are required to contact users outside the 24-hour window.
Importante
Templates cannot be created through the API. They must be managed directly from the Platica platform or from the WhatsApp Manager inside the Facebook Business Portfolio.
Returns the full detail of a specific template by name.
GET https://api.platica.mx/v1/templates/{templateName} URL parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
templateName | string | Exact name of the template to look up | ✓ |
Response
{
"workspaces": [
{
"id": "K7u9rQ2LmZx18BvC5tNd",
"name": "Atención Premium",
"wabaId": "155512345678901",
"templateNamespace": "b9c4d2e1_7f3a_45b6_98cd_001122334455",
"templates": [
{
"name": "recordatorio_mantenimiento_auto",
"category": "UTILITY",
"status": "APPROVED",
"language": "es",
"createdAt": "2025-07-20T10:12:34.567890123Z",
"updatedAt": "2025-07-28T16:45:01.234567890Z",
"content": "¡Hola {{1}}! Te recordamos tu mantenimiento.",
"header": "Recordatorio de mantenimiento",
"footer": "Responde CAMBIAR para reprogramar",
"buttons": [
{
"type": "URL",
"text": "Ver ubicación",
"url": "https://example.com/taller/ubicacion"
}
],
"params": ["Carolina", "2025-08-18"],
"api_example": {
"name": "recordatorio_mantenimiento_auto",
"params": ["Carolina", "2025-08-18"]
},
"dynamicButtonsCount": 0
}
],
"templatesCount": 1
}
]
} | Field | Description |
|---|---|
name | Unique template name |
category | Category: UTILITY, MARKETING, AUTHENTICATION |
status | Approval status: APPROVED, PENDING, REJECTED |
language | Language code (e.g. es, en) |
content | Message body with {{1}}, {{2}}, etc. variables |
header | Message header (optional) |
footer | Message footer (optional) |
buttons | Array of interactive buttons |
params | Example values for the variables |
api_example | Example of how to use it in the API |
Consejo
Use the api_example field as a reference to build your requests against the /v1/messages/template endpoint.