---
title: HTTP endpoints
project: Documents
version: v1
section: reference
language: en
license: MIT
url: https://totaljs.es/docs/documents/1/reference/http-endpoints/
updated: 2026-11-20T06:51:57.969Z
---

# HTTP endpoints

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

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

## API

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

Type: `rest`

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

Returns: `text/markdown`

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

### GET /llms.txt

Type: `rest`

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

Returns: `text/plain`

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

Type: `rest`

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

Returns: `text/plain`

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

Type: `rest`

The whole version in one Markdown file.

Returns: `text/plain`

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

Type: `rest`

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`

### GET /sitemap.xml

Type: `rest`

Every public page in every language, with hreflang alternates.

Returns: `application/xml`

### GET /api/search/

Type: `rest`

Searches pages and entries.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `q` | `String` | yes |  | The words to search for. |
| `project` | `String` | no |  | A project slug. |
| `version` | `String` | no |  | A version slug. |
| `type` | `String` | no |  | `page` or an entry type such as `method`. |
| `language` | `String` | no |  | A language code. |
| `take` | `Number` | no | `10` | Maximum results, up to 50. |

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

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

### GET /api/projects/

Type: `rest`

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

Returns: `Array`

### GET /api/page/

Type: `rest`

A page as Markdown.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `url` | `String` | yes |  | The address or path of the page. |

Returns: `Object` `{ url, language, markdown }`

### GET /api/entry/

Type: `rest`

API entries by exact name, as Markdown.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `name` | `String` | yes |  | The entry name, with or without `()`. |
| `project` | `String` | no |  |  |
| `version` | `String` | no |  |  |
| `language` | `String` | no |  |  |

Returns: `Array`

### POST /mcp/

Type: `rest`

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

Returns: `application/json`
