Documentation for AI agents
This documentation is built to be read by people and by AI agents alike. Every page is generated as static HTML and plain Markdown — no JavaScript required to read it — and the formats below are published automatically on every build.
Which format to use
Section titled “Which format to use”| Format | Use it when… |
|---|---|
Per-page Markdown — e.g. /en/guides/integration-guide.md |
You want to hand a single page to an LLM, or paste it into a chat without the HTML noise. |
/llms.txt |
You want the agent to discover what the site contains first, then decide what to read. It is the index defined by the llmstxt.org standard. |
/llms-full.txt |
You want to load all of the guides into the context at once. |
/llms-small.txt |
Same thing, trimmed down for models with a small context window. |
| OpenAPI 3.0 | Your tooling speaks OpenAPI: this is the source of truth for the API reference (endpoints, schemas and authentication). Also available in Spanish. |
Markdown for every page
Section titled “Markdown for every page”Every guide page is also published as plain Markdown: just append .md to its path.
https://api-docs.legaldoc.io/en/guides/integration-guide.mdhttps://api-docs.legaldoc.io/guides/integration-guide.mdOn top of that, each guide has buttons to copy its Markdown to the clipboard, view it raw, or open that page straight in ChatGPT, Claude or Gemini with the context already loaded.
Pointing an agent at these docs
Section titled “Pointing an agent at these docs”For an assistant with internet access, the recommended entry point is llms.txt:
Read https://api-docs.legaldoc.io/llms.txt and then whichever documents you needfrom it to help me integrate the Legaldoc.io API.If it is going to generate code against the API, give it the OpenAPI specification directly:
Use https://api-docs.legaldoc.io/openapi/swagger-en.json as the reference for theLegaldoc.io API and help me implement the signing flow.Authentication
Section titled “Authentication”Any code an agent generates needs to authenticate. Every API request carries the API Key in the Authorization header, with no Bearer prefix:
Authorization: {API_KEY}Content-Type: application/jsonThe complete flow is documented in the Integration Guide.