Skip to main content
POST
/
v1
/
api
/
auth
/
register
Register a new user
curl --request POST \
  --url http://localhost:3091/v1/api/auth/register \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "pseudo": "<string>",
  "lastName": "<string>",
  "firstName": "<string>",
  "email": "<string>",
  "phone": "<string>",
  "nationality": "<string>",
  "dateOfBirth": "<string>",
  "password": "<string>"
}
'
{}

Authorizations

Authorization
string
header
required

JWT access token from POST /v1/api/auth/login

Body

application/json
pseudo
string
required
Required string length: 4 - 10
lastName
string
required
firstName
string
required
email
string
required
phone
string
required
nationality
string
required
dateOfBirth
string
required
password
string
required
Required string length: 8 - 20
Pattern: ^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,20}$

Response

User registered successfully

The response is of type object.