Bulk Create Documents

View as Markdown
Create multiple documents in a single request. Supports: - Multiple file uploads with automatic naming - CSV string of URLs for bulk URL document creation - JSON list of URLs for structured bulk creation All created documents share common configuration and type.

Request

This endpoint expects a multipart form.
document_fileslist of stringsOptional
List of files to upload
urls_csvstringOptional

Comma-separated URLs to create documents from

urls_listlist of stringsOptional
List of URLs to create documents from
document_typeenumRequired
Document type for all created documents * `file` - File * `url` - URL * `user` - User * `text` - Text * `youtube` - YouTube * `gdrive` - Google Drive * `email` - Email * `rss` - RSS Feed
configanyOptional
Common configuration applied to all documents
auto_namebooleanOptionalDefaults to true

Automatically generate names from filenames/URLs

name_prefixstringOptional<=100 characters
Optional prefix for all document names

Response

Documents created successfully
countinteger
resultslist of objects
nextstring or nullformat: "uri"
previousstring or nullformat: "uri"

Errors

400
Bad Request Error
401
Unauthorized Error