> ## 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 Estatísticas de Callback

> Recuperar estatísticas agregadas dos agentes de callback

# Obter Estatísticas de Callback

Recupera estatísticas agregadas de callback em todos os agentes de callback do seu ambiente, opcionalmente filtradas por intervalo de datas.

## Endpoint

```
GET /api/v1/callback-agents/stats
```

## Parâmetros de consulta

<ParamField query="start_date" type="string">Início do intervalo (inclusivo). Formato: `YYYY-MM-DD`. Padrão: 30 dias atrás.</ParamField>
<ParamField query="end_date" type="string">Fim do intervalo (inclusivo). Formato: `YYYY-MM-DD`. Padrão: hoje.</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/callback-agents/stats?start_date=2024-01-01&end_date=2024-01-31" \
    -H "Authorization: Bearer talq_your_environment_token_here"
  ```
</RequestExample>

## Resposta

<ResponseExample>
  ```json theme={null}
  {
    "success": true,
    "data": {
      "period": {
        "start": "2024-01-01",
        "end": "2024-01-31"
      },
      "total_callbacks_received": 184,
      "callbacks_answered": 142,
      "callbacks_unmatched": 12,
      "callbacks_by_source_agent": [
        {
          "source_agent_id": "agent-uuid-2",
          "name": "Sales Outbound",
          "count": 110
        },
        {
          "source_agent_id": "agent-uuid-3",
          "name": "Survey Outbound",
          "count": 74
        }
      ]
    }
  }
  ```
</ResponseExample>

### Definições de Campos

* `total_callbacks_received` — total de chamadas inbound roteadas para agentes de callback.
* `callbacks_answered` — callbacks que se conectaram com sucesso ao agente.
* `callbacks_unmatched` — chamadas inbound que chegaram a um agente de callback mas não tiveram chamada outbound recente correspondente (o contato não estava em uma lista de origem).
