Skip to main content

Documentation Index

Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt

Use this file to discover all available pages before exploring further.

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 value changes when the documentation changes:
402899

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 updated: May 27, 2026