Skip to main content

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

GitHub Source

Raw YAML from the GitHub repository
FormatURL
YAML (docs)https://docs.li.fi/openapi.yaml
YAML (GitHub)https://raw.githubusercontent.com/lifinance/public-docs/main/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

EnvironmentBase URL
Productionhttps://li.quest
Staginghttps://staging.li.quest

For AI agents

AI agents can discover and consume this API through multiple formats:
ResourceURLDescription
OpenAPI Spechttps://docs.li.fi/openapi.yamlFull OpenAPI 3.0.2 specification
AI Pluginhttps://docs.li.fi/.well-known/ai-plugin.jsonStandard discovery format
llms.txthttps://docs.li.fi/llms.txtStructured documentation for LLMs
MCP Serverhttps://mcp.li.quest/mcpModel Context Protocol server
Agent Guide/agents/overviewIntegration guide for AI agents