Skip to main content
POST
/
api
/
v1
/
scanner
/
analyze-batch
Analyze multiple cannabis product label images
curl --request POST \
  --url https://tiwih-api.vercel.app/api/v1/scanner/analyze-batch \
  --header 'Content-Type: application/json' \
  --data '
{
  "images": [
    {
      "imageBase64": "<string>",
      "imageUrl": "<string>",
      "label": "<string>"
    }
  ],
  "hints": {
    "expectedStrainName": "<string>",
    "productType": "flower"
  },
  "attribution": {
    "userAgent": "<string>",
    "screenWidth": 123,
    "screenHeight": 123,
    "timezone": "<string>",
    "language": "<string>",
    "referrer": "<string>",
    "utmSource": "<string>",
    "utmMedium": "<string>",
    "utmCampaign": "<string>",
    "sessionId": "<string>",
    "userId": "<string>"
  }
}
'

Body

application/json
images
object[]
required

Array of 1-4 images to analyze

Required array length: 1 - 4 elements
hints
object
attribution
object

Device/browser attribution for analytics (collected client-side)

Response

Batch label analysis result with merged data