Register a new user
POST
/register
const url = 'http://localhost:8000/api/v1/register';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"email":"hello@example.com","first_name":"example","last_name":"example","username":"example","phone":"example","password":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8000/api/v1/register \ --header 'Content-Type: application/json' \ --data '{ "email": "hello@example.com", "first_name": "example", "last_name": "example", "username": "example", "phone": "example", "password": "example" }'Request Body required
Section titled “Request Body required ” Media type application/json
object
email
required
string format: email
first_name
required
string
last_name
string
username
string
phone
string
password
required
string format: password
Example generated
{ "email": "hello@example.com", "first_name": "example", "last_name": "example", "username": "example", "phone": "example", "password": "example"}Responses
Section titled “ Responses ”User registered successfully
Validation error