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.
https://api-pre.defimara.com (self-hosted or deployed). All endpoints accept and return JSON. Streaming endpoints use Server-Sent Events (SSE).• How It Works
• Requirements
• Quick Example
curl -X POST $DEFIMARA_API_URL/chat \
-H "Authorization: Bearer <JWT>" \
-H "Content-Type: application/json" \
-d '{"message": "swap 10 USDC for ETH"}' \
--no-buffer