Skip to main content
POST

Body

application/json
name
string
required

Display name for the API key.

Required string length: 1 - 120
credit_limit
number | null

Hard credit limit for this API key, or null for Unlimited.

Required range: 0 <= x <= 1000000000

Response

Created API key.

key_id
string
required
name
string
required
status
string
required
api_key
string | null
prefix
string | null
created_at
string | null
last_used_at
string | null
disabled_at
string | null
expires_at
string | null
rotated_from_key_id
string | null
rotated_at
string | null
credit_limit
number | null
credit_used
number
default:0
credit_reserved
number
default:0
credit_remaining
number | null
credit_budget_reset_at
string | null