internal

Run Gemini search-grounding and persist (internal testing)

Requires elevated permissions. Triggers the default search-grounding. Provide either meal_photo_queue_id (full QueueLabelContext + trace) or patient_id (synthetic raw, no MPQ linkage).

post/internal/grounding/search_grounding

Request body

brandstring nullable
composite_food_idstring nullable
foodstring required
grounding_mode'cpg' | 'restaurant' | 'whole_food' required
is_composite_foodboolean
meal_photo_queue_idinteger nullable

When set, builds QueueLabelContext from this MPQ (same as pipeline).

patient_idinteger nullable

Required when meal_photo_queue_id is omitted; patient used for OpenAI context.

preparation_methodstring nullable

Stored on the synthetic raw (e.g. cpg, restaurant); defaults to grounding_mode.

Response

successful operation (grounded false if Gemini returned no parseable result)

groundedboolean required
grounding_request_idinteger nullable
messagestring nullable
search_grounding_resultobject nullable
user_provided_nutritionobject nullable

Changes

No recorded changes to this endpoint across all 1 revision of this API.