Create API key
Issues a new API key for the organization. Body: { name: string (1-255 chars, required), permissions?: string[] (default []), canImpersonate?: boolean (default false) }. The plaintext key value is returned ONCE in this 201 response and is never retrievable again. Authorization: organization administrators only. Returns 400 on an invalid body.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
name
permissions
Defaults to [].
canImpersonate
Defaults to false.
Response
The created API key, including its one-time plaintext value.
id
name
permissions
canImpersonate
lastUsedAt
createdAt
value
The plaintext key. Returned ONCE, at creation, and never retrievable again.