# For AI agents

> Markdown pages, llms.txt and OpenAPI documents for coding agents and LLM tools.

Every page here is published twice from the same source: as HTML for people and as Markdown for agents.

| What | Where |
| --- | --- |
| Index of every page | [/llms.txt](https://docs.remi.robot.com/llms.txt) |
| Every page in one file | [/llms-full.txt](https://docs.remi.robot.com/llms-full.txt) |
| One page as Markdown | Add `.md` to its URL, like [/delivery/webhooks.md](https://docs.remi.robot.com/delivery/webhooks.md) |
| OpenAPI 3.1 | [Delivery](https://docs.remi.robot.com/openapi/delivery.json), [Fleet](https://docs.remi.robot.com/openapi/fleet.json), [Fleet partner](https://docs.remi.robot.com/openapi/fleet-partner.json), [Engine](https://docs.remi.robot.com/openapi/engine.json) |

The OpenAPI documents are generated from the code that serves each API, and a test fails when the two disagree. They are the most exact source:

- Every operation lists its error codes in `x-error-codes` and its key scope in `x-scope`.
- Every operation has an `operationId`, which is also its anchor in the references (`/delivery/reference#createDelivery`).

## Give your agent the docs

- Give it the `llms.txt` URL and let it fetch the pages it needs.
- Or press **Copy page** at the top of a page and paste it in the chat.
- To generate a client, point your tool at an OpenAPI document.

## A prompt to start from

```text
You are integrating with REMI (https://docs.remi.robot.com).
Read https://docs.remi.robot.com/llms.txt, then only the pages you need.
For exact request and response shapes use the OpenAPI document of the API,
for example https://docs.remi.robot.com/openapi/delivery.json.
The API key is in the REMI_API_KEY environment variable. Never print it.
Branch on the HTTP status and the problem `code`, never on `detail`.
```
