Docs

Create

POST /Organizations/{orgId}/apikeys

POST/Organizations/{orgId}/apikeys

Creates an API key for the organization and returns its id and the signed token, optionally with an expiry (a key without one expires after one year). The token is shown only in this response and ApiKeys_List never returns it, so store it now. Requires organization admin (* at the organization) on a signed-in user's token; an API key cannot create, list or revoke API keys.

Path Parameters

FieldTypeRequiredDescription
orgIduuidRequired

Request Body

FieldTypeRequiredDescription
namestringOptional
expiresAtdate-timeOptional
accessRoleIdsuuid[]Optional

Response

FieldTypeDescription
apiKeyIduuid
tokenstring| null