API Overview
What Is the Defimara API?
The Defimara API exposes the same DeFi agent capabilities available in the UI as an HTTP interface. Any external agent, bot, or backend service can call it to execute swaps, limit orders, perps, and yield strategies - programmatically, with the same security guarantees.
http://localhost:8000 (self-hosted) or your deployed instance. All endpoints accept and return JSON. Streaming endpoints use Server-Sent Events (SSE).• How It Works
• Requirements
• Quick Example
curl -X POST http://localhost:8000/chat -H "Authorization: Bearer <JWT>" -H "Content-Type: application/json" -d '{"message": "swap 10 USDC for ETH"}' --no-buffer