Spanish Total.js
English
Documentation For AI agents
Contents

HTTP endpoints

The public addresses for agents, crawlers and other programs. Private projects never appear in them.

.md
On this page

All the endpoints are public and read-only. Absolute links use the public address set in Settings.

API

rest

GET /{project}/{version}/{section}/{page}.md

A page and all its entries as Markdown, with a YAML header.

Returns text/markdown

Read a page
curl https://docs.example.com/documents/1/guides/introduction.md
rest

GET /llms.txt

The index of every public project and version, following llmstxt.org.

Returns text/plain

rest

GET /{project}/{version}/llms.txt

Every page of a version, by section, with a link to its Markdown.

Returns text/plain

rest

GET /{project}/{version}/llms-full.txt

The whole version in one Markdown file.

Returns text/plain

rest

GET /{project}/{version}/dataset.jsonl

One JSON line per page and language: id, url, project, version, section, language, title, summary, markdown, entries, license and update date.

Returns application/x-ndjson

rest

GET /sitemap.xml

Every public page in every language, with hreflang alternates.

Returns application/xml

rest

GET /api/search/

Searches pages and entries.
ParameterTypeDescription
q String The words to search for.
project? String A project slug.
version? String A version slug.
type? String page or an entry type such as method.
language? String A language code.
take? Number Maximum results, up to 50. Default: 10

Returns Array Results with kind, type, title, url, project, version, section and summary.

Search
curl "https://docs.example.com/api/search/?q=versions&project=documents"
rest

GET /api/projects/

The public projects with their versions and the address of their llms.txt.

Returns Array

rest

GET /api/page/

A page as Markdown.
ParameterTypeDescription
url String The address or path of the page.

Returns Object { url, language, markdown }

rest

GET /api/entry/

API entries by exact name, as Markdown.
ParameterTypeDescription
name String The entry name, with or without ().
project? String
version? String
language? String

Returns Array

rest

POST /mcp/

The MCP server (Streamable HTTP, JSON answers). See MCP tools.

Returns application/json

Made in Europe