§
SYSTEM: ONLINE
← BACK TO MODULES
Authentication API
All stateful API endpoints (Users, Bookings) require authorization. Use this endpoint to exchange valid credentials for a Bearer token necessary to access the rest of the Matrix.
Base URL
http://localhost:3000/api/authPOST/api/auth/login
Authenticate test subject
Submit known valid credentials to receive an authorization token. Default administrator credentials are: admin / password123.
Request Payload (JSON)
{
"username": "admin",
"password": "password123"
} Expected Response 200 OK
{
"success": true,
"message": "Authentication successful",
"token": "autolab-bearer-token-123"
}