Overview
The MKing Admin API uses JWT (JSON Web Token) authentication. All authenticated endpoints require a valid token in the Authorization header.Authentication Flow
- Call the
/loginendpoint with credentials - Receive a JWT token in the response
- Include the token in subsequent requests using the
Authorization: Bearer <token>header - Token is stored in localStorage and automatically attached by axios interceptors
Login
Request Body
User’s email address
User’s password
Response
JWT authentication token to be used in subsequent requests
Get Current User
Response
User’s unique identifier
User’s email address
User’s full name
Associated employee ID if applicable
User’s role with permissions