FoodGuard Mobile API
  1. Food Safety
FoodGuard Mobile API
  • Authentication
    • User Login
      POST
    • User Logout
      POST
  • Lookups
    • Branches
      • List
      • Show
    • Suppliers
      • List
      • Show
    • List Food Categories
      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
  • Food Safety
    • Submit Truck Inspection Data
      POST
    • Upload Sample Label Photo
      POST
    • Analyze Label Image (OCR)
      POST
  • Settings
    • Get Quality Thresholds
      GET
  • Schemas
    • User
    • Branch
    • Supplier
    • BatchInitResponse
    • AISampleResult
    • ErrorResponse
    • ValidationErrorResponse
    • TruckInspectionRequest
    • TruckInspectionResponse
    • Category
    • ThresholdSettings
  1. Food Safety

Upload Sample Label Photo

POST
/samples/{sample_id}/label-photo
Uploads a photo of the sample label for traceability and documentation purposes.

Request

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

Body Params multipart/form-dataRequired

Responses

🟢200
application/json
Label photo uploaded successfully
Body

Example
{
    "success": true,
    "data": {
        "sample_id": 123,
        "label_photo": "/storage/samples/labels/abc123.jpg",
        "uploaded_at": "2025-12-24T10:35:00Z"
    }
}
🟠404
🟠422
Modified at 2025-12-24 10:09:40
Previous
Submit Truck Inspection Data
Next
Analyze Label Image (OCR)
Built with