Pular para o conteúdo principal
GET
/
api
/
v1
/
callback-agents
/
stats
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"
{
  "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
      }
    ]
  }
}

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

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

start_date
string
Início do intervalo (inclusivo). Formato: YYYY-MM-DD. Padrão: 30 dias atrás.
end_date
string
Fim do intervalo (inclusivo). Formato: YYYY-MM-DD. Padrão: hoje.

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/callback-agents/stats?start_date=2024-01-01&end_date=2024-01-31" \
  -H "Authorization: Bearer talq_your_environment_token_here"

Resposta

{
  "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
      }
    ]
  }
}

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).