Documents
Add document
client.documents.add(DocumentAddParams { content, containerTag, containerTags, 6 more } body, RequestOptionsoptions?): DocumentAddResponse { id, status }
POST/v3/documents
List documents
client.documents.list(DocumentListParams { containerTags, filepath, filters, 5 more } body, RequestOptionsoptions?): DocumentListResponse { memories, pagination }
POST/v3/documents/list
Update document
client.documents.update(stringid, DocumentUpdateParams { containerTag, containerTags, content, 5 more } body, RequestOptionsoptions?): DocumentUpdateResponse { id, status }
PATCH/v3/documents/{id}
Get document
client.documents.get(stringid, RequestOptionsoptions?): DocumentGetResponse { id, connectionId, content, 16 more }
GET/v3/documents/{id}
Delete document by ID or customId
client.documents.delete(stringid, RequestOptionsoptions?): void
DELETE/v3/documents/{id}
Bulk delete documents
client.documents.deleteBulk(DocumentDeleteBulkParams { containerTags, filepath, ids } body, RequestOptionsoptions?): DocumentDeleteBulkResponse { deletedCount, success, containerTags, errors }
DELETE/v3/documents/bulk
Upload a file
client.documents.uploadFile(DocumentUploadFileParams { file, containerTag, containerTags, 9 more } body, RequestOptionsoptions?): DocumentUploadFileResponse { id, status }
POST/v3/documents/file
Batch add documents
client.documents.batchAdd(DocumentBatchAddParams { documents, containerTag, containerTags, 6 more } body, RequestOptionsoptions?): DocumentBatchAddResponse { failed, results, success }
POST/v3/documents/batch
Get processing documents
client.documents.listProcessing(RequestOptionsoptions?): DocumentListProcessingResponse { documents, totalCount }
GET/v3/documents/processing