Post: API Login

In this API, we authenticate with the HCL AION backend using valid credentials. On successful login, we receive an access token that is required to authorize all subsequent API requests.

Endpoint:

/auth/api/login

Input:

  • username – A valid AION username
  • password – Corresponding password

Output:

  • access_token – A bearer token to be used in the Authorization header
  • token_type – The type of token returned (usually bearer)
  • expires_in – Validity duration of the token (in seconds)
  • message – Authentication result message
  • status – Status of the API response (success or error)

After Execution, we get a response like this: