Login
Login to your account to generate JWT.
Method: POSThttps://engine.raccoon-ai.io/auth/login
Request Body
Key | Data Type | Required | Description |
---|---|---|---|
string | true | Email of the user. | |
password | string | true | Password for the account. (More than 8 characters) |
Types
{
"email": <string>,
"password": <string>
}
Sample
{
"email": "user@raccoon-ai.io",
"password": "XXXXXXXX"
}
Reponse Body
Key | Data Type | Description |
---|---|---|
success | boolean | Indicate the success of the request |
msg | string | Message indicators |
result | json | Result, only set if success is true. Contains information of the newly created user |
gen_at | timestamp | Generated timestamp |
Types
{
"success": <bool>,
"msg": <string>,
"result": <json>,
"gen_at": <timestamp>
}
Sample
{
"success": true,
"msg": "User logged in successfully",
"result": {
"jwt": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"user": {
"id": "585e2905-1316-45ca-bfd7-da9b4fbc7660",
"first_name": "Navindu",
"last_name": "Dananga",
"email": "navindu@raccoon-ai.io",
"is_super_admin": false,
"disabled": false,
"email_verified": false,
"tel_verified": false,
"tel": "+941234567",
"company": null,
"company_id_number": null,
"company_id_url": null,
"created_ts": "2023-06-11T22:12:46.996297",
"updated_ts": null,
"last_login_ts": null
},
"gen_ts": 1686502859.410083
}
}