# Register a new user Register a new user account with email and password. Returns JWT tokens upon successful registration. Endpoint: POST /auth/register Version: 0.1.0 ## Request fields (application/json): - `emailAddress` (string, required) Valid email address Example: "founder@example.com" - `password` (string, required) Password must be at least 8 characters long Example: "strongpassword123" ## Response 201 fields (application/json): - `accessToken` (string, required) JWT access token (expires in 15 minutes) Example: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." - `refreshToken` (string, required) JWT refresh token (expires in 30 days) Example: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." ## Response 400 fields (application/json): - `error` (string, required) Error code Example: "VALIDATION_ERROR" - `message` (string, required) Human-readable error message Example: "Invalid email address or password format" - `details` (object) Additional error details (optional) - `requestId` (string) Unique request identifier for tracing (included in X-Request-ID header) Example: "550e8400-e29b-41d4-a716-446655440000" - `timestamp` (string, required) ISO 8601 timestamp when the error occurred Example: "2024-01-01T00:00:00Z" ## Response 409 fields (application/json): - `error` (string, required) Error code Example: "VALIDATION_ERROR" - `message` (string, required) Human-readable error message Example: "Invalid email address or password format" - `details` (object) Additional error details (optional) - `requestId` (string) Unique request identifier for tracing (included in X-Request-ID header) Example: "550e8400-e29b-41d4-a716-446655440000" - `timestamp` (string, required) ISO 8601 timestamp when the error occurred Example: "2024-01-01T00:00:00Z"