Login Documentation

Endpoint

POST /api/login

Request Parameters

Parameter Type Description Required
username string The user's username Yes
password string The user's password Yes

Success Response 200

Property Type Description
access_token string The authentication token provided to access protected resources.
token_type string The type of the authentication token, typically Bearer.
user object An object containing the authenticated user's information, such as their ID, name, department, etc.

Standard Error Responses

Status Code Description
400 Invalid Data - The provided value is not found or invalid.
422 Unprocessable Content - Invalid or missing required field(s).
401 Unauthorized - Incorrect credentials provided.