FoodGuard Mobile API
  1. Authentication
FoodGuard Mobile API
  • Authentication
    • User Login
      POST
    • User Logout
      POST
  • Lookups
    • Branches
      • List
      • Show
    • Suppliers
      • List
      • Show
    • List Food Categories
      GET
  • Batch Management
    • List Batches
      GET
    • Create Batch
      POST
    • Get Batch Details
      GET
  • Phase 1: Truck Inspection
    • Submit Truck Inspection
      POST
  • Phase 2: Label Analysis
    • Analyze Label (OCR)
      POST
  • Phase 3: Sample Evaluation
    • List Batch Samples
      GET
    • Add Sample to Batch
      POST
  • Phase 4: Finalize
    • Finalize Batch Inspection
      POST
  • Dashboard & History
    • Get Dashboard Stats
      GET
    • Get Inspection History
      GET
  • Settings
    • Get Quality Thresholds
      GET
  1. Authentication

User Login

POST
/auth/login
Authenticate user and receive an access token.

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Body Params multipart/form-dataRequired

Responses

🟢200
application/json
Login Successful
Body

Example
{
    "success": true,
    "message": "string",
    "data": {}
}
🟠401
🟠422
Modified at 2025-12-31 16:41:54
Next
User Logout
Built with