Register Admin
Details#
This endpoint is used to register an admin in the website. If you're looking to register a company, see create application.
URL : /auth/register
Method :
POST
Authentication
God permissions are needed in order to register and Admin.
Parameters#
god_token#
Body Parameter
Required
String
The endpoint will use this for validating the usage of god mode.
email#
Body Parameter
Required
String
Email used for the admin's account.
Must be in a valid email format. Can't already be in use in another account.
password#
Body Parameter
Required
String
Min Length: 8
Password used for the admin's account.
Must contain at least one number.
Response#
data#
Response Field
Object
Object containing data about the created account (without the password).
Request examples#
Example 1 - Successful Request#
Code :
200 OK
- Request
- Response
Example 2 - Duplicate Email#
Code :
422 UNPROCESSABLE ENTITY
- Request
- Response
Example 3 - God Token Missing#
Code :
401 UNAUTHORIZED
- Request
- Response