GET /v1/usage/records
Lists individual usage records as nodes reported them, newest first, filterable by product, unit, key and request.

Authentication

Bearer Token (b3os_sk_ API key or b3os_pat_ token) API Key (cookie: __Host-b3os_session)

Query Parameters

limit integer optional query
Page size, from 1 to 100.
cursor string optional query
Opaque cursor from the previous page's `next_cursor`. Omit it for the first page.
start string (date-time) optional query
end string (date-time) optional query
product string optional query
unit string optional query
key_id string optional query
request_id string optional query

Responses

200 A page of records.
application/json
object string REQUIRED
Enum: list
data object[] REQUIRED
Array of:
id string REQUIRED
object string REQUIRED
Enum: usage_record
ts string (date-time) REQUIRED
org_id string REQUIRED
project_id string REQUIRED
key_id string | null REQUIRED
sandbox_id string | null REQUIRED
Set when a sandbox's own API calls caused the usage.
node string REQUIRED
product string REQUIRED
unit string REQUIRED
qty number REQUIRED
request_id string | null REQUIRED
meta object REQUIRED
Unit-specific detail, such as the tier that served a page.
next_cursor string | null REQUIRED
400 The request failed validation (`invalid_request`, `invalid_url`).
401 Missing, malformed, expired or revoked credentials (`unauthorized`).
403 Authenticated but not allowed (`forbidden`, `egress_denied`).
429 A rate, concurrency or quota limit applies (`rate_limited`, `concurrency_limited`, `quota_exceeded`).
500 Something failed inside B3OS (`internal`). Retry with backoff.
503 The node or the product is not available right now (`node_unavailable`, `product_unavailable`, `capacity_unavailable`).
curl -X GET 'https://beta-api.b3os.org/v1/usage/records' \  -H 'Authorization: Bearer YOUR_API_TOKEN'
const response = await fetch('https://beta-api.b3os.org/v1/usage/records', {  method: 'GET',  headers: {      "Authorization": "Bearer YOUR_API_TOKEN"  }});const data = await response.json();console.log(data);
import requestsheaders = {    'Authorization': 'Bearer YOUR_API_TOKEN'}response = requests.get('https://beta-api.b3os.org/v1/usage/records', headers=headers)print(response.json())
200 Response
{  "object": "list",  "data": [    {      "id": "use_01m5t5tmscqev5tf32q87tr1v5",      "object": "usage_record",      "ts": "2026-10-25T21:30:00.120Z",      "org_id": "org_01m5t5hthd29mm5wpza5ndd6mm",      "project_id": "prj_01m5t3pf8heewxt65ej3dm577y",      "key_id": "key_01m5t5csy2wt4e3er052chyf1x",      "sandbox_id": null,      "node": "n1",      "product": "vision",      "unit": "vision.page",      "qty": 1,      "request_id": "req_01m5t4yg394wegr3j4y01qb363",      "meta": {        "tier": "fetch"      }    }  ],  "next_cursor": null}
Ask a question... ⌘I