curl --request POST \
--url https://api.notifique.dev/v1/whatsapp/calls \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"to": [
"5511999999999"
],
"type": "speak",
"payload": {
"text": "¡Hola! Su código de verificación es 1 2 3 4.",
"voice": "female"
},
"from": "clxx..."
}
'{
"success": true,
"data": {
"messageIds": [
"clxx..."
],
"status": "QUEUED",
"count": 1
}
}{
"success": false,
"error": "Bad Request",
"code": "VALIDATION_ERROR",
"message": "Campo inválido ou ausente."
}{
"success": false,
"error": "Bad Request",
"code": "VALIDATION_ERROR",
"message": "Campo inválido ou ausente."
}{
"success": false,
"error": "Bad Request",
"code": "VALIDATION_ERROR",
"message": "Campo inválido ou ausente."
}{
"success": false,
"error": "Bad Request",
"code": "VALIDATION_ERROR",
"message": "Campo inválido ou ausente."
}Llamadas
Iniciar llamada WhatsApp
Marca el número, habla un texto (o reproduce un audio) y cuelga. Hoy en la conexión no oficial (QR). La conexión oficial llega pronto con la misma forma. Tipos: speak (TTS), play (URL de audio) o template (texto/voz del template).
POST
/
v1
/
whatsapp
/
calls
curl --request POST \
--url https://api.notifique.dev/v1/whatsapp/calls \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"to": [
"5511999999999"
],
"type": "speak",
"payload": {
"text": "¡Hola! Su código de verificación es 1 2 3 4.",
"voice": "female"
},
"from": "clxx..."
}
'{
"success": true,
"data": {
"messageIds": [
"clxx..."
],
"status": "QUEUED",
"count": 1
}
}{
"success": false,
"error": "Bad Request",
"code": "VALIDATION_ERROR",
"message": "Campo inválido ou ausente."
}{
"success": false,
"error": "Bad Request",
"code": "VALIDATION_ERROR",
"message": "Campo inválido ou ausente."
}{
"success": false,
"error": "Bad Request",
"code": "VALIDATION_ERROR",
"message": "Campo inválido ou ausente."
}{
"success": false,
"error": "Bad Request",
"code": "VALIDATION_ERROR",
"message": "Campo inválido ou ausente."
}Autorizaciones
ntfWaBearerAuthntfWaApiKeyHeader
API Key no header Authorization. Exemplo: Authorization: Bearer sk_live_xxxxx
Encabezados
Idempotency key. Alternative: x-idempotency-key.
Cuerpo
application/json
Chamada de voz: from, to, type e conteúdo em payload.
Call content type. Default: speak.
Opciones disponibles:
speak, play, template speak: text, opcional voice/language. play: audioUrl. gather: objeto gather. template: templateId, variables.
Show child attributes
Show child attributes
Destinos E.164 sem + (ex.: 5511999887766).
Required array length:
1 - 500 elementsInstância WhatsApp: id, telefone E.164 ou nome (não use pool).
Show child attributes
Show child attributes
¿Esta página le ayudó?

