> ## Documentation Index
> Fetch the complete documentation index at: https://docs.li.fi/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenAPI Specification

> Download or reference the LI.FI API OpenAPI specification for integration with AI agents, SDKs, and tools

## LI.FI OpenAPI Specification

The LI.FI API follows the OpenAPI 3.0 specification. You can use this spec to:

* Generate client SDKs in any language
* Import into API testing tools (Postman, Insomnia, etc.)
* Integrate with AI agents and LLM tools
* Build automated documentation

## Access the spec

The full specification is available at the URLs below. Use whichever format suits your workflow.

> [card] [OpenAPI YAML](https://docs.li.fi/openapi.yaml)
>
> Raw YAML hosted on this site

| Format | URL |
| - | - |
| YAML (docs) | `https://docs.li.fi/openapi.yaml` |

## Specification details

* **OpenAPI Version**: 3.0.2
* **API Version**: 1.0.0
* **Endpoints**: 28+ paths covering quotes, routes, tokens, chains, and more

## API base URLs

| Environment | Base URL |
| - | - |
| Production | `https://li.quest` |
| Staging | `https://staging.li.quest` |

## For AI agents

AI agents can discover and consume this API through multiple formats:

| Resource | URL | Description |
| - | - | - |
| OpenAPI Spec | `https://docs.li.fi/openapi.yaml` | Full OpenAPI 3.0.2 specification |
| AI Plugin | `https://docs.li.fi/.well-known/ai-plugin.json` | Standard discovery format |
| llms.txt | `https://docs.li.fi/llms.txt` | Structured documentation for LLMs |
| MCP Server | `https://mcp.li.quest/mcp` | Model Context Protocol server |
| Agent Guide | [/agents/overview](https://docs.li.fi/agents/overview.md) | Integration guide for AI agents |

## Quick links

* [API Introduction](https://docs.li.fi/api-reference/introduction.md) - Get started with the LI.FI API
* [Rate Limits](https://docs.li.fi/api-reference/rate-limits.md) - API keys and rate limits
* [Get a Quote](https://docs.li.fi/api-reference/get-a-quote-for-a-token-transfer.md) - Request a cross-chain swap quote


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.