Pular para o conteúdo principal
GET
/
api
/
v1
/
sip-trunks
/
{trunk_id}
/
health
curl "https://app.talkover.ai/api/v1/sip-trunks/trunk-uuid-1/health" \
  -H "Authorization: Bearer talq_your_environment_token_here"
{
  "success": true,
  "data": {
    "is_healthy": true,
    "response_time_ms": 142,
    "checked_at": "2024-01-15T14:35:00Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.talkover.ai/llms.txt

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

Obter Saúde do SIP Trunk

Executa uma verificação de saúde em tempo real em um SIP Trunk e retorna o status atual. Versão leve de Verificar SIP Trunk — não altera a flag is_verified do trunk.

Endpoint

GET /api/v1/sip-trunks/{trunk_id}/health

Parâmetros de Caminho

trunk_id
string
obrigatório
UUID do SIP Trunk.

Cabeçalhos da Requisição

Authorization
string
obrigatório
Token Bearer para autenticação. Formato: Bearer talq_your_environment_token_here

Exemplos

curl "https://app.talkover.ai/api/v1/sip-trunks/trunk-uuid-1/health" \
  -H "Authorization: Bearer talq_your_environment_token_here"

Resposta

{
  "success": true,
  "data": {
    "is_healthy": true,
    "response_time_ms": 142,
    "checked_at": "2024-01-15T14:35:00Z"
  }
}

Resposta Não Saudável

{
  "success": true,
  "data": {
    "is_healthy": false,
    "response_time_ms": 5000,
    "error": "Connection timeout",
    "checked_at": "2024-01-15T14:35:00Z"
  }
}

Observações

  • Use este endpoint para integrações de monitoramento/alertas.
  • Polling frequente é seguro — as verificações são cacheadas por curtos intervalos.