API Documentation

Login

This module generates token for the user when logging into the system. The Service URL of the module is given by the following link-

https://{domain}.qevalpro.com/api/Authenticate/Login

The domain can be: “app” or “ai”.

  • Method-

  Post

  • JSON Formats

1. Code snippet for Web Service Use-

{

Headers

Every API call must include two-factor authentication by providing the following headers:

  1. Authorization: Bearer <Generated_Token>
    • The Bearer Token is generated upon a successful login.
  2. X-API-KEY: <Your_Unique_API_Key>
    • Note: This key is assigned by the QEval team. If not available, you can request it via email at Qeval@etechtexas.com

}

2. Description for Request Parameters-

S.No

Name

Type

Description

1

Username

String

Username for login

2

Password

String

Password for login

3. Response Example-

Success:

{

“Message”: “Success”,

“Token”: “####”,

“UserID”: 1234,

“UserName”: “Patrick”,

“UserFirstName”: “Patrick”,

“UserLastName”: “James”,

“RoleId”: 8,

“ClientID”: 12,

“EmpId”: 22445

“X_API_KEY”: “####”

}

Fail:

   {“Message”: “The request is invalid”}

Notes:

  1. Two-Factor Authentication:
    • The Bearer Token must be included in the Authorization Header.
    • The X-API-KEY is mandatory and must be included in the X-API-KEY Header.
  2. Tokens are no longer supported in the request body.

    ×

    Contact Us