Create API key
Creates a new API key in a workspace
keys:write scope. No idempotency.
Authorizations
API key authentication.
Keys start with ak_ prefix.
Example: Authorization: Bearer ak_live_xxxxxxxxxxxx
Path Parameters
Workspace identifier
Body
Human-readable name for the key
1 - 255Key type — api for inference
api Permission scopes to grant
Per-key rate limit in requests per minute (minimum 1)
x >= 1Expiration timestamp
Budget configuration for an API key.
Response
Created
Created API key with the full secret value.
The api_key field is returned only once and cannot be retrieved again.
Unique identifier for the API key
Workspace this key belongs to
Human-readable name for the key
Key prefix for identification
Key profile derived from granted scopes
inference, management, mixed Granted permission scopes
Whether the key is currently active
When the key was created
The full API key secret. Returned only on creation. Store it securely — it cannot be retrieved again.
Per-key rate limit in requests per minute
Expiration timestamp
When the key was last used
ID of the API key that created this key
Status of edge propagation. Present when KV sync is pending.
pending, null