Create an API key
Mints a key for the key’s holder on this account. The answer carries the raw key in raw, once: it is stored only as a hash and no route returns it again. Needs a key with manage_keys on, and a member or owner role (a viewer mints from the dashboard).
A key cannot mint a key with manage_keys on (403): only the dashboard grants it. Nor can it mint one wider than itself. Without workspace_id a key confined to a workspace mints into that workspace, and naming any other scope, null included, is a 403. An account-wide key may name any workspace of the account (an unknown one is a 400) or none, for another account-wide key.
The body is optional. No body, or one of nothing but whitespace, mints an unnamed key exactly as {} does.
The account holds at most 1000 keys, whoever minted them; the next is a 400.
Requires the member role or higher.
Request
- Base URL: https://app.mandala.computer/api/v1
- URL: https://app.mandala.computer/api/v1/api-keys
- Auth: HTTP bearer
Request body
Response
The key, with the raw key in raw.
Changes
No recorded changes to this operation across all 1 revision of this API.