# User Login **POST /api/v1/auth/login** Authenticate a user with email and password. Returns access token and refresh token for subsequent API calls. Supports all user roles (Student, Lecturer, Admin). ## Servers - Local server: http://localhost:3500 (Local server) - Production server: https://api.echoplain.social (Production server) ## Parameters ### Body: application/json (object) User login credentials - **email** (string) - **password** (string) ## Responses ### 201 Login successful. Returns access token and refresh token. #### Body: application/json (object) - **message** (string) - **access_token** (string) - **refresh_token** (string) ### 400 Invalid login credentials or validation errors ### 401 Invalid email or password ### 500 Internal server error during authentication [Powered by Bump.sh](https://bump.sh)