Skip to main content
POST
/
api
/
v1
/
users
/
authorization
/
register
Register
curl --request POST \
  --url http://localhost:8000/api/v1/users/authorization/register \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "[email protected]",
  "password": "<string>",
  "password_confirm": "<string>",
  "first_name": "<string>",
  "last_name": "<string>",
  "phone_number": "<string>",
  "google_recaptcha_response": "<string>"
}
'
{
  "id": 123,
  "email": "[email protected]",
  "profile": {
    "first_name": "<string>",
    "last_name": "<string>",
    "phone_number": "<string>"
  },
  "access_token": "<string>",
  "is_google_recaptcha_response_valid": true,
  "token_type": "bearer"
}

Body

application/json

The schema for creating a user.

email
string<email>
required
password
string
required
password_confirm
string
required
first_name
string
required
last_name
string
required
phone_number
string | null
Required string length: 9 - 15
google_recaptcha_response
string | null

Response

Successful Response

The schema for a logged-in user.

id
integer
required
email
string<email>
required
profile
BasicProfileSchema · object
required

The base schema for a profile.

access_token
string
required
is_google_recaptcha_response_valid
boolean | null
token_type
string
default:bearer