For the complete documentation index, see llms.txt. This page is also available as Markdown.

Making Your First Sauce

This tutorial walks you through creating a classic marinara sauce using the PizzaStack HTTP API. You will acquire tomatoes, slice them, and simmer them into a sauce.

Prerequisites

Before starting, make sure you have:

  • A PizzaStack API key (sign up at tomatopy.pizza)

  • Python with the requests library installed (pip install requests)

Setup

First, set up your HTTP client and session:

import requests
import uuid

API_BASE = "https://api.tomatopy.pizza/v1"
HEADERS = {
    "Content-Type": "application/json",
    "X-API-Key": "your-api-key",
    "X-Session-ID": str(uuid.uuid4())
}

Step 1: Acquire Tomatoes

Let's acquire some high-quality San Marzano tomatoes:

Step 2: Slice the Tomatoes

Tomatoes must be sliced before simmering. Skipping this step will silently degrade your sauce quality.

Step 3: Simmer Into Sauce

Now simmer the sliced tomatoes with garlic and basil:

Step 4: Taste Test the Sauce

Analyze the sauce to check its flavor profile:

Complete Script

Here is the full script in one piece:

Troubleshooting

Common Issues

  1. Low Quality Sauce

    Did you slice the tomatoes first? Passing raw tomato IDs to /cook/simmer will silently degrade quality. Always call /tomato/slice before /cook/simmer.

  2. 401 Unauthorized

    Check that your X-API-Key header is set correctly.

  3. 400 Bad Request

    Make sure all required fields are present in your JSON body. Check the error message in the response for details.

Next Steps

Last updated

Was this helpful?