# Docs for AI agents

> Every page as Markdown, llms.txt, an OpenAPI spec and ready prompts, so an AI assistant or coding agent can integrate Heimdal from the source rather than from memory.

These docs are written for people and for agents. Everything a person reads here, an agent can fetch as plain text, with no JavaScript and no sign-in.

## Hand the integration to an assistant

Paste this into ChatGPT, Claude, Cursor, Copilot or any coding agent that can read URLs. It points the agent at the full docs and states the rules that matter most: keep the key on the server, set a timeout, fail open.

<AgentPrompt />

On every docs page, **Copy LLM prompt** (under the title) copies that page in the same frame, ready for you to add your task at the end. **Copy as Markdown** copies the page alone.

## Machine-readable files

| File                                 | What it holds                                                                                           |
| ------------------------------------ | ------------------------------------------------------------------------------------------------------- |
| [`/llms.txt`](https://heimdal.codebrewerz.com/docs/llms.txt)             | The index: quick facts about the API, then every page as a Markdown link with its description.          |
| [`/llms-full.txt`](https://heimdal.codebrewerz.com/docs/llms-full.txt)   | All docs in one Markdown file.                                                                          |
| [`/llms-small.txt`](https://heimdal.codebrewerz.com/docs/llms-small.txt) | All docs, abridged for small context windows.                                                           |
| `<page>.md`                          | Any page as Markdown: [`/quickstart.md`](https://heimdal.codebrewerz.com/docs/quickstart.md), [`/reference/check.md`](https://heimdal.codebrewerz.com/docs/reference/check.md). |
| [`/openapi.json`](https://heimdal.codebrewerz.com/docs/openapi.json)     | OpenAPI 3.1 for `GET` and `POST /v1/check`, with every field, error and header.                         |

Each HTML page also names its Markdown copy in a `<link rel="alternate" type="text/markdown">` tag, and the files are served with `Access-Control-Allow-Origin: *`, so tools running in a browser can read them too.

## Crawlers

`robots.txt` allows every crawler, AI crawlers by name included (GPTBot, ClaudeBot, PerplexityBot and others). The docs hold nothing private.

## Tips for agents

- Read [`/llms.txt`](https://heimdal.codebrewerz.com/docs/llms.txt) first, then only the pages the task needs.
- Prefer the [OpenAPI spec](https://heimdal.codebrewerz.com/docs/openapi.json) for field names and types; prefer the [check reference](https://heimdal.codebrewerz.com/docs/reference/check/) for what the fields mean.
- Call the API from server code only. A key in a browser bundle or a mobile app is a leaked key.
- Treat `block` as a recommendation. [Best practices](https://heimdal.codebrewerz.com/docs/guides/best-practices/) has a sensible starting policy.
