For the complete documentation index, see llms.txt. This page is also available as Markdown.
Perfect Pizza Production
This tutorial walks you through the complete PizzaStack pipeline: from acquiring tomatoes to baking and tasting a finished pizza. By the end, you will have a full working Python script.
import requestsimport uuidAPI_BASE="https://api.tomatopy.pizza/v1"HEADERS={"Content-Type":"application/json","X-API-Key":"your-api-key","X-Session-ID":str(uuid.uuid4())}defapi_post(endpoint,payload):"""Helper to make API calls and check for errors.""" response = requests.post(f"{API_BASE}{endpoint}",headers=HEADERS,json=payload) response.raise_for_status()return response.json()
Step 1: Acquire Tomatoes
Step 2: Slice the Tomatoes
Slicing is essential. Raw tomato IDs passed directly to /cook/simmer will silently produce low-quality sauce.
Step 3: Simmer Into Sauce
Step 4: Create the Pizza Base
Step 5: Assemble the Pizza
Assembly is required before baking. The /pizza/bake endpoint only accepts pizza_id values from /pizza/assemble -- passing a base_id directly will return a 400 error.
Step 6: Bake the Pizza
Step 7: Taste Test
Complete Working Script
Troubleshooting
Common Issues
Low Quality Score
Check that you sliced tomatoes before simmering. Raw tomato IDs silently degrade sauce quality, which cascades to the final pizza score.
400 Error on /pizza/bake
You must call /pizza/assemble first. The bake endpoint requires a pizza_id from assembly, not a base_id.
Objects Not Found
Make sure all requests use the same X-Session-ID. Objects from one session cannot be referenced in another.