Key Validator
Check the key is valid or not
URL
userauthentication/isvalidkey
Method
POST
Request Media type
application/json
Response Media type
application/json
Request Parameters
| Parameter | Data Type | Min | Max | M/O | Sample Value | Comments |
|---|---|---|---|---|---|---|
| key | String | 32 | 32 | M | iLgNawWSbtx4smd7C5B2OydeY2VjY5bn | Key obtained from authentiaction. |
Response Values
| Name | Data Type | Min Length | Max Length | M/O | Sample Value | Comments |
|---|---|---|---|---|---|---|
| ucode | Integer | M | 21 | User code of the session | ||
| employeecode | Integer | M | 32472 | Employee Code of the user | ||
| imei | String | M | 352099001761481 | IMEI of the accessing device. | ||
| dbname | String | M | nalakath_cn | Database Name on which authentication done | ||
| key | String | M | QH7LlQ3wQMK9oYEKj | Requested session id | ||
| UserID | String | M | TEST | User Id of user | ||
| UserName | String | M | ADMIN-SCTPL | Name of the User that is Logged In | ||
| LastActiveOn | String | M | 2023-07-12 15:44:06 | Last active Time |
Sample Request
{
"key": "QH7LlQ3wQMK9oYEKjeG5QOIVJQT4emeq"
}
Sample Success Response
{
"ucode": "21",
"employeecode": "32472",
"imei": "352099001761481",
"dbname": "nalakath_cn",
"key": "QH7LlQ3wQMK9oYEKj",
"UserID": "TEST",
"UserName": "ADMIN-SCTPL",
"LastActiveOn": "2023-07-12 15:44:06",
"e": 200,
"msg": "Success"
}
Sample Failure Responses
{
"e": 400,
"msg": "Bad Request."
}