
# LLM Access

Every docs page is also served as raw Markdown, for AI agents and LLMs.

| URL | Returns |
|---|---|
| `GET /llms.txt` | An index of every page, linking its Markdown version |
| `GET /docs/md/sitemap` | The same index, as Markdown |
| `GET /docs/md/{path}` | One page as Markdown, e.g. `/docs/md/api/endpoints/records/set-values` |

Markdown pages are served as `text/markdown`, need no API key, and contain no HTML or components.

## Example

```bash
# Find the pages
curl -X GET "https://mdm.finopsbricks.com/llms.txt"

# Read one
curl -X GET "https://mdm.finopsbricks.com/docs/md/api/endpoints/records/set-values"
```

Each HTML docs page also links its Markdown version at the bottom, and declares it as `<link rel="alternate" type="text/markdown">`.

## For agents that run commands

An agent with a shell can use [`fob-mdm`](/docs/cli) instead of composing requests. Run `fob-mdm getting-started` for the setup steps, add `--json` to any command for the API's JSON, and `--help` at any level for the options. Deletes need `--yes` when there's no terminal to ask on.
