LLMtxt
API Reference

Interactive API Spec

OpenAPI 3.2 spec and interactive Swagger UI for the LLMtxt API

LLMtxt API — Interactive Spec

The full OpenAPI 3.2 specification is available for import into Swagger UI, Postman, or any OpenAPI-compatible tooling.

Interactive Swagger UI

The live Swagger UI is served directly from the API at:

https://api.llmtxt.my/api/docs

You can try every endpoint, inspect request/response schemas, and authenticate inline.

Download / Import

FormatURL
OpenAPI 3.2 JSON/api/openapi.json
Postman CollectionAvailable in the GitHub repo

Import into Postman

  1. Open Postman
  2. Click Import → Link
  3. Paste: https://api.llmtxt.my/api/openapi.json
  4. Select OpenAPI 3.0 and click Import

Import into Swagger UI (self-hosted)

https://api.llmtxt.my/api/openapi.json

Spec Generation

The spec is auto-generated from TSDoc @route annotations in apps/backend/src/openapi-manifest.ts using forge-ts.

To regenerate locally:

pnpm --filter backend run openapi:gen

The CI pipeline (openapi-drift job) fails if openapi.json is committed out of sync with the route manifest, enforcing spec freshness on every merge.

Route Summary

The spec covers 68 routes across these categories:

CategoryRoutes
Core Documentscompress, decompress, validate, search, schemas
Versions & Diffversions, diff, multi-diff, batch-versions
Lifecycletransition, approve, reject, contributors
CRDT Collaborationcrdt-state, crdt-update, WebSocket collab
Presenceactive agents per document
Section Leasesexclusive write locks
Scratchpadagent working memory
BFT Consensusvote, status, chain
A2A Messagingagent inbox send/receive
Document Eventsevent log, SSE stream
Agent KeysEd25519 key registration
API Keyscreate, list, rotate, delete
Cross-Documentlinks, graph, semantic search
Access Controlroles, visibility
Organizationsmembers, documents
Health / Metricsliveness, readiness, Prometheus
Webhooksregister, list, delete

See the API Reference for hand-written documentation with examples.

On this page