LLMs.txt in Apidog: How It Makes API Documentation AI-Friendly

Apidog now supports LLMs.txt and .md endpoints for published docs. Learn how this feature boosts AI compatibility, speeds up LLM interaction, and improves dev efficiency.

Oliver Kingsley

Oliver Kingsley

16 April 2025

LLMs.txt in Apidog: How It Makes API Documentation AI-Friendly

In today's AI-driven development landscape, having documentation that LLMs can easily process is essential. Recognizing this need, Apidog now supports LLMs.txt, transforming your shared/published API documentation into an AI-friendly format. This powerful feature enables AI tools to access clean, structured documentation content without the clutter of HTML and JavaScript that typically confuses AI systems.

Let's explore what this means for your development workflow and how you can leverage it immediately.

What is LLMs.txt and Why Apidog Supports LLMs.txt

When AI assistants process online web content, they often struggle to filter out what matters. Most web pages today are bloated with styles, scripts, and interactive elements that are useful for humans, but distracting for machines. These redundant scripts waste tokens, reduce response speed, and increase costs in AI workflows.

LLMs.txt is a new standard proposed in 2024, designed to solve this. Similar to sitemap.xml for search engines, llms.txt is a roadmap for LLMs. It includes links to every Markdown (.md) version of your documentation pages, allowing AI to skip unnecessary content and focus on what really matters.

Why Apidog’s Support for LLMs.txt Matters

Apidog goes a step further by automatically:

This means your documentation is instantly ready for AI consumption—with no extra configuration required.

Key Features of Apidog’s LLMs.txt for AI-Friendly API Documentation

Key Features of Apidog’s LLMs.txt

Apidog's support for LLMs.txt represents a fundamental improvement in how your API documentation interacts with AI systems:

Seamless Markdown Access

Every shared/published documentation page now has a dedicated .md version:

Site-Level LLMs.txt Generation

The API Documentation published by Apidog will now include a /llms.txt file baked.

No Setup Required

Aligned with SEO and AI Standards

Feature LLMs.txt Sitemap.xml Robots.txt
AI Readability ✅ Yes ❌ No ❌ No
SEO Optimization ✅ Yes ✅ Yes ✅ Yes
Auto-Generated ✅ By Apidog ✅ By Apidog ✅ By Apidog

This stack makes your documentation site fully optimized for both AI tools and traditional search engines.


How to Use Apidog’s LLMs.txt Feature

Whether you're working with ChatGPT, Claude, Cursor, or any custom LLM interface, integrating your Apidog documentation into an AI workflow is now easier than ever.

Method 1: Directly Share Markdown URLs

For AIs that support web browsing:

“Read the API spec at https://apidogsite.com/api-doc.md and generate a TypeScript SDK.”

Method 2: Copy and Paste Markdown into AI

For AI tools without web browsing ability:

“Based on the following API spec, write the request and response handling in Python.”
[Paste Markdown content here]
💡
PRO TIP: Want to supercharge your AI integration? Pair LLMs.txt with the Apidog MCP Server!

While LLMs.txt makes your API documentation easier for AI tools to read, Apidog MCP Server goes a step further. It gives AI assistants direct access to your API specifications—so they can understand your API’s full structure, generate accurate code, and assist more intelligently.

No need to copy and paste documentation manually. It’s a seamless way to build smarter, AI-powered development workflows.
button

FAQs About Apidog’s Support for LLMs.txt

Q1: How to disable the LLMs.txt feature?

If you want to disable this feature, you can enter the project, click Share Docs -> Publish Docs Sites -> LLM-friendly Features to perform the relevant operations.

Q2: Will enabling LLMs.txt affect the security of the documentation?

No, LLMs.txt does not expose any private or unpublished information.
It only includes content from API documentation that has already been publicly published. The LLMs.txt feature simply provides a Markdown version of the existing HTML pages — there’s no change to what is visible.

If your published documentation is protected (e.g., by password, IP allowlist, or email allowlist), those same authentication requirements still apply when someone tries to access the .md version or the LLMs.txt file.

Q3: If my online documentation is protected with a password, IP allowlist, or email allowlist, can I still use the LLMs.txt feature?

Yes, you can still use it.

However, because the LLMs.txt file and Markdown (.md) versions of your docs follow the same access controls, authentication is still required. This means that AI assistants won’t be able to fetch those .md files directly via URL unless they have access.

To work around this, you (or users with access) can use the "Copy page" feature to easily copy the Markdown content and then paste it into the AI tool of your choice.

Q4: Why don’t I see the "Copy page" and other buttons in the Apidog app?

The Copy page button and related features are only available in shared or published online documentation.

To access these features, you’ll need to publish your documentation first and then view it in a web browser—not within the Apidog desktop app.

Q5: I’ve enabled the AI assistant’s "Search" feature — why can’t it read webpage content directly from URLs?

The "Search" feature is not the same as "Web Browsing".

Q6: What should I do if the AI can’t access Markdown files through URLs?

If the AI fails to read the .md file directly from the URL, you can simply use the "Copy page" button on the online documentation. This lets you copy the full Markdown content manually and paste it into the AI assistant for further use.

Q7: After enabling LLMs.txt, is there anything else I need to do?

No additional work is required. Once you enable the LLMs.txt feature, the system will automatically generate the LLMs.txt file and a corresponding Markdown (.md) version for each documentation page. You only need to continue updating and maintaining your original documentation as usual.

Q8: How can I check if LLMs.txt is working correctly?

You can verify this by visiting the /llms.txt path at the root of your published documentation site. If the page displays a structured list of your documentation links, it means the feature is successfully enabled and working as expected.

Q9: How does LLMs.txt handle complex or deeply nested schema references?

Apidog uses intelligent recursive descent parsing to handle this. It automatically expands multi-level nested references in your schemas, while keeping the documentation well-structured and easy to read for AI. This ensures that even complex schemas are clearly presented and accessible for both humans and AI tools.

Conclusion: Transforming API Documentation for the AI Era

Apidog's implementation of LLMs.txt represents a significant advancement in making API documentation truly AI-ready. By automatically providing clean Markdown exports and comprehensive indexing, Apidog bridges the gap between human-readable documentation and machine-optimized content.

This isn't just a technical improvement—it's a transformation in how development teams can leverage AI throughout their workflow:

With Apidog's LLMs.txt support, your API documentation becomes a powerful asset for both human developers and AI assistants—working together to build better software faster.

Start using these features today: share Markdown links with AI tools, copy documentation content directly into AI conversations, and experience a new level of efficiency in your development process.

button

Explore more

Apidog SEO Settings Explained: Maximize Your API Docs Visibility

Apidog SEO Settings Explained: Maximize Your API Docs Visibility

Discover how to supercharge your API documentation's visibility with Apidog's powerful SEO features. This comprehensive guide covers everything from page-level optimizations like custom URLs and meta tags to site-wide settings such as sitemaps and robots.txt.

18 June 2025

How to Protect API Specification from Unauthorized Users with Apidog

How to Protect API Specification from Unauthorized Users with Apidog

Learn how Apidog empowers you to protect API specification from unauthorized users. Explore advanced API documentation security, access controls, and sharing options for secure API development.

17 June 2025

How to Use the PostHog MCP Server?

How to Use the PostHog MCP Server?

Discover how to use the PostHog MCP server with this in-depth technical guide. Learn to install, configure, and optimize the server for seamless PostHog analytics integration using natural language. Includes practical use cases and troubleshooting.

16 June 2025

Practice API Design-first in Apidog

Discover an easier way to build and use APIs