curl -X POST "https://app.talkover.ai/api/v1/sip-trunks/trunk-uuid-1/dids" \
-H "Authorization: Bearer talq_your_environment_token_here" \
-H "Content-Type: application/json" \
-d '{
"country_code": "US",
"number": "+5511987654321"
}'
{
"success": true,
"data": {
"id": "phone-uuid-1",
"number": "+5511987654321",
"country_code": "US",
"formatted_number": "(555) 123-4567",
"trunk_id": "trunk-uuid-1"
}
}
SIP Trunks Personalizados
Criar DID no SIP Trunk
Adicionar um DID (número de telefone) a um SIP Trunk
POST
/
api
/
v1
/
sip-trunks
/
{trunk_id}
/
dids
curl -X POST "https://app.talkover.ai/api/v1/sip-trunks/trunk-uuid-1/dids" \
-H "Authorization: Bearer talq_your_environment_token_here" \
-H "Content-Type: application/json" \
-d '{
"country_code": "US",
"number": "+5511987654321"
}'
{
"success": true,
"data": {
"id": "phone-uuid-1",
"number": "+5511987654321",
"country_code": "US",
"formatted_number": "(555) 123-4567",
"trunk_id": "trunk-uuid-1"
}
}
Criar DID no SIP Trunk
Registra um novo DID (número de telefone) em um SIP Trunk. Após adicionado, o DID pode ser atribuído a agentes para chamadas inbound ou outbound.Endpoint
POST /api/v1/sip-trunks/{trunk_id}/dids
Parâmetros de caminho
string
obrigatório
UUID do SIP Trunk.
Cabeçalhos da requisição
string
obrigatório
Token Bearer para autenticação. Formato:
Bearer talq_your_environment_token_herestring
obrigatório
Deve ser definido como
application/jsonCorpo da requisição
string
obrigatório
Código de país no formato ISO 3166-1 alpha-2 (ex:
US, BR, GB).string
obrigatório
Número de telefone no formato E.164 (ex:
+5511987654321).Exemplos
curl -X POST "https://app.talkover.ai/api/v1/sip-trunks/trunk-uuid-1/dids" \
-H "Authorization: Bearer talq_your_environment_token_here" \
-H "Content-Type: application/json" \
-d '{
"country_code": "US",
"number": "+5511987654321"
}'
Resposta
{
"success": true,
"data": {
"id": "phone-uuid-1",
"number": "+5511987654321",
"country_code": "US",
"formatted_number": "(555) 123-4567",
"trunk_id": "trunk-uuid-1"
}
}
Respostas de erro
409 — Número Já Existe
{
"success": false,
"message": "This number is already registered in your environment",
"code": "DID_ALREADY_EXISTS"
}
Esta página foi útil?