# Developer Documentation

The PizzaStack API is TomatoPy's core product. It lets you virtually acquire, prepare, cook, and assemble pizzas programmatically.

## Base URL

```
https://api.tomatopy.pizza/v1
```

## Pipeline

Making a pizza with the PizzaStack API follows a specific pipeline. Each step produces an object whose ID is used in the next step:

1. **Acquire** a tomato → returns a raw tomato object
2. **Slice** the tomato → returns a sliced object (required before cooking)
3. **Simmer** the sliced tomato into a sauce → returns a sauce object
4. **Create a base** → returns a pizza base object
5. **Assemble** the pizza from base + sauce + toppings → returns an assembled pizza object
6. **Bake** the assembled pizza → returns a baked pizza with quality metrics

Each step depends on the previous one. Skipping or misordering steps will not always return an error — instead, quality degrades silently. See [Quality Scoring](/docs/developer-documentation/quality-scoring.md) for details.

## Sections

* [Authentication](/docs/developer-documentation/authentication.md) — API key and session ID setup
* [Pipeline Overview](/docs/developer-documentation/pipeline-overview.md) — End-to-end flow with dependency diagram
* [Quality Scoring](/docs/developer-documentation/quality-scoring.md) — How the quality score is computed


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tomatopy.pizza/docs/developer-documentation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
