πAuthentication
Login
apikey: your_api_key_here Content-Type: application/json{ "email": "[email protected]", "password": "your-password" }{ "success": true, "message": "Login successfully", "data": { "id": 1, "name": "John Smith", "role_id": 1, "phone": "", "email": "[email protected]", "location": "", "profile_image": "https://example.com/public/images/default/user.jpg", "token": "your_jwt_token_here" } }{ "message": "invalid_credentials", "errors": [], "code": 401 }{ "message": "required_field_missing", "errors": { "email": ["The email field is required."], "password": ["The password field is required."] }, "code": 422 }{ "success": false, "message": "API key missing", "data": [] }
Logout
Last updated