Skip to main content
GET
Get Usage Summary

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Authorization
string
header
required

This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.

Query Parameters

bucket
enum<string>

Defaults to TB_TIME_BUCKET_HOUR when unset.

Available options:
TB_TIME_BUCKET_UNSPECIFIED,
TB_TIME_BUCKET_HOUR,
TB_TIME_BUCKET_DAY
since
string<int64>

The since field.

until
string<int64>

The until field.

Response

200 - application/json

Successful response

The TBControlPlaneServiceGetUsageSummaryResponse message.

modelBreakdown
Tb Usage Model Breakdown · object[] | null

The modelBreakdown field.

series
Tb Usage Summary Bucket · object[] | null

The series field.

totalCacheReadTokens
string<uint64>

The totalCacheReadTokens field.

totalCacheWriteTokens
string<uint64>

The totalCacheWriteTokens field.

totalInputTokens
string<uint64>

The totalInputTokens field.

totalOutputTokens
string<uint64>

The totalOutputTokens field.

totalRequests
string<uint64>

The totalRequests field.