Register
Create an account in Raccoon-AI engine. To requesting JWT, you must need to register.
Method: POSThttps://engine.raccoon-ai.io/auth/register
Request Body
Key | Data Type | Required | Description |
---|---|---|---|
string | true | Email of the user. | |
first_name | string | true | First name of the user. |
last_name | string | true | Last name of the user. |
password | string | true | Password for the account. (More than 8 characters) |
tel | string | false | Mobile 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
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 |
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
}
}