List and Create RAG Documents

View as Markdown
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_typestringOptional

Filter by document_type

orderingstringOptional

Comma separated ordering fields (updated_at, document_name) prefix with - for desc

pageintegerOptional
A page number within the paginated result set.
page_sizeintegerOptional
Number of results to return per page.
qstringOptional

Full-text search across document fields

sortstringOptional

Shortcut ordering: latest | oldest | name_asc | name_desc

statusstringOptional

Filter by upload_status

Response

List of user's documents
countinteger
resultslist of objects
nextstring or nullformat: "uri"
previousstring or nullformat: "uri"

Errors

400
Bad Request Error
401
Unauthorized Error