POST
/api/auth/register
Register new account
Creates a new user account with email, password, and optional verification code.
curl -s -X POST "$BASE/api/auth/register" \
-H "Content-Type: application/json" \
-d '{"email": "user@example.com", "password": "secret", "code": "123456"}'Request Body
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| string | Y | — | ||
| password | string | Y | — | |
| code | string | N | — | Email verification code (if required) |