createApiToken
POST/api/v1/tokens
Creates a token of the caller, or with service_account (needs admin) of that service account. Only a session creates tokens, never another token.
Request
Responses
- 201
- 403
- 404
- 422
The token value, shown once
auth.forbidden: service_account without admin, or a request with an API token
object.not_found: no such service account
token.roles: a role the owner doesn't have; user.not_service_account; selector.invalid