Returns thread metadata or period usage rows, including the thread Id, name, credits, and timestamps.
Authentication
AuthorizationBearerSend your token in the Authorization: Bearer <token> header. See Authentication for API keys and OAuth.
Query parameters
usageFromstringOptionalThe first included UTC calendar day for period usage rows.
usageTostringOptionalThe last included UTC calendar day for period usage rows.
usageGroupBystringOptional"none"The report grouping when a usage period is provided.
usagePageSizeintegerOptionalOptional bounded bulk page size for period usage rows.
Responses
200 OK
application/json
idstringOptionalThe thread identifier.
isDeletedbooleanOptionalWhether the thread was deleted and can no longer be opened.
typestring or nullOptionalThe thread type.
titlestring or nullOptionalThe contextual thread title. A private thread title is available only to its creator. Contributors do not widen this: they exist only on project- or task-backed threads, whose titles are never masked.
createdBystringOptionalThe human creator identifier.
agentIdstring or nullOptionalThe associated Agent identifier.
agentNameSnapshotstring or nullOptionalThe Agent display name captured for the initial run.
executionTypestring or nullOptionalThe initial execution trigger type: direct, task-assignment, project-assignment, mention, schedule, automation, queue, delegation, or workflow.
projectIdstring or nullOptionalThe project context identifier.
taskIdstring or nullOptionalThe task context identifier.
clientIdstring or nullOptionalThe client context identifier.
statusstring or nullOptionalThe current thread status.
creditsUsedintegerOptionalWhole credits attributed to this thread. Period report rows use the overview's quota factors; unscoped metadata uses the stable display factor.
usageUserIdstring or nullOptionalThe responsible user when the report is grouped by user.
usageGroupKeystring or nullOptionalThe selected reporting group for this row.
usageOnstring or nullOptionalThe latest usage timestamp in the selected period.
providerstring or nullOptionalThe provider of the highest-cost model pair in this row's scope, or null without usage.
modelstring or nullOptionalThe highest-cost model in this row's scope, or null without usage.
createdOnstring or nullOptionalWhen the thread was created.
lastActivityOnstring or nullOptionalWhen the thread last had user-visible activity.
updatedOnstring or nullOptionalWhen the thread was last updated.
400 Bad Request
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.