Login
Use this API to generate JWT token and refresh token.
HTTP REQUEST
POST /authorize/login
REQUEST BODY PARAMETERS
| Field | Type | Description |
|---|---|---|
| email required |
string | An Email Address |
| password required |
string | Password |
| domain | string | Custom Domain. If a person belongs to 2 companies please specify domain. |
{
"success": true,
"data": {
"response": {
"acknowledgement": "Success",
"data": {
"user": {
"id": 2,
"firstName": "Rajesh",
"lastName": "Kumar",
"email": "manish@horizzon.com",
"mobile": "+919820000615",
"uniqueId": "100001",
"role": "Admin",
"language": "en-US",
"timezone": "Asia/Oral"
},
"token": "eyJ0eXAiOiJKV1QiLCJhb",
"refresh-token": "yfX8xSCTQszwBImLN4QKvPk-_"
},
"error": {
"code": "",
"internal_message": "",
"moreInfo": []
}
}
}
}
| Field | Type | Description |
| user | JSON Array | User basic details |
| id | integer | User Id |
| fname | string | First Name |
| lname | string | Last Name |
| string | Email Address | |
| mobile | string | Contact |
| rollno | string | Contact |
| timezone | string | Timezone |
| token | string | JWT Token |
| refresh-token | string | Refresh Token |
| Code | Description |
| 1001 | “Missing email” |
| 1002 | “Invalid email” |
| 1003 | “Missing password” |
| 1004 | “Invalid password” |
| 1005 | “Missing domain” |
| 1006 | “Invalid domain” |
For general error details, click here.