Skip to main content
GET
Usage totals for a period

Authorizations

Authorization
string
header
required

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

Query Parameters

from
string<date> | null

First day to count, inclusive

to
string<date> | null

Last day to count, inclusive

Response

Successful Response

Totals for a period, with the credit balance as it stands now.

start
string<date>
required

First day counted, inclusive

end
string<date>
required

Last day counted, inclusive

total_calls
integer
required

Calls made over the period, successful or not

billed_calls
integer
required

Calls that deducted a credit

failed_calls
integer
required

Calls that returned an error and were not charged

credits_remaining
integer | null

Credits left on the key that made this request, absent when it has no limit

by_operation
OperationUsage · object[]

The same totals, broken down by endpoint