Generate Developer PortalsAI Capabilities

The llms.txt Files

Every APIMatic developer portal publishes llms.txt and llms-full.txt so AI tools can read your documentation.

llms.txt is a standard way for a website to describe itself to AI tools. Every APIMatic developer portal publishes two of these files automatically, alongside sitemap.xml. There's nothing to configure.

The files

FileWhat it contains
/llms.txtA list of every page in the portal, grouped the way the sidebar is (your guides, SDKs, and API Reference). Each entry has the page title, a link, and its one-line description.
/llms-full.txtThe full text of every page in one file, including guides, API reference pages, and code samples.

Both files are rebuilt every time you run apimatic portal generate, so they always match the portal. The descriptions in llms.txt come from the description in each page's front matter, so keep those short and specific.

Where they're served

The files are served from the root of the portal:

https://docs.example.com/llms.txt
https://docs.example.com/llms-full.txt

If you host the portal under a path, set the full address in portal.site.url and the files are served under that path, for example https://example.com/docs/llms.txt.

Check them

  1. Generate the portal with apimatic portal generate and deploy it.
  2. Open /llms.txt and /llms-full.txt on the portal's address.
  3. Point an AI assistant at either file and ask it a question about your API.

On this page