REST Endpoints
1. Overview
All endpoints are served over HTTP from the Defimara backend (default port 8000). Authentication endpoints are public. All others require a valid JWT in the Authorization header.
2. Endpoint Reference
/auth/challengepublicGet a one-time sign challenge for a wallet address. Pass ?address=0x...
/auth/verifypublicVerify a signed challenge. Returns access_token (JWT).
/chatSend a natural-language message to the agent. Supports stream: true for SSE.
/healthpublicServer health check. Returns {status: "ok"}.
/meReturns the authenticated wallet address from the JWT.
3. Request / Response Format
{
"message": "swap 10 USDC for ETH", // required
"stream": true, // optional, default false
"chain": "arbitrum" // optional override
}