Pizza Creation System
Creating a Base
POST /v1/pizza/base
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"
}
# Create a Neapolitan-style base
response = requests.post(f"{API_BASE}/pizza/base", headers=HEADERS, json={
"thickness": "medium",
"size": "12inch",
"style": "neapolitan",
"hydration": 0.65
})
base = response.json()
print(base["id"]) # "bas_pqr678"
print(base["style"]) # "neapolitan"
print(base["thickness"]) # "medium"Request Body
Field
Type
Required
Description
Different Base Styles
Assembling a Pizza
POST /v1/pizza/assemble
Request Body
Field
Type
Required
Description
Assembly Required
Correct Flow: Assemble Then Bake
Incorrect Flow: Baking Without Assembly
Baking a Pizza
POST /v1/pizza/bake
Request Body
Field
Type
Required
Description
The Full Assembly Flow
Error Handling
Best Practices
Endpoint Reference
Endpoint
Method
Description
Next Steps
Last updated
Was this helpful?