Interested in joining a scientific study?Learn more

Core API

Decode Sensory API

Available

Decode Sensory adds a sensory layer to food understanding. It can describe taste, aroma, texture and whole-meal sensory impressions from the current supported fields.

POST/functions/v1/decode_sensory

Inputs

  • foodText, foodImage or foodVoice
  • sensoryOutput for the requested sensory view

Returns

  • Per-food sensory interpretation
  • Whole-meal sensory summaries
  • Structured sensory terms for product logic

Request JSON

{
  "foodText": "Tomato soup with basil and olive oil",
  "sensoryOutput": "per_food_and_whole_meal"
}

Response JSON

{
  "job_id": "49ad2c...",
  "status": "queued",
  "status_url": "https://tirqjzahcinadeulfylj.supabase.co/functions/v1/decode_sensory?job_id=49ad2c..."
}
curl -X POST 'https://tirqjzahcinadeulfylj.supabase.co/functions/v1/decode_sensory' \
  -H 'x-api-key: $MYMOLECULES_API_KEY' \
  -H 'Content-Type: application/json' \
  --data '{  "foodText": "Tomato soup with basil and olive oil",  "sensoryOutput": "per_food_and_whole_meal"}'