Skip to main content
POST
/
v2
/
agents
/
{agentId}
/
send-template
Envía un mensaje de WhatsApp template vía API v2
curl --request POST \
  --url https://app.braviloai.com/api/v2/agents/{agentId}/send-template \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "phoneNumber": "<string>",
  "templateName": "<string>",
  "languageCode": "es",
  "components": [
    {}
  ]
}
'
{
  "success": true,
  "conversationId": "<string>"
}

Documentation Index

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

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

Envía un mensaje de WhatsApp usando un template pre-aprobado por Meta. Requiere que el agente (o su organización) tenga una integración de WhatsApp configurada.

Ejemplo

curl -X POST https://app.braviloai.com/api/v2/agents/${agentId}/send-template \
-H "Authorization: Bearer ${API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"phoneNumber": "5491122334455",
"templateName": "hello_world",
"languageCode": "es",
"components": [
"type": "body",
"parameters": [{"type": "text", "text": "Juan"}]
]
}'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agentId
string
required

ID del agente

Body

application/json
phoneNumber
string
required

Número de destino con código de país

templateName
string
required

Nombre exacto del template aprobado en Meta

languageCode
string
default:es

Código de idioma del template

components
object[]

Componentes del template (header, body, buttons)

Response

Template enviado exitosamente

success
boolean
conversationId
string