Create an API key (admin only)
POST/users/api-keys
Creates a new API key scoped to a specific user. The full token is returned only once.
Request
Responses
- 201
- 400
- 403
- 404
- 500
API key created. Contains the full token (shown only once).
Invalid input.
Admin access required.
Target user not found.
Failed to create API key.