curl --request POST \
--url https://api.factory.ai/api/v0/sessions/{sessionId}/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"text": "<string>",
"images": [
{
"type": "base64",
"data": "<string>",
"mediaType": "image/jpeg"
}
],
"files": [
{
"type": "base64",
"mediaType": "application/pdf",
"data": "<string>",
"parsedData": "<string>",
"name": "<string>",
"path": "<string>"
}
]
}
'