Register

Create a new user account. Sends a verification email after successful registration. Always returns 201 to prevent email enumeration — if the email is already registered the response is identical.

POSThttps://api.marinahealth.eu/auth/register
application/json

Request Body

Body Parameters

NameTypeRequiredDescription
emailstringrequiredValid email address (max 255 characters).
passwordstringrequiredMinimum 8, maximum 128 characters.
namestringrequiredDisplay name (1–255 characters).

Example Request

cURL
curl -X POST https://api.marinahealth.eu/auth/register \
  -H "Content-Type: application/json" \
  -d '{
    "email": "user@example.com",
    "password": "securepassword",
    "name": "Jane Doe"
  }'

Response

Successful
FieldTypeDescription
messagestringSuccess message.
userIdstringUUID of the newly created user.
json
{
  "message": "Account created. Please check your email to verify your account.",
  "userId": "usr_abc123"
}