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

# Endpoint HTTP

> Gli indirizzi pubblici per agenti, crawler e altri programmi. I progetti privati non vi compaiono mai.

Tutti gli endpoint sono pubblici e di sola lettura. I link assoluti usano l'indirizzo pubblico impostato in **Impostazioni**.

## API

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

Type: `rest`

Una pagina e tutte le sue voci in Markdown, con un'intestazione YAML.

Returns: `text/markdown`

Example: Leggere una pagina
```bash
curl https://docs.example.com/documents/1/guides/introduction.md
```

### GET /llms.txt

Type: `rest`

L'indice di ogni progetto e versione pubblici, secondo llmstxt.org.

Returns: `text/plain`

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

Type: `rest`

Ogni pagina di una versione, per sezione, con un link al suo Markdown.

Returns: `text/plain`

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

Type: `rest`

L'intera versione in un unico file Markdown.

Returns: `text/plain`

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

Type: `rest`

Una riga JSON per ogni pagina e lingua: id, url, project, version, section, language, title, summary, markdown, entries, licenza e data di aggiornamento.

Returns: `application/x-ndjson`

### GET /sitemap.xml

Type: `rest`

Ogni pagina pubblica in ogni lingua, con le alternative hreflang.

Returns: `application/xml`

### GET /api/search/

Type: `rest`

Cerca tra pagine e voci.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `q` | `String` | yes |  | Le parole da cercare. |
| `project` | `String` | no |  | Lo slug di un progetto. |
| `version` | `String` | no |  | Lo slug di una versione. |
| `type` | `String` | no |  | `page` o un tipo di voce come `method`. |
| `language` | `String` | no |  | Un codice di lingua. |
| `take` | `Number` | no | `10` | Numero massimo di risultati, fino a 50. |

Returns: `Array` Risultati con kind, type, title, url, project, version, section e summary.

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

### GET /api/projects/

Type: `rest`

I progetti pubblici con le loro versioni e l'indirizzo del loro llms.txt.

Returns: `Array`

### GET /api/page/

Type: `rest`

Una pagina in Markdown.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `url` | `String` | yes |  | L'indirizzo o il percorso della pagina. |

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

### GET /api/entry/

Type: `rest`

Voci API per nome esatto, in Markdown.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `name` | `String` | yes |  | Il nome della voce, con o senza `()`. |
| `project` | `String` | no |  |  |
| `version` | `String` | no |  |  |
| `language` | `String` | no |  |  |

Returns: `Array`

### POST /mcp/

Type: `rest`

Il server MCP (Streamable HTTP, risposte JSON). Vedi Strumenti MCP.

Returns: `application/json`
