Juman Project
  1. Auth
Juman Project
  • Auth
    • register
      POST
    • login
      POST
    • forgot-password
      POST
    • reset-password
      POST
    • logout
      POST
  • Events
    • user register to event
      POST
    • get all events
      GET
    • get single event
      GET
    • create event
      POST
    • update event
      PUT
    • delete event
      DELETE
  • Courses
    • recorded course
      • create recorded course
      • get all recorded courses
      • get single recorded course
      • delete recorded course
      • update recorded course
      • book a recorded course
      • verify payment
    • in person course
      • create in-person courses
      • get all in-person courses
      • get single in-person course
      • delete in-person course
      • update in-person course
      • book an in-person course
      • verify payment
    • get all courses
      GET
    • get single course
      GET
    • update course
      PUT
  • Consultations
    • create consultation
      POST
    • book a consultation
      POST
    • verify payment
      GET
    • all payments
      GET
    • payments history (for single user)
      GET
    • Get Available Consultations
      GET
  • Users
    • get user
      GET
    • me
      GET
    • update user
      PUT
    • update user password
      PUT
    • get all users
      GET
    • delete user
      DELETE
    • get user content
      GET
  • Contact
    • contact form
  • FAQs
    • get all faqs (admin)
    • get all faqs (users)
    • create faq
    • update faq
    • delete faq
    • toggle status
  • Podcasts
    • get all podcasts
    • create podcast
    • update podcast
    • delete podcast
    • get all podcasts (admin)
    • get single podcast
    • get single podcast
  1. Auth

register

POST
/api/auth/register

Register User#

This endpoint is used to register a new user.

Request Body#

fullName (text, required): The full name of the user.
email (text, required): The email address of the user.
password (text, required): The password for the user account.
confirmPassword (text, required): The password confirmation for the user account.
phoneNumber (text, required): The phone number of the user.
The request payload should include the full name, email, password, and phone number of the user.

Response#

status (string): The status of the request.
data (object): The data object containing user information.
user (object): The user object with the following properties:
_id (string): The unique identifier for the user.
fullName (string): The full name of the user.
email (string): The email address of the user.
phoneNumber (string): The phone number of the user.
role (string): The role of the user.
Upon successful registration, the response will contain the status of the request and the user data including the unique identifier, full name, email, phone number, and role.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/auth/register' \
--header 'Content-Type: application/json' \
--data-raw '{
    "fullName": "Abdullatif",
    "email": "abdullatif.jarkas1@gmail.com",
    "password": "12345678",
    "confirmPassword": "12345678",
    "phoneNumber": "+963932712098"
}'
Response Response Example
{
    "status": "success",
    "data": {
        "user": {
            "_id": "681e3660e89c882df0e692db",
            "fullName": "test",
            "email": "test9@gmail.com",
            "phoneNumber": "+963932712098",
            "role": "user"
        }
    }
}

Request

Body Params application/json

Examples

Responses

🟢201register
application/json
Body

Modified at 2025-07-27 20:59:58
Next
login
Built with