Skip to main content
GET
/
templates
Listar Templates
curl --request GET \
  --url https://apis.vectalk.com.br/api/templates \
  --header 'Authorization: Bearer <token>'

Documentation Index

Fetch the complete documentation index at: https://docs.vectalk.com.br/llms.txt

Use this file to discover all available pages before exploring further.

Requer token de instância. O WABA ID é resolvido automaticamente pelo token — não é necessário informar o waba-id.

Parâmetros

Query

name
string
Filtrar por nome do template.

Exemplo de Requisição

curl --request GET \
  --url 'https://apis.vectalk.com.br/api/templates?name=order_confirmation' \
  --header 'Authorization: Bearer {seu_token}'

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": "..." }
  }
}