Skip to main content

Login

Login to your account to generate JWT.

Method: POST
https://engine.raccoon-ai.io/auth/login

Request Body

KeyData TypeRequiredDescription
emailstringtrueEmail of the user.
passwordstringtruePassword for the account. (More than 8 characters)

Types

{
"email": <string>,
"password": <string>
}

Sample

{
"email": "user@raccoon-ai.io",
"password": "XXXXXXXX"
}

Reponse Body

KeyData TypeDescription
successbooleanIndicate the success of the request
msgstringMessage indicators
resultjsonResult, only set if success is true. Contains information of the newly created user
gen_attimestampGenerated 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
}
}