# For coding agents

The docs are published as plain Markdown as well as HTML, so an AI coding assistant can read them without scraping.

## llms.txt

[`/docs/llms.txt`](/docs/llms.txt) is an index of every page: one line each, with a link to its Markdown version. Point your assistant at it first.

## A Markdown version of every page

Add `.md` to any docs URL:

| Page | Markdown |
| --- | --- |
| `/docs` | `/docs.md` |
| `/docs/quickstart` | `/docs/quickstart.md` |
| `/docs/webhooks/events` | `/docs/webhooks/events.md` |
| `/docs/api/customers/create-a-customer` | `/docs/api/customers/create-a-customer.md` |

Each page also has a Copy as Markdown button at the top.

In the Markdown version, a passage that describes behaviour not yet released is a quoted block that starts with **Not released yet.**

## The OpenAPI document

The API serves its own description at `/api/v1/openapi.json`, with no key needed. The API reference is generated from it.

## The response envelope

Every API response has an `_agent` block beside `data` or `error`: a one-line `summary`, a `status`, suggested `next_actions` and `warnings`. It is written for an agent calling the API. See [Errors](/docs/errors).

## Agent keys

Give an agent its own key, of type `agent` (`agk_test_…` or `agk_live_…`), with only the [scopes](/docs/api-keys/scopes) it needs. Start it on a test key.
