Skip to main content
POST
Create API key

Authorizations

Authorization
string
header
required

Management key created in the console. read scope reads; write scope also changes API keys. Inference API keys are not accepted.

Body

application/json
name
string
required
Required string length: 1 - 60
memberName
string | null
Maximum string length: 80
memberEmail
string | null
Maximum string length: 200
expiresAt
integer<int64> | null

Future Unix timestamp in milliseconds; null clears expiry.

defaultTags
object
allowedModels
string[] | null

Exact model IDs or provider/* rules; null allows all enabled workspace models. An empty array is invalid.

Required array length: 1 - 50 elements
budget
integer | null
Required range: 0 <= x <= 1000000000000
remaining
integer | null
Required range: 0 <= x <= 1000000000000
resetPeriod
enum<string>
Available options:
none,
daily,
weekly,
monthly

Response

Successful response.

id
string
required
key
string
required
expiresAt
integer | null