# List RAG documents for an account GET /v1/a/adapters/llm/rag/document/list Select code sample ``` const url = 'https://example.com/v1/a/adapters/llm/rag/document/list?limit=100&offset=0'; const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; 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/a/adapters/llm/rag/document/list?limit=100&offset=0' \ --header 'Authorization: Bearer ' ``` - /v1/a/adapters/llm/rag/document/list Returns one page of the account’s documents, newest first. ## Permission This operation needs the permission [`llm:document:manage`](https://docs.aiva.apifonica.com/concepts/roles-and-permissions/#llm-document-manage). ## Authorizations - **[bearerAuth](https://docs.aiva.apifonica.com/api/account/#bearerauth)** ## Parameters ### Query Parameters **limit** integer default: 100 <= 500 Page size. A value above 500 is reduced to 500. **offset** integer 0 Number of documents to skip. A negative value is read as 0. ### Header Parameters **X-Account-Sid** string Target account for principals broader than one account (tenant / account API key); account-scoped principals use their own. ## Responses ### 200 OK Media typeapplication/json object **documents** required Array\ object **id** required string format: uuid **name** required string **size** required Size of the uploaded file in bytes. integer format: int64 **status** required string Allowed values: pending processed error **error** The reason of the failure. Present only when status is error. string **content\_type** required string **mode** required string Allowed values: chunk lines **index\_type** required string Allowed values: fulltext vector **chunk\_size** required integer **embedding\_model** string **embedding\_provider** string **uploaded\_at** required string format: date-time **total** required Number of the account’s documents. integer format: int64 **limit** required The page size applied. integer **offset** required The offset applied. integer **has\_more** required True when more documents follow this page. boolean ##### Example ``` { "documents": [ { "status": "pending", "mode": "chunk", "index_type": "fulltext" } ] } ``` ### 400 Invalid request body or parameters Media typeapplication/json 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 **error** required string **details** string ##### Examplegenerated ``` { "error": "example", "details": "example" } ``` ### 401 Unauthorized ### 403 Forbidden ### 500 Internal server error Media typeapplication/json 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 **error** required string **details** string ##### Examplegenerated ``` { "error": "example", "details": "example" } ``` ### 502 Bad gateway (upstream adapter error)