Skip to main content
POST
/
api
/
chat
/
upload
Upload chat files
curl --request POST \
  --url https://api.ai2fin.com/api/chat/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data'
{
  "success": true,
  "data": {
    "files": [
      {
        "assetUrl": "<string>",
        "fileName": "<string>",
        "mimeType": "<string>",
        "size": 123
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

JWT token obtained from /api/auth/login endpoint

Body

multipart/form-data
files
file[]
required

Response

200 - application/json

Files uploaded

success
boolean
data
object