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
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
For AI agents
AI agents can discover and consume this API through multiple formats: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

