Skip to main content
Lists individual consumption records, newest first: one per billed model request or platform operation, with tokens and the consumption charged in tokens. Consumption is attributed to members — to tell applications apart, give each its own virtual member. Records are near real-time; Get Usage reads aggregates refreshed every few minutes, so the two can briefly disagree. With log:read_all the list covers the team; a caller holding only log:read_self sees their own records, and filtering by another member’s principal_id is refused. The window defaults to the last 7 days and may span at most 92 days. Unlike other lists this one returns no total — page with continuation_token until it is absent. Rate limit: 20 requests per minute per key by default, counted separately from all other operations. When paging through many records, use the largest page_size (100).
Permission required: log:read_all (whole team) or log:read_self (your own only)
  • When you filter by another member’s principal_id: log:read_all

Query Parameters

integer
default:"20"
Number of items per page (1–100)
string
Token from the previous page. Opaque — do not construct or parse it. Send the same filters with it.
integer
Earliest record time to include, Unix seconds (inclusive). Defaults to 7 days before end_time.
integer
Latest record time, Unix seconds (exclusive). Defaults to now. The window may span at most 92 days.
array
Only records for these models or platform operations (files_process, memory_input, retrieval_call, search_call). Repeat the parameter for several.
string
model_call: model requests. platform_task: platform operations such as file processing and memory writes. Omit for both.
array
Only records of these members. Repeat the parameter for several. A caller limited to their own records may only pass their own id.
string
Only the record of this request id.

Response

object

Errors

Errors answer with success: false, a message and an error_code. See Error Codes for every code.