Skip to main content
GET
List an API key's usage history

Authorizations

Authorization
string
header
required

Session token from signing in, sent as Authorization: Bearer <token>.

Path Parameters

workspace_id
string
required

The workspace id (a UUID).

api_key_id
string
required

The API key id (a UUID).

Query Parameters

limit
integer<int64>

Page size, 1 to 1000. Defaults to 100.

offset
integer<int64>

Number of entries to skip. Defaults to 0.

credit_type
string

Only entries funded by this credit type, for example grant or payment.

Response

A page of usage history.

Usage history response

data
object[]
required
limit
integer<int64>
required
offset
integer<int64>
required
total
integer
required

Number of matching records. Without filters this is the organization's recorded request count (total_requests in the balance), which can exceed the rows still stored, so a final page may come back short or empty.

Required range: x >= 0