# Usage receipts

> The line-by-line usage ledger, newest first, each charge with what caused it.

Source: https://docs.generalinput.com/api/usage/receipts



<Endpoint method="GET" path="/v1/usage/receipts" />

<Access scope="usage:read" />

## Query parameters [#query-parameters]

| Name           | Notes                                                                                               |
| -------------- | --------------------------------------------------------------------------------------------------- |
| `window`       | `1d`, `2d`, `3d`, `7d`, `14d`, `30d` or `90d`, ending now. Default `7d`.                            |
| `from`, `to`   | A calendar range instead, both days included, in `tz`. At most 93 days.                             |
| `tz`           | IANA zone the window's start and a range's days are cut in. Default `UTC`.                          |
| `membershipId` | One member's charges. Another member's needs usage access.                                          |
| `limit`        | 1 to 100. Default 25.                                                                               |
| `cursor`       | The previous answer's `nextCursor`. One from another window, range or member is refused with `400`. |

## Response [#response]

```json
{
  "window": "7d",
  "scope": { "kind": "workspace" },
  "isCreditMetered": true,
  "receipts": [
    {
      "id": "8f1c…",
      "at": "2026-11-26 10:15:00+00",
      "category": "AI token usage",
      "description": null,
      "credits": 1.25,
      "member": {
        "membershipId": "0f0c…",
        "name": "Dana Ruiz",
        "email": "dana@example.com"
      },
      "source": {
        "kind": "app_handler",
        "workflowId": "wf_8d…",
        "workflowName": "Offboarding Tracker"
      }
    }
  ],
  "nextCursor": "eyJ…"
}
```

* `source` says what caused the charge, by `kind`: `workflow_execution`, `workflow_agent_run`, `request_agent_run` (a chat), `app_handler`, `workflow`, `skill`, `project_file`, `database_agent_run`, `context_agent_run` or `custom_integration_agent_run`, with its ids and name. It is `null` when it no longer resolves.
* `credits` is `null` on a plan that doesn't meter credits.
* `model` is the AI model an AI token, image or transcription charge names; `null` for the rest.
* A window starts where [the report](/api/usage/report)'s and breakdown's do (snapped to the hour or day in `tz`), so all three cover the same charges.
* Receipts come newest first, not in the order they were charged.
* Read on by passing `nextCursor` as `cursor` until it is `null`.

## Errors [#errors]

| Status | When                                                                                                                   |
| ------ | ---------------------------------------------------------------------------------------------------------------------- |
| `400`  | An unknown window, zone or limit, a bad range, a `membershipId` that isn't a uuid, or a cursor this list didn't issue. |
| `403`  | `membershipId` names another member and the key's member has no usage access, or names no member of this workspace.    |
| `429`  | Over the usage read budget: 30 reads a minute per member, 120 per workspace. `Retry-After` says when to try again.     |
