Skip to content

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.

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.

Setup prompt for your AI assistant
You are helping me add Heimdal, a sign-up fraud API, to my application's sign-up flow. First read https://heimdal.codebrewerz.com/docs/llms-full.txt (or https://heimdal.codebrewerz.com/docs/llms.txt for the page index), then look at my codebase, find where accounts are created, and add a Heimdal check there.
Ground rules for Heimdal:
- API base URL: https://heimdal.codebrewerz.com/api. Endpoint: GET or POST /v1/check with `ip` and/or `email`.
- Authenticate with `Authorization: Bearer <key>`. Keys start with `hd_`. Read the key from the HEIMDAL_API_KEY environment variable; never hard-code it or send it to a browser.
- Call Heimdal from the server only, at sign-up, with a timeout of about 2 seconds. If it times out or answers 5xx, allow the sign-up (fail open) and log it.
- Errors are JSON: `{ "error": { "code", "message" } }`. 401 means a bad key, 402 no subscription, 429 rate limited.
- Full documentation: https://heimdal.codebrewerz.com/docs/llms-full.txt. OpenAPI spec: https://heimdal.codebrewerz.com/docs/openapi.json. Each docs page is also Markdown at its URL plus `.md`.
Block or flag the sign-up when the answer has `"block": true`, show the user a neutral message, and add a test that mocks the Heimdal response.

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.

File What it holds
/llms.txt The index: quick facts about the API, then every page as a Markdown link with its description.
/llms-full.txt All docs in one Markdown file.
/llms-small.txt All docs, abridged for small context windows.
<page>.md Any page as Markdown: /quickstart.md, /reference/check.md.
/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.

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

  • Read /llms.txt first, then only the pages the task needs.
  • Prefer the OpenAPI spec for field names and types; prefer the check reference 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 has a sensible starting policy.