authentication
Authentication

Login

Login with email and password.

TECH-663: Rate limited to 5 attempts per minute per IP to prevent brute force.

Args: http_request: FastAPI request for IP extraction request: Login credentials session: Database session

Returns: Login response with tokens

Raises: UnauthorizedError: If credentials are invalid ForbiddenError: If account is locked

post/api/v1/auth/login

Request

  • Base URL: http://localhost:8000
  • URL: http://localhost:8000/api/v1/auth/login
  • Auth: none declared

Request body

emailstring email required
passwordstring required

Response

Successful Response

access_tokenstring required
refresh_tokenstring required
token_typestring
user_idinteger required
emailstring required
rolestring required

Changes

No recorded changes to this operation across all 1 revision of this API.