# API docs

> Publish an OpenAPI spec to Dockito as API docs: a fast viewer for people, and small, exact reads for your AI.

Publish an OpenAPI 3.0, 3.1 or 3.2 file (`.yaml`, `.yml` or `.json`) and it becomes OpenAPI docs: a three-panel viewer for people, reads sized for an AI, History that says what breaks, and checks. It's a doc like any other: a short link, a place in a project or Docs, [History](/help/concepts/history) and [sharing](/help/concepts/sharing).

## The viewer

- **The nav** lists the operations by tag (or by the path's first part when there are no tags), then webhooks and schemas. A click opens an operation; the link says which (`?op=createProject`), so you can send someone straight to it.
- **An operation** shows its method and path, parameters by place, the request body and each response as a tree, examples, and the call ready to copy in cURL, `fetch` or Python.
- **Search** (`⌘K`, or Ctrl+K) finds operations, schemas and fields by name. A field opens the schema or operation it's in, scrolled to it.
- **How this API works,** above the first group: how it authenticates, paginates, reports errors and limits rates, as the spec describes them.

The viewer loads only what the page shows: the API's outline first, then the operation you open. A 10 MB spec opens as fast as a small one.

## Try it and requests

API docs come in two types: **OpenAPI docs**, the spec first, and the **API Playground**, saved requests first, as in Postman. Each can hold the other's part, and keeps its type.

Every operation has [Try it](/help/api-docs/try-it): the call filled from the spec, ready to copy or save. Saved [requests](/help/api-docs/requests) live in the same doc, in folders, with [environments](/help/api-docs/environments), edited live with your team and kept in step with the spec. They [import and export](/help/api-docs/import-export) as Postman, Insomnia, Bruno and curl, and [your AI](/help/api-docs/for-ai) reads, edits and runs them too. The [runner](/help/api-docs/runner) sends a folder or the whole collection in order, from the desktop app or `dockito run`, and [monitors](/help/api-docs/monitors) run it on a schedule, on your Mac or in CI.

## Public links and View access

Anyone with the public link, and people with View or Comment access, read both parts: the reference and the saved requests, with the same **Reference | Requests** switch. A Playground opens on its requests, OpenAPI docs on the reference.

They see the folders, each request's method, URL, params, headers, body, auth type and scripts, and the environments by name. They never see:

- **Values of environments and variables:** names only, the value left empty.
- **Keys typed into a request:** auth secrets, and header, param or body values that hold a key (`Authorization`, `Cookie`, `X-API-Key`, `token`, `password`…) show as `••••••••`. A `{{variable}}` in their place shows as it is.

Dockito hides them before they leave its servers, so the page, AI reads and copies never get them. Viewers can't send anything, on the web or in the desktop app: no Send, Try it send, runner, monitors or Console. **Copy as** (cURL, `fetch`, Python) still works and gives the request with `{{variable}}` names and the masked values, for them to fill in.

Signed in, they can **Make a copy** from the doc bar, next to Copy link: the spec, requests, folders, scripts and environments become a new doc of their own, with no values and the keys still masked. Signed out, it asks them to sign in first, then makes the copy. Public links are never indexed by search engines; AI can read them, and `/{code}/requests.md` lists the requests the same way.

## Exports

From the doc bar's ⋯ menu, **Export**: a Postman collection (v2.1), JSON, YAML or Markdown. A public link offers `llms.txt`, and its Markdown pages are at `dockito.ai/{code}/llms.txt`, `/{code}/{group}.md`, `/{code}/schemas.md` and, when it has saved requests, `/{code}/requests.md` for any AI to read.

From the terminal, `dockito pull <doc>` gives the file as published, and `--as` an export, named after the doc:

```sh
dockito pull <doc> --as postman    # Bookings API.postman_collection.json
dockito pull <doc> --as yaml       # or json, md; llms for a public doc's llms.txt
```

Your AI asks with MCP `get` and `export`, and gets a download link rather than the file.

## Limits

| What | Limit |
|---|---|
| A spec file, or a zip of one | 10 MB |
| Files in a zip or a bundle | 500 |
| Operations | 3,000 |
| Schemas and other components | 5,000 |
| `edit_openapi` | 500 ops a call |

Swagger 2.0 isn't read yet: convert it to OpenAPI 3 first.
