Documents
/documents
Create new document.
POST
Body
string
A name for the document.
string
The document type. Options:
TXT, PDF, YOUTUBE, CSV or URL.string
A publicly available
URL for the document.number
The first page to ingest.
string
The last page to ingest.
object
Any authorization/authentication needed to access the document
object
The desired text splitter for the document, defaults to
CharacterTextSplitter.object
Any key values necessary to ingest the document.
Response
boolean
Indicates whether the call was successful.
object
A
document object.