Register a new user account (and optionally auto-create their organization)
Register a new user account (and optionally auto-create their organization)
POST/api/v1/auth/register
Public Access
Request Body (JSON)
| Field | Type | Default | Description |
|---|---|---|---|
| firstName | stringrequired | — | Given first name. |
| lastName | stringrequired | — | Family surname. |
| stringrequired | — | Valid email address. | |
| password | stringrequired | — | Strong password string. |
| phone | stringoptional | — | Mobile phone number. |
Response Status Codes
| Status | Meaning | Description |
|---|---|---|
| 200 / 201 | Success / Created | Request fulfilled successfully with standard JSON envelope. |
| 422 Unprocessable | DTO Validation Error | Payload validation failed. Returns key `VALIDATION_FAILED` with field details in `details`. |
| 403 Forbidden | RBAC Role Violation | Authenticated user lacks required role or permission for this resource. |