chat_id is provided, a new chat is created automatically.
Uploaded files are processed server-side: documents are parsed and chunked for retrieval, images are captioned and embedded. After uploading, reference the returned upload IDs in a Send Message request to attach them to a conversation turn.
Bearer token obtained from the authenticate endpoint.
One or more files to upload. Sent as
multipart/form-data. Maximum 5 files per request, each up to 5 MB.Supported MIME types:application/pdftext/csvapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet(XLSX)image/pngimage/jpeg
ID of an existing chat to attach the files to. If omitted, a new chat is created.
Response
The chat the files were uploaded to. If no
chat_id was provided in the request, this is the newly created chat’s ID.List of successfully processed uploads.