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 OrganizationAdmin 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

Response

FieldTypeDescription
apiKeyIduuid
tokenstring| null