Skip to main content
POST
/
templates
Criar Template
curl --request POST \
  --url https://apis.vectalk.com.br/templates \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "language": "<string>",
  "category": "<string>",
  "components": [
    {}
  ]
}
'

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. Templates criados ficam com status PENDING até aprovação da Meta (geralmente algumas horas).
name
string
required
Nome do template (snake_case, sem espaços).
language
string
required
Código do idioma. Ex: pt_BR, en_US.
category
string
required
MARKETING, UTILITY ou AUTHENTICATION.
components
array
required
Array de componentes do template.

Exemplos

{
  "name": "order_confirmation",
  "language": "pt_BR",
  "category": "UTILITY",
  "components": [
    {
      "type": "HEADER",
      "format": "TEXT",
      "text": "Pedido Confirmado ✅"
    },
    {
      "type": "BODY",
      "text": "Olá {{1}}, seu pedido *#{{2}}* foi confirmado e será entregue em {{3}} dias úteis."
    },
    {
      "type": "FOOTER",
      "text": "Obrigado pela compra!"
    }
  ]
}

Resposta

{
  "id": "1234567890",
  "status": "PENDING",
  "category": "UTILITY"
}