Skip to main content

Register User

Endpoint

To register a new user, make a POST request to the following endpoint:

https://api.betatel.com/api/auth/register

Request Body

The request should contain the following fields:

{
"firstName": "Test",
"lastName": "User",
"email": "povid681@nokdot.com",
"password": "Password12345!"
}
ParamValueTypeRequiredDescription
firstNameTestStringYesThe user's first name
lastNameUserStringYesThe user's last name
emailpovid681@nokdot.comStringYesThe user's email address
passwordPassword12345!StringYesThe user's password

Let’s Get Coding!

Now, choose your preferred programming language and get started with the examples below.

Example - cURL
curl --location 'https://api.betatel.com/api/auth/register' \
--header 'Content-Type: application/json' \
--data-raw '{
"firstName": "Test",
"lastName": "User",
"email": "povid681@nokdot.com",
"password": "Password12345!"
}'

Response

JSON Schema:

{
"id": "67ea622b0552935fac5cd1ad",
"firstName": "Test",
"lastName": "User",
"email": "povid681@nokdot.com",
"role": "user",
"status": "active",
"isVerified": false,
"createdAt": "2025-03-31T09:36:43.610Z",
"updatedAt": "2025-03-31T09:36:43.610Z"
}

🎉 Congratulations – Mission Accomplished!

🔜 What’s Next? Now that you have successfully registered a new user, you can proceed with integrating other endpoints, such as login, profile management, or password recovery, into your application!