AUTH

AUTH

Register a new user

post
Header parameters
Languagestring · stringOptional

Language

Body
first_namestringRequired

The first name of the user

Example: John
last_namestringRequired

The last name of the user

Example: Doe
emailstring · emailRequired

The email of the user

Example: [email protected]
phonestringRequired

The phone number of the user

Example: 1234567890
passwordstring · passwordRequired

The password of the user

Example: password123
Responses
201

User registered successfully

application/json
post
/api/auth/register

Login a user

post
Header parameters
Languagestring · stringOptional

Language

Body
usernamestring · stringOptionalExample: menna
passwordstring · passwordOptionalExample: password
Responses
201

User Logged in successfully

application/json
post
/api/auth/login

Last updated