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.

Returns the full detail of a specific template by name.

GET https://api.platica.mx/v1/templates/{templateName}

URL parameters

ParameterTypeDescriptionRequired
templateNamestringExact 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
    }
  ]
}
FieldDescription
nameUnique template name
categoryCategory: UTILITY, MARKETING, AUTHENTICATION
statusApproval status: APPROVED, PENDING, REJECTED
languageLanguage code (e.g. es, en)
contentMessage body with {{1}}, {{2}}, etc. variables
headerMessage header (optional)
footerMessage footer (optional)
buttonsArray of interactive buttons
paramsExample values for the variables
api_exampleExample of how to use it in the API