Skip to main content

Register

Create an account in Raccoon-AI engine. To requesting JWT, you must need to register.

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

Request Body

KeyData TypeRequiredDescription
emailstringtrueEmail of the user.
first_namestringtrueFirst name of the user.
last_namestringtrueLast name of the user.
passwordstringtruePassword for the account. (More than 8 characters)
telstringfalseMobile number of the user.

Types

{
"email": <string>,
"password": <string>,
"tel": <string | null>,
"first_name": <string>,
"last_name": <string>
}

Sample

{
"email": "user@raccoon-ai.io",
"password": "XXXXXXXX",
"tel": "+941234567",
"first_name": "Navindu",
"last_name": "Dananga"
}

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

Types

{
"success": <bool>,
"msg": <string>,
"result": <json>
}

Sample

{
"success": true,
"msg": "User registered successfully",
"result": {
"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
}
}