🍕🔥 Pizza is great! 🔥🍕

Taste

Taste testing and analysis operations

Analyzes the flavor profile of a dish

post
Body
dish_idstringrequired
depthstring · enumoptionalAvailable options:
include_aromabooleanoptional
include_texturebooleanoptional
Responses
post
curl -L \
  --request POST \
  --url 'https://api.tomatopy.example.com/v1/taste/analyze' \
  --header 'Content-Type: application/json' \
  --data '{
    "dish_id": "text",
    "depth": "basic",
    "include_aroma": true,
    "include_texture": true
  }'
{
  "id": "text",
  "sweetness": 1,
  "acidity": 1,
  "umami": 1,
  "aroma": {
    "intensity": 1,
    "complexity": 1,
    "primary_notes": [
      {
        "name": "text",
        "intensity": 1
      }
    ],
    "secondary_notes": [
      {
        "name": "text",
        "intensity": 1
      }
    ],
    "tertiary_notes": [
      {
        "name": "text",
        "intensity": 1
      }
    ]
  },
  "texture": {
    "firmness": 1,
    "juiciness": 1,
    "mouthfeel": 1,
    "structural_integrity": 1
  }
}

Compares flavor profiles of multiple dishes

post
Body
dish_idsstring[]required
metricsstring · enum[]required

Responses
post
curl -L \
  --request POST \
  --url 'https://api.tomatopy.example.com/v1/taste/compare' \
  --header 'Content-Type: application/json' \
  --data '{
    "dish_ids": [
      "text"
    ],
    "metrics": [
      "sweetness"
    ]
  }'
{
  "comparison_id": "text",
  "rankings": {
    "ANY_ADDITIONAL_PROPERTY": [
      {
        "dish_id": "text",
        "score": 1
      }
    ]
  }
}

Was this helpful?