PAI Chat·Endpoint
POST
/chat/{chatId}/documentUpload a document to a chat for RAG (Retrieval Augmented Generation). Supports P
Upload a document to a chat for RAG (Retrieval Augmented Generation). Supports PDF, Excel, Word, CSV, and text files up to 50MB.
GET/chat/{chatId}/document/{documentId}/downloadarrow_forwardtune
Parameters
chatIdrequiredpath
string (uuid)The ID of the chat session to upload the document to
double_arrow
Returns 201
documentIdrequired
string (uuid)The UUID for the uploaded document
filenamerequired
stringThe name of the uploaded file
fileSizerequired
numberSize of the file in bytes
statusrequired
stringProcessing status (uploading, processing, ready, failed)
messagerequired
stringSuccess message
report
Errors