Taste Testing Module
Analyzing a Dish
POST /v1/taste/analyze
import requests
API_BASE = "https://api.tomatopy.pizza/v1"
HEADERS = {
"Content-Type": "application/json",
"X-API-Key": "your-api-key",
"X-Session-ID": "your-session-id"
}
# Basic analysis
response = requests.post(f"{API_BASE}/taste/analyze", headers=HEADERS, json={
"dish_id": "bkd_vwx234",
"depth": "basic"
})
profile = response.json()
print(f"Sweetness: {profile['sweetness']}") # 0.3
print(f"Acidity: {profile['acidity']}") # 0.7
print(f"Umami: {profile['umami']}") # 0.8Comprehensive Analysis
Request Body
Field
Type
Required
Description
Comparing Dishes
POST /v1/taste/compare
Request Body
Field
Type
Required
Description
Analyzing Different Stages
Error Handling
Best Practices
Endpoint Reference
Endpoint
Method
Description
Next Steps
Last updated
Was this helpful?