curl --request POST \
--url https://api.notifique.dev/v1/voice/calls \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"to": [
"5511999887766"
],
"type": "speak",
"payload": {
"text": "Olá! Ligação de teste.",
"voice": "female-natural"
},
"clientState": "campanha-42",
"from": "5511987654321"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
to: ['5511999887766'],
type: 'speak',
payload: {text: 'Olá! Ligação de teste.', voice: 'female-natural'},
clientState: 'campanha-42',
from: '5511987654321'
})
};
fetch('https://api.notifique.dev/v1/voice/calls', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.notifique.dev/v1/voice/calls"
payload = {
"to": ["5511999887766"],
"type": "speak",
"payload": {
"text": "Olá! Ligação de teste.",
"voice": "female-natural"
},
"clientState": "campanha-42",
"from": "5511987654321"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.notifique.dev/v1/voice/calls"
payload := strings.NewReader("{\n \"to\": [\n \"5511999887766\"\n ],\n \"type\": \"speak\",\n \"payload\": {\n \"text\": \"Olá! Ligação de teste.\",\n \"voice\": \"female-natural\"\n },\n \"clientState\": \"campanha-42\",\n \"from\": \"5511987654321\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"data": {
"status": "QUEUED",
"count": 2,
"messageIds": [
"clxx1...",
"clxx2..."
]
}
}Iniciar ligação
Inicia uma ligação de voz para um ou vários números.
curl --request POST \
--url https://api.notifique.dev/v1/voice/calls \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"to": [
"5511999887766"
],
"type": "speak",
"payload": {
"text": "Olá! Ligação de teste.",
"voice": "female-natural"
},
"clientState": "campanha-42",
"from": "5511987654321"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
to: ['5511999887766'],
type: 'speak',
payload: {text: 'Olá! Ligação de teste.', voice: 'female-natural'},
clientState: 'campanha-42',
from: '5511987654321'
})
};
fetch('https://api.notifique.dev/v1/voice/calls', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.notifique.dev/v1/voice/calls"
payload = {
"to": ["5511999887766"],
"type": "speak",
"payload": {
"text": "Olá! Ligação de teste.",
"voice": "female-natural"
},
"clientState": "campanha-42",
"from": "5511987654321"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.notifique.dev/v1/voice/calls"
payload := strings.NewReader("{\n \"to\": [\n \"5511999887766\"\n ],\n \"type\": \"speak\",\n \"payload\": {\n \"text\": \"Olá! Ligação de teste.\",\n \"voice\": \"female-natural\"\n },\n \"clientState\": \"campanha-42\",\n \"from\": \"5511987654321\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"data": {
"status": "QUEUED",
"count": 2,
"messageIds": [
"clxx1...",
"clxx2..."
]
}
}Autorizações
API Key no formato Bearer (ex.: sk_live_...).
Cabeçalhos
Chave única para evitar envio duplicado. Alternativa: x-idempotency-key.
Chave única para idempotência (alternativa a Idempotency-Key).
Corpo
Chamada de voz: from, to, type e conteúdo em payload.
Id do número no workspace ou E.164.
Tipo da ação inicial. ivr: payload.flowId ou payload.flow (grafo inline).
speak, play, gather, template, ivr 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).
1 - 500 elementsGravar a chamada após atender. Padrão: false.
Detecção de caixa postal (AMD). Padrão: disabled.
disabled, detect, premium Legado — use amdMode.
Programación opcional (sendAt ISO 8601). Aún no implementado en POST /v1/voice/calls — usa el panel (Nueva llamada → Programar) o espera soporte en API v1.
Show child attributes
Show child attributes
Tradução do script por destinatário (speakText, gatherPrompt).
Show child attributes
Show child attributes
Mapa locale → string ou { speakText, gatherPrompt? } (modo manual).
Show child attributes
Show child attributes
Metadados do cliente gravados no registro da chamada.
Show child attributes
Show child attributes
Esta página foi útil?

