> ## 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.

<CardGroup cols={2}>
  <Card title="OpenAPI YAML" icon="file-code" href="/openapi.yaml">
    Raw YAML hosted on this site
  </Card>
</CardGroup>

| 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](/agents/overview)            | Integration guide for AI agents   |

## Quick links

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