List and Create RAG Documents
List all RAG documents for the authenticated user with pagination. Supports search, filtering and multiple ordering patterns. POST supports creating new documents with file upload capabilities.
Query parameters
file_type
Filter by document_type
ordering
Comma separated ordering fields (updated_at, document_name) prefix with - for desc
q
Full-text search across document fields
sort
Shortcut ordering: latest | oldest | name_asc | name_desc
status
Filter by upload_status
Request
This endpoint expects a multipart form.
document_name
name
Alias for document_name
document_type
* `file` - File
* `url` - URL
* `user` - User
* `text` - Text
* `youtube` - YouTube
* `gdrive` - Google Drive
* `email` - Email
* `rss` - RSS Feed
document_url
content
config
document_file
document_files
Multiple files to upload (alternative to document_file)
workspace
workspace_id
ID of workspace. Optional if X-Workspace-Id header or workspace cookie sets context
Response
List of user's documents
document_id
created_at
updated_at
file_type
file_size
upload_status
* `importing` - Importing
* `vectorizing` - Vectorizing
* `summarizing` - Summarizing
* `uploaded` - Uploaded
* `failed` - Failed
Allowed values:
status_message
Human-readable status / failure message for ingestion
linked_experiences_count
linked_experiences
has_file
description
workspace
workspace_id
owner
Owner/uploader user object
progress
Processing progress as percentage (0-100)
document_name
document_type
* `file` - File
* `url` - URL
* `user` - User
* `text` - Text
* `youtube` - YouTube
* `gdrive` - Google Drive
* `email` - Email
* `rss` - RSS Feed
document_url
content
config
Errors
400
Bad Request Error
401
Unauthorized Error

