Skip to main content
POST
/
users
/
get_token
Get user access token. New password used only for users who need to update it.
curl --request POST \
  --url https://api.example.com/users/get_token \
  --header 'Content-Type: application/json' \
  --data '
{
  "username": "<string>",
  "password": "<string>",
  "tenant_name": "<string>",
  "new_password": "<string>"
}
'
{
  "access_token": "<string>"
}

Body

application/json
username
string
required
password
string<password>
required
tenant_name
string
required
new_password
string<password> | null

Response

Successful Response

Keycloak representation of a token object

Attributes: access_token (str): An access token

access_token
string
required