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.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 | Integration guide for AI agents |
Quick links
- API Introduction - Get started with the LI.FI API
- Rate Limits - API keys and rate limits
- Get a Quote - Request a cross-chain swap quote

