Cooking Operations
Simmering
POST /v1/cook/simmer
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"
}
# Simmer sliced tomatoes into sauce
response = requests.post(f"{API_BASE}/cook/simmer", headers=HEADERS, json={
"ingredients": [
{"id": "slc_def456", "name": "tomato", "amount": 400, "unit": "g"},
{"id": "generic", "name": "garlic", "amount": 3, "unit": "cloves"},
{"id": "generic", "name": "basil", "amount": 10, "unit": "leaves"}
],
"temperature": 100,
"duration": "30m"
})
sauce = response.json()
print(sauce["id"]) # "sce_jkl012"
print(sauce["sauce_quality"]) # "optimal"Request Body
Field
Type
Required
Description
Ingredient Object
Field
Type
Required
Description
Ingredient Requirements
Correct Flow: Slice First, Then Simmer
Incorrect Flow: Raw Tomato Directly to Simmer
Roasting
POST /v1/cook/roast
Request Body
Field
Type
Required
Description
Choosing Between Simmer and Roast
Aspect
Simmer
Roast
Error Handling
Best Practices
Endpoint Reference
Endpoint
Method
Description
Next Steps
Last updated
Was this helpful?