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"
}Register a new user using the data from the UserCreateSchema.
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"
}Successful Response
The schema for a logged-in user.