Skip to main content
GET
List user credit consumption

Authorizations

Authorization
string
header
required

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

Query Parameters

start_date
string<date-time>
required

Inclusive start of the report window (ISO 8601 date or date-time). Date-only values are UTC midnight.

end_date
string<date-time>
required

Inclusive end of the report window (ISO 8601 date or date-time). A date-only value covers that entire UTC day; a date-time is used exactly as given.

limit
integer
default:50

The limit on the number of objects to return, ranging between 1 and 100.

Required range: 1 <= x <= 100
after
string

A cursor to use in pagination. after is an object ID that defines your place in the list. For example, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo to fetch the next page of the list.

before
string

A cursor to use in pagination. before is an object ID that defines your place in the list. For example, if you make a list request and receive 100 objects, starting with obj_bar, your subsequent call can include before=obj_bar to fetch the previous page of the list.

Response

User credit consumption rows

object
enum<string>
required

The object type, always 'list'.

Available options:
list
data
object[]
required

User credit consumption rows for this page.

has_more
boolean
required

Whether additional rows exist after this page.

first_id
string | null
required

Opaque cursor for the first row on this page, or null when the page is empty.

last_id
string | null
required

Opaque cursor for the last row on this page, or null when the page is empty.