---
title: "Agent wallet daily spend"
method: GET
path: "/v1/agent-wallets/expenses/daily"
tags: ["Agent Wallets"]
---

# Agent wallet daily spend

`GET /v1/agent-wallets/expenses/daily`

## Request

- Base URL: `https://api.prod.keyban.io`
- URL: `https://api.prod.keyban.io/v1/agent-wallets/expenses/daily`
- Auth: one of:
  - API key in header `X-Api-Key`
  - `bearer` (a scheme the document does not define)

Average daily spend per agent wallet over the last 7 days — falling back to 30 when the 7-day window is empty — plus the day-by-day series when `agentId` narrows the query to a single wallet. Consumers divide their own balance by this rate to obtain a runway; the API never returns one.

## Query parameters

- `applicationId` string, uuid, required
- `agentId` string, uuid
- `ownerId` string, uuid
- `days` integer

## Response `200`

- AgentWalletDailySpendDto
  - `currency` string, required: Reference currency of every amount (the organization's preferred currency).
  - `wallets` object[], required: One entry per deployed agent wallet in scope, including those with no spend.
    - `walletId` string, uuid, required: Agent wallet the rate belongs to.
    - `dailyRateRef` string, required: Average spend per day over the retained window, in reference-currency sub-units (divide by 100), rounded up so a runway derived from it stays pessimistic. "0" when the wallet spent nothing over the last 30 days.
    - `window` union, required: Window the rate was computed over: 7 days, or 30 when the last 7 days carried no spend at all.
      - 7
      - 30
  - `series` object[]: Day-by-day spend over `days`, zero-filled. Returned only when `agentId` narrows the query to a single wallet: no surface plots an application-wide series.
    - `date` string, date, required: Calendar day (YYYY-MM-DD, UTC).
    - `spentRef` string, required: Spend on that day, in reference-currency sub-units (divide by 100). Days with no spend are present with "0".

---

[API](https://skmtc.dev/keyban/apis/keyban-rest-apis.md) · [All operations](https://skmtc.dev/keyban/apis/keyban-rest-apis/llms.txt) · [OpenAPI document](https://skmtc.dev/keyban/apis/keyban-rest-apis/revisions/0bb79a1da961?raw)
