POST /scan/image
Create a scan job for image-based food analysis.
Request body
- Name
clientId- Type
- string
- Description
Identifies the tenant or customer.
- Name
contentType- Type
- string
- Description
MIME type of the image.
Example request
curl -X POST "https://api.macrofy.com/scan/image" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"clientId": "my-app", "contentType": "image/jpeg"}'
Example response
{
"jobId": "scan_abc123",
"uploadUrl": "https://storage.googleapis.com/..."
}
Next steps
- Upload image bytes to
uploadUrlvia PUT request - Poll
GET /scan/image/:jobIduntil status iscomplete