cURL
curl --request POST \ --url https://api.ai2fin.com/api/chat/message \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "conversationId": "<string>", "message": "<string>", "assetUrls": [ "<string>" ] }'
{ "success": true, "data": { "conversationId": "<string>", "message": { "id": "<string>", "conversationId": "<string>", "role": "user", "content": "<string>", "toolsUsed": [ "<string>" ], "createdAt": "2023-11-07T05:31:56Z" } } }
Send a user message and receive the AI assistant response
JWT token obtained from /api/auth/login endpoint
User message content
Existing conversation identifier
Optional uploaded asset URLs for the assistant to analyze
Assistant response returned
Show child attributes