Usage
Usage receipts
The line-by-line usage ledger, newest first, each charge with what caused it.
GET
https://cloud.generalinput.com/v1/usage/receiptsAuthenticationRequires
usage:read on a personal API key. A CLI session always passes.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
{
"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…"
}sourcesays what caused the charge, bykind:workflow_execution,workflow_agent_run,request_agent_run(a chat),app_handler,workflow,skill,project_file,database_agent_run,context_agent_runorcustom_integration_agent_run, with its ids and name. It isnullwhen it no longer resolves.creditsisnullon a plan that doesn't meter credits.modelis the AI model an AI token, image or transcription charge names;nullfor the rest.- A window starts where the 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
nextCursorascursoruntil it isnull.
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. |