GET
/
api
/
v1
/
contacts
/
{id}
/
calls
/
stats
curl https://api.ravan.ai/api/v1/contacts/019d3a2b-5c6d-7e8f-9a0b-1c2d3e4f5a6b/calls/stats \
  -H "X-Api-Key: YOUR_API_KEY"
{
  "success": true, "message": "Call stats fetched successfully",
  "data": { "total_calls": 12, "total_duration_sec": 2730, "completed_pct": 83.3, "failed_pct": 8.3, "no_answer_pct": 8.3, "avg_duration_sec": 227, "last_call_at": "2026-03-22T10:30:00Z" }
}

Authorizations

X-Api-Key
string
required
Your Agni API key.

Path Parameters

id
string
required
UUID of the contact.

Response

success
boolean
Whether the request succeeded.
message
string
Human-readable status message.
data
object
Aggregated call statistics.
curl https://api.ravan.ai/api/v1/contacts/019d3a2b-5c6d-7e8f-9a0b-1c2d3e4f5a6b/calls/stats \
  -H "X-Api-Key: YOUR_API_KEY"
{
  "success": true, "message": "Call stats fetched successfully",
  "data": { "total_calls": 12, "total_duration_sec": 2730, "completed_pct": 83.3, "failed_pct": 8.3, "no_answer_pct": 8.3, "avg_duration_sec": 227, "last_call_at": "2026-03-22T10:30:00Z" }
}

Authorizations

X-Api-Key
string
header
required

Path Parameters

id
string
required

Contact ID

Response

Successful response