Skip to main content
Use llms.txt when you need a compact index of CometAPI documentation pages. Use llms-full.txt when your tool can ingest the full documentation text for retrieval, question answering, or coding assistance.

Fetch the compact index

The following request downloads the CometAPI llms.txt index:
curl https://apidoc.cometapi.com/llms.txt
The response starts with the documentation title and linked page list:
# CometAPI Documentation

> CometAPI developer documentation for unified API access...

## Docs

- [Create a new API key](https://apidoc.cometapi.com/api/api-keys/create-api-key.md)

Fetch the full text

The following request downloads the full text export:
curl https://apidoc.cometapi.com/llms-full.txt
The response contains page content grouped by source URL:
# Create a new API key
Source: https://apidoc.cometapi.com/api/api-keys/create-api-key

Create a new CometAPI API key for the authenticated account.

Add docs to a retrieval job

The following Python example downloads the full text and writes it to a local file for indexing:
from pathlib import Path

import requests

url = "https://apidoc.cometapi.com/llms-full.txt"
response = requests.get(url, timeout=60)
response.raise_for_status()

Path("cometapi-docs.txt").write_text(response.text, encoding="utf-8")
print(len(response.text))
The result is the number of characters saved. This is example output only; your value will differ whenever the documentation changes:
449946

Common errors

ErrorFix
Tool context is too smallUse llms.txt first, then fetch only the linked pages that matter.
Full text is too largeChunk llms-full.txt by heading or source URL before indexing.
Broken local cacheRefresh the file during your documentation sync job.
Missing page in AI resultsConfirm that the page appears in navigation and in llms.txt.
Last modified on May 28, 2026