---
title: "Sum each account's model usage in AO sessions"
method: GET
path: "/api/v1/agents/accounts/usage"
tags: ["agents"]
---

# Sum each account's model usage in AO sessions

`GET /api/v1/agents/accounts/usage`

## Request

- Base URL: `http://127.0.0.1:3001`
- URL: `http://127.0.0.1:3001/api/v1/agents/accounts/usage`
- Auth: none declared

## Query parameters

- `days` integer: Days of usage to sum, today included. Defaults to 30.

## Response `200`

OK

- AgentAccountUsageResponse
  - `days` integer, required
  - `usage` AgentAccountUsageRow[], required
    - `accountId` string, required
    - `costNanos` integer, required
    - `daily` AgentAccountUsageDay[], required
      - `costNanos` integer, required
      - `day` string, required
      - `tokens` integer, required
    - `inputTokens` integer, required
    - `models` AgentAccountUsageByModel[], required
      - `costNanos` integer, required
      - `model` string, required
      - `tokens` integer, required
    - `outputTokens` integer, required

## Other responses

- `501`: Not Implemented

## Changes

- **2026-10-21** `8f160e6183cd`: 1 info
  - removed the `agent_switch_saga` enum value from the `reporting_owner` response property for the response status `501`
- **2026-10-18** `7e984b9a98ab`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/changes/api/v1/agents/accounts/usage/get.md)

---

[API](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon.md) - [All operations](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/llms.txt) - [OpenAPI document](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/revisions/61d7efd08578?raw)
