Register Admin
#
DetailsThis 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_tokenBody Parameter
Required
String
The endpoint will use this for validating the usage of god mode.
#
emailBody 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.
#
passwordBody Parameter
Required
String
Min Length: 8
Password used for the admin's account.
Must contain at least one number.
#
Response#
dataResponse Field
Object
Object containing data about the created account (without the password).
#
Request examples#
Example 1 - Successful RequestCode :
200 OK
- Request
- Response
#
Example 2 - Duplicate EmailCode :
422 UNPROCESSABLE ENTITY
- Request
- Response
#
Example 3 - God Token MissingCode :
401 UNAUTHORIZED
- Request
- Response