Skip to content

LLM & AI Agent Integration

For AI assistants and coding agents: a structured, LLM-optimized version of this documentation is available for accurate code generation.

llms.txt

https://docs.mail.td/llms.txt

The llms.txt file follows the llms.txt standard and contains:

  • API base URL and routing instructions
  • Complete endpoint reference with methods, paths, and parameters
  • Authentication guidance for all token types
  • Request/response examples
  • Rate limit information
  • Error handling patterns

How to Use

With AI coding assistants

Point your AI assistant to the llms.txt URL when asking it to generate Mail.td API integration code:

"Use the API documented at https://docs.mail.td/llms.txt to create a Python script that creates a mailbox and waits for an email."

With MCP (Model Context Protocol)

If your AI tool supports MCP, you can add the documentation as a resource:

json
{
  "resources": [
    {
      "uri": "https://docs.mail.td/llms.txt",
      "name": "Mail.td API Documentation",
      "mimeType": "text/plain"
    }
  ]
}

With custom agents

Fetch and include in your agent's system prompt or context:

python
import requests

docs = requests.get("https://docs.mail.td/llms.txt").text
# Include `docs` in your LLM context

Why llms.txt?

Traditional API docs are designed for humans — they use tabs, collapsible sections, and navigation that LLMs can't follow. llms.txt is a single, flat, structured file that LLMs can parse in one read without losing context.

Full Documentation

For human-readable documentation with interactive examples, see:

Mail.td API Documentation