FoodGuard Mobile API
  1. Inspection
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. Inspection

Upload Sample Image for AI Analysis

Pending
POST
/batches/{batch_id}/upload

Request

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

Body Params multipart/form-dataRequired

Responses

🟢200
application/json
Image Analyzed Successfully
Body

Example
{
    "success": true,
    "data": {
        "sample_id": 5541,
        "image_url": "https://storage.foodguard.dev/samples/img_123.jpg",
        "ai_analysis": {
            "score": 85,
            "status": "passed",
            "confidence": 98.5,
            "detected_issues": [
                "Minor discoloration",
                "Size variance"
            ]
        }
    }
}
Modified at 2025-12-18 11:12:11
Previous
Initialize Inspection Batch
Next
Finalize Batch Inspection
Built with