Skip to main content
POST
management.keys.create

Authorizations

Authorization
string
header
required

Account-scoped management credential created by the account owner after email verification. Inference keys cannot access these endpoints; management keys cannot run inference.

Body

application/json
name
string
required
Required string length: 1 - 64
Pattern: ^[a-zA-Z0-9\s_-]+$
projectId
string | null
Pattern: ^[a-fA-F0-9]{24}$
readOnly
boolean
expiresInDays
integer | null
Required range: 1 <= x <= 365
monthlyBudgetCents
integer | null
Required range: 0 <= x <= 1000000

Response

Management operation result. Lists use a data array; key/project/audit lists include next_cursor (null at end). Key create/rotate returns key once plus data metadata. X-Audit-Status: pending means the operation succeeded but its completion audit append needs investigation using X-Request-ID.

The response is of type object.