API referenceKeys and access
Set a key's credit limit
Cap what one key can spend, resetting daily, weekly, monthly or never. null removes the cap. Calls over the cap fail with budget_blocked.
Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
id*string
Match
^[0-9A-Za-z]{12}$Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PUT "https://example.com/v1/keys/string/limit" \ -H "Content-Type: application/json" \ -d '{ "limit_micro": 0 }'{ "limit_micro": 0, "limit_reset": "day", "object": "key_limit", "key_id": "string", "usage_micro": 0}