Pular para o conteúdo principal
POST
/
api
/
v1
/
chats
/
{chat_id}
/
messages
/
template
Send an approved WhatsApp template into a chat
curl --request POST \
  --url https://api.izap.ai/api/v1/chats/{chat_id}/messages/template \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "variables": {}
}
'
{
  "status": "queued",
  "message_id": "wamid.HBgL...",
  "error": null
}

Autorizações

Authorization
string
header
obrigatório

JWT access token obtained from POST /api/v1/auth/jwt/login, the OAuth token endpoint, or a business-scoped API token. Some Business/Chat/Template/Scheduling endpoints alternatively accept HTTP Basic credentials scoped to the business slug.

Parâmetros de caminho

chat_id
string<uuid>
obrigatório

Corpo

application/json
template_id
string<uuid>
obrigatório
variables
object

Body/button variable values, keyed '1', '2', …

Resposta

Template message sent.

status
string
message_id
string | null
error
object | null