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

# OpenAPI Spec

> Machine-readable schema for every Rewind endpoint

The full Rewind API is published as an [OpenAPI 3.1](https://spec.openapis.org/oas/v3.1.0) document -- the same schema that powers this site's [API Reference](/api-reference) tab, with every path, parameter, response, and example.

## Fetch the spec

No auth required:

```bash theme={null}
curl https://api.rewind.rest/v1/openapi.json
```

The shorter `https://api.rewind.rest/openapi.json` 301-redirects to the canonical `/v1/openapi.json` for tools that don't follow redirects.

## What it's for

* **Generate clients.** Run [`openapi-generator`](https://openapi-generator.tech/) or your stack's preferred codegen against the URL to produce a typed SDK in any language.
* **Drive agents.** Tools that consume OpenAPI -- function-calling LLMs, agent frameworks -- can ingest the spec and call any endpoint.
* **Import into Postman / Insomnia / Bruno.** Use the URL as the import source; every endpoint and example is pre-loaded.
* **Inspect contracts.** Browse the raw spec to see exact response shapes without clicking through the reference.
