POST
/api/v1/auth/login
Login
Authentication: None
json
{
"email": "company@example.com",
"password": "password"
}
json
{
"success": true,
"data": {
"token": "eyJ0eXAiOiJKV1...",
"token_type": "bearer"
}
}
Authenticated requests
http
GET /api/v1/auth/me
Authorization: Bearer {token}
Refresh: POST /api/v1/auth/refresh-token. Logout: POST /api/v1/auth/logout. Token expiry: 1 month from issue.