Get statistics for an AI agent including invocations, tokens, and costs.
curl --request GET \
--url https://api.zavu.dev/v1/senders/{senderId}/agent/stats \
--header 'Authorization: Bearer <token>'{
"totalInvocations": 123,
"totalTokensUsed": 123,
"totalCost": 123,
"successCount": 123,
"errorCount": 123,
"avgLatencyMs": 123
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
curl --request GET \
--url https://api.zavu.dev/v1/senders/{senderId}/agent/stats \
--header 'Authorization: Bearer <token>'{
"totalInvocations": 123,
"totalTokensUsed": 123,
"totalCost": 123,
"successCount": 123,
"errorCount": 123,
"avgLatencyMs": 123
}