List RAG documents for an account
const url = 'https://example.com/v1/t/adapters/llm/rag/document/list?limit=100&offset=0';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/v1/t/adapters/llm/rag/document/list?limit=100&offset=0' \ --header 'Authorization: Bearer <token>'Returns one page of the account’s documents, newest first.
Permission
This operation needs the permission tenant:scenario_template:manage.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Page size. A value above 500 is reduced to 500.
Number of documents to skip. A negative value is read as 0.
Header Parameters
Section titled “Header Parameters”Names the target tenant.
By principal:
- A tenant-scoped principal may omit it.
- A principal with no tenant of its own names one here.
Refused when:
- A tenant-scoped principal sends a value naming any other tenant.
- A principal with no tenant of its own omits it.
Responses
Section titled “Responses”OK
object
object
Size of the uploaded file in bytes.
The reason of the failure. Present only when status is error.
Number of the account’s documents.
The page size applied.
The offset applied.
True when more documents follow this page.
Example
{ "documents": [ { "status": "pending", "mode": "chunk", "index_type": "fulltext" } ]}Invalid request body or parameters
Flat error shape emitted by the RAG document, public models and admin
registry handlers. details is present only on validation failures that
carry per-field diagnostics.
object
Examplegenerated
{ "error": "example", "details": "example"}Unauthorized
Forbidden
Internal server error
Flat error shape emitted by the RAG document, public models and admin
registry handlers. details is present only on validation failures that
carry per-field diagnostics.
object
Examplegenerated
{ "error": "example", "details": "example"}Bad gateway (upstream adapter error)