v1

latestOpenAPI 3.1.0raw.githubusercontent.com2024-11-01441490.1 KB
Brain

Create Text Document

Create documents in a brain with plain text representation

post/brain/{brain_id}/documents/text

Path parameters

brain_idstring required

Request body

contentstring required

Text that is to be added to the brain

titlestring required

Title of the text document. This will also be the filename

Response

brain_idstring required

A unique identifier for the “brain” associated with this document or data object

created_atstring required

The timestamp indicating when the document or file was created

document_idstring required

A unique identifier for the document associated with this object

idinteger required

An internal ID for this object

namestring required

The name of the file or document

statusstring required

The current status of the document processing.

typestring required

The type of the document or file

urlstring required

A URL link to access or download the file. This is likely a temporary signed URL from AWS S3, as it includes authentication details and an expiration timestamp