v1

latestOpenAPI 3.0.02026-07-14135106116.2 KB
auth

Create a new token

Bearer tokens can be used to authenticated without session or without sending credentials.

If the user making the request has sufficient privileges, he is allowed to create a token on behalf of another user. Otherwise only a token for the request current user is allowed.

Permission required: edit_users

post/auth/token

Headers

X-Fieldsstring mask

An optional fields mask

Request body

usernamestring required

the user username

Example request

{
  "roles": [
    {
      "inbox": "abcdef123456789abcdef123",
      "role": "abcdef123456789abcdef123"
    }
  ]
}

Response

Success

authentication_tokenstring required