Create API Key
Creates a new API key with the specified alias.
Keys are created with granular permissions. Pass preset for a named preset
or permissions to list them explicitly; omit both to get the API preset.
Important Security Notice:
The key_secret is only returned once at creation time. Store it securely immediately
as it cannot be retrieved again. If lost, you must delete the key and create a new one.
Key Creation Access:
API keys cannot create keys, even on the FULL preset. This endpoint returns
403 for an API key. Create keys in the dashboard instead.
Key Features:
- Assign meaningful aliases for key identification
- Scope a key with a named preset or an explicit list of permissions
- Optionally set an expiry with
expires_at - Keys are immediately active upon creation
Required permissions: auth:keys:write. Key presets that include them: FULL. See key permissions.
Authorizations
Body
Response
API key created successfully. Store the key_secret securely - it will not be shown again.
Response containing the newly created API key credentials. The key_secret is only returned once.