> For the complete documentation index, see [llms.txt](https://tomatopy.pizza/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tomatopy.pizza/docs/developer-documentation.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
