> ## 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

> Executar uma verificação de saúde em tempo real em um SIP Trunk

# 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](/api-reference/endpoints/verify-sip-trunk) — não altera a flag `is_verified` do trunk.

## Endpoint

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

## Parâmetros de caminho

<ParamField path="trunk_id" type="string" required>UUID do SIP Trunk.</ParamField>

## Cabeçalhos da requisição

<ParamField header="Authorization" type="string" required>
  Token Bearer para autenticação. Formato: `Bearer talq_your_environment_token_here`
</ParamField>

## Exemplos

<RequestExample>
  ```bash theme={null}
  curl "https://app.talkover.ai/api/v1/sip-trunks/trunk-uuid-1/health" \
    -H "Authorization: Bearer talq_your_environment_token_here"
  ```
</RequestExample>

## Resposta

<ResponseExample>
  ```json theme={null}
  {
    "success": true,
    "data": {
      "is_healthy": true,
      "response_time_ms": 142,
      "checked_at": "2024-01-15T14:35:00Z"
    }
  }
  ```
</ResponseExample>

### Resposta Não Saudável

<ResponseExample>
  ```json theme={null}
  {
    "success": true,
    "data": {
      "is_healthy": false,
      "response_time_ms": 5000,
      "error": "Connection timeout",
      "checked_at": "2024-01-15T14:35:00Z"
    }
  }
  ```
</ResponseExample>

## Observações

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