Upload a source document
/api/v1/sourcesSend the document as a multipart file upload. Accepted formats are
PDF, Word (.docx, .doc), PowerPoint, OpenDocument Text and RTF.
Text extraction and embedding start asynchronously after the upload;
follow progress through state, which ends in embedding_complete
(or one of the *_failed states). When title is omitted the first
50 characters of the filename are used.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
object
Defaults to the filename
Responses
Section titled “Responses”201
The created source
The created source
object
Processing state. Passages are searchable once embedding_complete.
object
The download endpoint for this source
403
Insufficient scope, role, or credits
Insufficient scope, role, or credits
object
object
A stable machine-readable code
Present on validation errors; one entry per failed validation
422
The record could not be saved
The record could not be saved
object
object
A stable machine-readable code
Present on validation errors; one entry per failed validation