> ## Documentation Index
> Fetch the complete documentation index at: https://docs.specpilot.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# api.yaml

> Your API as OpenAPI 3.0, written only for projects that have an API.

`.specs/architecture/api.yaml`. `specpilot validate` doesn't require it. Setup writes it unless your API answer is None.

## What it holds

An OpenAPI 3.0 file for a REST API, with `info`, `servers` and `paths`, or the GraphQL or CLI equivalent. SpecPilot's own fields are `x-project`, `x-version` and `x-lastUpdated`, in OpenAPI's extension form.

## What setup writes

A placeholder `/example` path and a `[TODO]` description.

## What validate checks

* The file must parse. Errors give the line.
* An OpenAPI file needs `info.title`, `info.version` and `paths`.
* Each `{name}` in a path needs a matching path parameter.
* A root key that is neither OpenAPI nor `x-` is a warning, which `specpilot validate --fix` renames.

Checked against SpecPilot 2.22.0.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.