AI agent API

Chat endpoint and session handling.

POST /api/ai/chat

Sends a message to the agent runtime. The agent can call internal tools like quotes, route comparison, and balances.

Typical body

{
  "message": "string",
  "sessionId": "string",
  "walletAddress": "string"
}

DELETE /api/ai/session/:id

Clears a chat session.

circle-exclamation

Last updated