---
title: "Get agent statistics"
method: GET
path: "/v1/senders/{senderId}/agent/stats"
tags: ["Agents"]
---

# Get agent statistics

`GET /v1/senders/{senderId}/agent/stats`

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.

## Path parameters

- `senderId` string, required

## Response `200`

Agent statistics.

- AgentStats
  - `totalInvocations` integer, required
  - `totalTokensUsed` integer, required
  - `totalCost` number, required — Total cost in USD.
  - `successCount` integer, required
  - `errorCount` integer, required
  - `avgLatencyMs` number, nullable

## Other responses

- `401` — Unauthorized.
- `404` — Agent not found.

---

[API](https://skmtc.net/zavudev/apis/zavu-unified-messaging-layer-api.md) · [All operations](https://skmtc.net/zavudev/apis/zavu-unified-messaging-layer-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zavudev/zavu-unified-messaging-layer-api/revisions/07b87b6ae707/schema)
