Cursor Keys, Enhanced

Artificial intelligence (AI) coding assistants have transformed how modern developers build software, so tech companies now face a critical challenge: Traditional API documentation can fail to reach its intended audience because a coding agent sits between the docs and coder. If information and know-how doesn’t flow seamlessly through this new pipeline, everything slows down. To solve this, documentation leaders must upgrade their API portals for machine retrieval, enabling AI tools to seamlessly navigate endpoints and code samples so developers reach their Time to First Hello World faster, ship better products more quickly, and maximize developer adoption and success.

We recently discussed how AI is impacting the way that software developers use (or don’t use) the documentation that software vendors provide with their products. In the Riding the Wave: How Vibe Coding Impacts Developer Documentation we noted: 

Developers are increasingly getting technical support from their AI tools instead of turning to the formal documentation. Those extensive documentation suites that your team spent weeks, months, and years creating and disseminating are no longer reaching your intended audience of software developers. 

More and more, documentation creators must work through an AI middleman (middle-bot?) to reach and inform their ultimate target audiences: The human software engineers and architects who still make the coding decisions and direct the AI assistants that support them. 

As technical communicator Tom Johnson notes in I’d Rather Be Writing, this shift means technical writers must rethink documentation not just for human comprehension, but as structured data inputs that AI models can parse, chunk, and serve directly to developers through their tools. They need to structure documents so AI assistants can easily retrieve information and apply it to the task. At the same time, human programmers need human-readable documentation to understand design tradeoffs, troubleshoot problems, and ensure the generated code is working as intended. 

Fortunately, there are four practical ways that can help you take advantage of this new communication challenge. 

Understand the Expanded AI Toolbox 

Before we get into the essentials, you need to know what AI tools do for software developers. An AI assistant is simply a software tool powered by AI, typically trained on vast repositories of code and natural language, with which a developer collaborates inside an integrated development environment (IDE) or through a command-line interface. Instead of writing code directly, programmers (who function more as orchestrators and architects) write the prompts that direct the AI assistant, and the AI writes the code. 

The term AI assistant covers a wide range of AI-powered tools including code completion, code search, code review, test generation, refactoring, and the generation of entire applications and APIs. 

If you’re working on documentation for software developers, you need to be intimately familiar with all of this. And while it can seem intimidating, it’s just software. Download. Use. Try. Ask an AI-coding assistant to create an app for you. Don’t be surprised when you quickly grasp these new tools. 

After you understand this landscape, you can begin to apply the tips below. 

Tip 1: Structure OpenAPI Specifications for Machine Retrieval

AI assistants digest technical reference materials differently than human engineers. While humans scan pages for context and high-level concepts, retrieval-augmented models process documentation in discrete chunks. Unclear schemas or missing field types force AI assistants to guess parameter formats, and that can lead to broken API calls. Humans can often read between the lines based on their own experience to overcome these inconsistencies. While AI tools are getting better at filling in the gaps, asking them to do so can consume tokens faster than you might expect. 

You can eliminate many AI errors by using an API catalog. An API catalog is a structured list of the APIs your company offers. For example, this should include what endpoints exist, what they do, what parameters they accept, what they return, and how to authenticate. Here are three best practices to follow in creating your API catalog: 

  • Use complete definitions: Define every parameter, request body, and response with complete schemas, including explicit data types, required fields, enumerated values, and realistic examples, so AI assistants never have to guess about order or format. Your examples should use native tool definitions, not just text references.
  • Add an llms.txt file: An llms.txt file is a plain-text Markdown file placed at the website’s root URL to help AI assistants understand the site and find its most useful content (learn more here). Including this file is becoming a standard practice. 
  • Expose your API catalog using an MCP server: Model Context Protocol (MCP) is an open standard used in API developer portals and documentation. The MCP bridges the gap between static documentation and AI execution by exposing API catalogs as native tool definitions rather than just text references. Think of it as a common way for AI applications such as Claude, ChatGPT, and coding assistants to connect to tools, databases, and APIs. You can build your own MCP server or use a hosted MCP server. 

Tip 2: Automate Context-Rich Code Samples to Accelerate Onboarding

Autonomous AI agents rely heavily on concrete code examples to build code that works right away. When an API portal offers only generic client URL (curl) commands or incomplete code snippets, AI assistants can struggle to synthesize language-specific SDK implementations. 

You can address this gap by generating complete, functional code examples across multiple programming languages. These automated samples should include complete initialization routines, explicit payload definitions, and realistic error-handling logic. By embedding rich context directly into endpoint references, API portals give LLM retrieval tools concrete examples that guide their information parsing. When AI assistants can effectively access your documentation, developers can complete first-time onboarding tasks much faster, dramatically lowering trial friction. You can use AI coding tools to help create, and test, these examples in multiple languages, too! 

Tip 3: Streamline Authentication Workflows to Avoid Integration Problems

Complex authentication mechanisms present hurdles for both human developers and autonomous agents. OAuth 2.0 flows, token refresh cycles, and header formats frequently suffer from vague explanations or fragmented documentation. When an AI assistant encounters inconsistent authentication instructions, it produces incorrect authentication code, and requests fail to connect to backend services. When authentication breaks down, the entire automated workflow halts. You can avoid many of these complications with these practices:

  • Document a local mock-auth setup so agents can follow a working path. That way, developers are not forced to connect to live identity servers for local development.
  • Automate secret rotation, and inject credentials dynamically using environment variables. Use secret management tools such as AWS Secrets Manager, Google Cloud Secret Manager, Azure Key Vault, and HashiCorp Vault to securely store, access, rotate, and audit sensitive credentials such as API keys, database passwords, cryptographic keys, OAuth tokens, and certificates. 

Tip 4: Make Sure Governance Is in Place for Seamless AI-Assisted Coding

Governing your technical information is a critical overall issue that affects AI-assisted coding and much more. Maintaining high-quality API portals requires continuous oversight and structured content governance. As companies release new features and update endpoints, outdated documentation can quickly corrupt AI-dependent pipelines. Ungoverned documentation can lead directly to wrong answers, where AI assistants produce obsolete code that doesn’t work, and this misinformation causes unnecessary delays.

To promote sound governance, Expert Support has developed an approach called Knowledge Systems Engineering (KSE). KSE embodies practices that help organizations maintain source validation, eliminate ambiguous parameters, and preserve a trustworthy knowledge layer to empower human engineers and AI agents alike. Stay tuned for more on KSE in the coming weeks.

Let’s Talk 

If you have questions on any of this, or additional tips drawn from your own experience, we’d love to hear from you. Also, Expert Support can help you assess your current API portal, and make specific suggestions for improvements, and even help get that work done. Let’s talk!


Paul Gustafson is CEO at Expert Support. A long-time Silicon Valley veteran, Paul has helped hundreds of clients optimize their technical communication strategies. 

Expert Support is a full-service agency offering a range of documentation services for both pre- and post-sales needs in addition to training and consulting. We have a single all-encompassing vision: To explain complex technical knowledge for the people and AI systems that depend on it.

More posts

Scroll to Top