# Login User Authenticate with email and password. **Endpoint**: `POST /api/auth/login` **Auth**: Not required **Content-Type**: `application/json` ## Request Body | Field | Type | Required | Description | |--------|------|-----------|-------------| | email | string | Yes | User's email address | | password | string | Yes | User's password | ### Example Request ```json { "email": "user@example.com", "password": "SecureP@ss123!" } ``` ## Response (200 OK) ```json { "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "refresh_token": "d4f5g6h7...", "user": { "id": "uuid-here", "email": "user@example.com", "username": "john", "role": "user" } } ``` ## Error Responses | Code | Description | |------|-------------| | 401 | Invalid email or password | | 400 | Missing required fields |