v51

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-02172186551.1 KB
Agents

Get agent statistics

Get statistics for an AI agent including invocations, tokens, and costs.

Covers the messaging channels only. Voice calls are not counted here: a call is a multi-turn conversation rather than one inbound message and one reply, so it is recorded as a call, not an execution. An agent that only answers phone calls reports zeros on every field. Use GET /v1/calls for voice activity, duration, and cost.

get/v1/senders/{senderId}/agent/stats

Path parameters

senderIdstring required

Response

Agent statistics.

totalInvocationsinteger required
totalTokensUsedinteger required
totalCostnumber required

Total cost in USD.

successCountinteger required
errorCountinteger required
avgLatencyMsnumber nullable