Skip to main content
POST
Analyze a meal photo

Authorizations

Authorization
string
header
default:Bearer sandbox_any_token_works
required

A 15-minute token bound to one patient and one enrollment, issued by POST /v1/oauth/token with the token-exchange grant. Treat it as opaque. When it expires, exchange a fresh assertion; there is no refresh token.

Path Parameters

upload_id
string<uuid>
required

From POST /v1/patient/meal-photos.

Response

The estimate.

The AI Coach's estimate from a meal photo, to pre-fill the logging form. Nothing is logged until the patient saves.

upload_id
string<uuid>
required
Example:

"8e2c4a60-1f3b-4d5e-9a7c-0b2d4f6a8c1e"

ingredients
object[]
required

Empty when no food was recognized.

totals
object
required
confidence
enum<string>
required

Show the estimate as a starting point when low.

Available options:
low,
medium,
high
Example:

"medium"

description
string | null
Example:

"Grilled chicken salad with quinoa"

meal_type
enum<string> | null

A guess from the photo and the time; the patient can change it.

Available options:
breakfast,
lunch,
dinner,
snack
Example:

"lunch"

note
string | null

Something the patient should check, for example a sauce the photo can't show.

Example:

"The dressing isn't visible; add it if you used one."