Login APIs

Gets a JWT token.

This endpoint allows users to obtain a JWT token (short expiration) and a refresh token (long expiration) for authentication of further API calls. It takes a JSON object containing the username and password (required fields) in the request body. The method performs authentication, generates tokens, and handles various authentication exceptions

post/rest/login/getjwttoken

Request

  • Base URL
    https://masonconsole.com
  • Auth
    HTTP bearer

Request body

usernamestring required

Username of the user

passwordstring required

Password of the user

totpcodestring

TOTP code (Time-Based One-Time Password) for two-factor authentication

idTokenstring

ID token

ssoDomainstring

SSO (Single Sign-On) domain

refreshTokenstring

Refresh token used for token renewal

Example request

{
  "username": "admin@myaccount",
  "password": "a8D4#0!s1"
}

Response

Successful response

resultstring

The result of the login operation. Should be either 'SUCCESS' or 'FAILURE'.

messagestring

The message associated with the login response (applicable in case of 'FAILURE').

@classstring required

Changes

No recorded changes to this operation across all 1 revision of this API.