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
| Name | Type | Required | Description |
|---|---|---|---|
| string | required | Valid email address (max 255 characters). | |
| password | string | required | Minimum 8, maximum 128 characters. |
| name | string | required | Display 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
| Field | Type | Description |
|---|---|---|
| message | string | Success message. |
| userId | string | UUID of the newly created user. |
json
{
"message": "Account created. Please check your email to verify your account.",
"userId": "usr_abc123"
}