auth
User registration
Register a new user in Keycloak
post/api/auth/register
Request body
Example request
{
"birth_date": "1990-01-01",
"commercial_communications_consent": true,
"email": "user@example.com",
"email_verified": false,
"enabled": true,
"first_name": "John",
"last_name": "Doe",
"password": "SecurePass123!",
"phone": "+39 333 1234567",
"reason_for_registration": "WANT_TO_START_JOURNEY",
"role": "patient"
}Response
Successful Response
Example response
{
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
"email": "user@example.com",
"expires_in": 300,
"message": "Utente registrato con successo",
"refresh_expires_in": 1800,
"refresh_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
"token_type": "Bearer",
"user_id": "123e4567-e89b-12d3-a456-426614174000"
}Changes
No recorded changes to this endpoint across all 1 revision of this API.