llms.txt standard is like a sitemap for AI. It helps LLMs understand your documentation structure and find relevant content — similar to how sitemap.xml helps search engines.
These files (plus section-specific indexes under
/x-api/llms.txt, /enterprise-api/llms.txt, /x-ads-api/llms.txt, and the XDKs) are available at the root and under /.well-known/. Every documentation page supports the .md suffix for clean Markdown (example: https://docs.x.com/x-api/posts/get-post-by-id.md).
How to use it
Strongly recommended for agents: Start by reading AGENTS.md (or AGENT.md) for explicit usage guidance. Most AI tools accept URLs directly. Just provide the URL and the tool will fetch and parse the content:- Grok: Paste
https://docs.x.com/llms-full.txtinto the chat and ask questions about the X API - Cursor / Windsurf: Add
https://docs.x.com/llms-full.txtas documentation context for your project - Custom agents: Fetch the file programmatically and include it in your system prompt or context window