Skip to main content
POST
/
api
/
chat
/
message
Send chat message
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"
    }
  }
}

Authorizations

Authorization
string
header
required

JWT token obtained from /api/auth/login endpoint

Body

application/json
message
string
required

User message content

conversationId
string

Existing conversation identifier

assetUrls
string[]

Optional uploaded asset URLs for the assistant to analyze

Response

200 - application/json

Assistant response returned

success
boolean
data
object