Assistants

Upload Document to Assistant

Upload a document to be associated with a specific assistant (shared context for its threads). 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/assistants/{assistant_id}/documents

Path parameters

assistant_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.