Skip to main content
POST
Set Key Limit

Authorizations

Authorization
string
header
required

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

Cookies

session
String

Body

application/json
token_id
string
required

Api key id, as returned by /v1/api-tokens

limit
number | null

Monthly spending limit (in USD) for this key. Null or negative removes it; 0 blocks the key

Response

Successful Response

token_id
string
required
name
string
required

Api key name

limit
number | null
required

Monthly spending limit (in USD), if set

spend
number | null
required

Spent so far this month (in USD). Null when not yet computed for this key