Documents

Upload Document to Thread

Upload a document to be associated with a specific thread and processed for RAG. Supported file types: Documents (.pdf, .doc, .docx, .ppt, .pptx, .xls, .xlsx), Text/Data (.txt, .csv, .md, .markdown, .json, .jsonl, .xml), Code (.py, .js, .ts, .jsx, .tsx, .html, .css, .cpp, .c, .h, .java, .go, .rs, .rb, .php, .sql), Images (.png, .jpg, .jpeg, .webp, .gif, .bmp, .tiff, .tif).

post/threads/{thread_id}/documents

Path parameters

thread_idstring uuid required

Headers

authorizationstring nullable
x_session_tokenstring nullable

Response

Successful Response

metadata_object nullable
document_idstring uuid required
filenamestring required
status'pending' | 'processing' | 'indexed' | 'error' required
status_messagestring nullable
summarystring nullable
created_atstring date-time required
updated_atstring date-time nullable

Changes

No recorded changes to this endpoint across all 1 revision of this API.