Skip to main content
GET
Retrieve this key's spend and limit

Authorizations

Authorization
string
header
required

A workspace API key in an Authorization: Bearer header. A missing header, a scheme other than Bearer, a key of the wrong shape, and a key we reject are all 401.

Response

The key's spend and limit.

object
enum<string>
required
Available options:
key_usage
currency
string
required
Example:

"USD"

usage
object
required
limit
string | null
required

An exact decimal dollar amount, or null for a key with no limit.

Example:

"10"

limit_remaining
string | null
required

An exact decimal dollar amount, or null for a key with no limit.

Example:

"6"

limit_reset
enum<string> | null
required

How often the key's limit starts counting again, in UTC calendar windows. null when the key has no limit or its limit never resets.

Available options:
daily,
weekly,
monthly,
null
as_of
string<date-time>
required