Skip to main content
GET
/
templates
Listar Templates
curl --request GET \
  --url http://localhost:3000/api/templates \
  --header 'Authorization: Bearer <token>'
Requer token de instância.
waba-id
string
required
ID do WhatsApp Business Account.
name
string
Filtrar por nome do template.
status
string
Filtrar por status: APPROVED, PENDING, REJECTED.
limit
number
Quantidade por página.

Resposta

{
  "data": [
    {
      "id": "1234567890",
      "name": "order_confirmation",
      "status": "APPROVED",
      "category": "UTILITY",
      "language": "pt_BR",
      "components": [
        { "type": "HEADER", "format": "TEXT", "text": "Pedido Confirmado ✅" },
        { "type": "BODY", "text": "Olá {{1}}, seu pedido *#{{2}}* foi confirmado." },
        { "type": "FOOTER", "text": "Obrigado pela compra!" }
      ]
    }
  ],
  "paging": {
    "cursors": { "before": "...", "after": "..." }
  }
}