Create an API key owned by the caller (token shown once)
POST/v1/apikeys
Mints a new key owned by the calling principal — the owner is always the caller and cannot be specified. The plaintext token is included in this response and only this response, so store it immediately; it cannot be retrieved later. Each requested scope must be a network/role the caller already holds (a key can only delegate a subset of its own access), and only a super-user key may set super_user=true. A key must request either super_user=true or at least one scope.
Request
Responses
- 200
- 401
- 403
Create an API key owned by the caller (token shown once)
Missing or invalid API key
The API key is not authorized for this resource