Docs
Create
POST /Organizations/{orgId}/apikeys
POST
/Organizations/{orgId}/apikeysCreates 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
| Field | Type | Required | Description |
|---|---|---|---|
| orgId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Optional | |
| expiresAt | date-time | Optional | |
| accessRoleIds | uuid[] | Optional |
Response
| Field | Type | Description |
|---|---|---|
| apiKeyId | uuid | |
| token | string| null |