FoodGuard Mobile API
  1. Authentication
FoodGuard Mobile API
  • Authentication
    • User Login
      POST
    • User Logout
      POST
  • Lookups
    • Get All Branches
      GET
    • Get All Suppliers
      GET
  • Inspection
    • Lookup Batch by QR/Barcode
      GET
    • Initialize Inspection Batch
      POST
    • Upload Sample Image for AI Analysis
      POST
    • Finalize Batch Inspection
      POST
  • History
    • Get Inspection History
      GET
  • Inspector Dashboard
    • Get Home Screen Stats
      GET
  • Schemas
    • User
    • Branch
    • Supplier
    • BatchInitResponse
    • AISampleResult
    • ErrorResponse
    • ValidationErrorResponse
  1. Authentication

User Logout

POST
/auth/logout
Revokes the current access token

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Header Params

Responses

🟢200
application/json
Logout Successful
Body

Example
{
    "success": true,
    "message": "Successfully logged out.",
    "data": null
}
🟠401
Modified at 2025-12-18 11:09:19
Previous
User Login
Next
Get All Branches
Built with