---
title: "See spend"
method: GET
path: "/api/v1/billing/spend"
tags: ["authed"]
---

# See spend

`GET /api/v1/billing/spend`

## Request

- Base URL: `https://api.teaflask.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.teaflask.com/api/v1/billing/spend`
- Auth: none declared

This calendar month's model spend only (from midnight UTC on the 1st
to now; earlier months are not available), by kind of agent and split
by who paid: the prepaid balance, the organization's own provider keys,
or visitors' connected AI subscriptions. Amounts are in microusd.

## Response `200`

Successful Response

- SpendResponse: This calendar month's model spend by kind of agent, plus totals.
  - `window_start` string, date-time, required: The start of the window: midnight UTC on the 1st of the current month. The window runs to now.
  - `rows` AgentKindSpendView[], required: One row per kind of agent that ran this month, biggest spender first.
    - `agent_kind` string, required: The kind of agent, as a stable key.
    - `label` string, required: The kind of agent, in words.
    - `balance_microusd` integer, required: What the prepaid balance paid. In microusd: millionths of a US dollar (1,000,000 = $1.00).
    - `byok_microusd` integer, required: What the organization's own provider keys paid. In microusd: millionths of a US dollar (1,000,000 = $1.00).
    - `end_user_subscription_microusd` integer, required: What visitors' own connected AI subscriptions paid. In microusd: millionths of a US dollar (1,000,000 = $1.00).
    - `total_microusd` integer, required: Everything charged, whoever paid. In microusd: millionths of a US dollar (1,000,000 = $1.00).
  - `balance_microusd` integer, required: What the prepaid balance paid in total. In microusd: millionths of a US dollar (1,000,000 = $1.00).
  - `byok_microusd` integer, required: What the organization's own provider keys paid in total. In microusd: millionths of a US dollar (1,000,000 = $1.00).
  - `end_user_subscription_microusd` integer, required: What visitors' own connected AI subscriptions paid in total. In microusd: millionths of a US dollar (1,000,000 = $1.00).
  - `total_microusd` integer, required: Everything charged this month, whoever paid. In microusd: millionths of a US dollar (1,000,000 = $1.00).

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `405`: Method not allowed
- `422`: Validation error
- `500`: Internal server error

## Changes

- **2026-11-03** `c6ac9fd6657f`: 6 info
  - removed the `STEEP_LEARNING_DISABLED` enum value from the `error/code` response property for the response status `401`
  - removed the `STEEP_LEARNING_DISABLED` enum value from the `error/code` response property for the response status `403`
  - removed the `STEEP_LEARNING_DISABLED` enum value from the `error/code` response property for the response status `404`
  - removed the `STEEP_LEARNING_DISABLED` enum value from the `error/code` response property for the response status `405`
  - …2 more

[Operation history](https://skmtc.dev/teaflask/apis/teaflask-api/changes/api/v1/billing/spend/get.md)

---

[API](https://skmtc.dev/teaflask/apis/teaflask-api.md) - [All operations](https://skmtc.dev/teaflask/apis/teaflask-api/llms.txt) - [OpenAPI document](https://skmtc.dev/teaflask/apis/teaflask-api/revisions/c6ac9fd6657f?raw)
