Chat API
Synchronous chat, SSE streaming, and conversation management.
POST
/api/chatX-Agent-Access-TokenComplete a chat turn; returns response, conversation_id, chain_calls, tokens_used.
{
"agent_id": "uuid",
"message": "string",
"conversation_id": "uuid | null",
"connected_wallet_address": "0x... | null"
}POST
/api/chat/streamX-Agent-Access-TokenSame request body as /api/chat. Response is text/event-stream with typed JSON events.
Conversations
GET
/api/conversations?agent_id={id}X-Agent-Access-TokenList conversation summaries for an agent.
GET
/api/conversations/{id}/messagesX-Agent-Access-TokenUp to 500 messages with role, content, chain_calls.
DELETE
/api/conversations/{id}X-Agent-Access-TokenDelete conversation and messages (204).
GET
/api/conversations/{id}/streamX-Agent-Access-TokenSSE stream of transaction confirmations for the conversation. Accepts access_token query param for EventSource clients.
See the Chat guide for SSE event types and streaming behavior.