Skip to content

List RAG documents for an account

GET
/v1/a/adapters/llm/rag/document/list
curl --request GET \
--url 'https://example.com/v1/a/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 llm:document:manage.

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.

X-Account-Sid
string

Target account for principals broader than one account (tenant / account API key); account-scoped principals use their own.

OK

Media typeapplication/json
object
documents
required
Array<object>
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"
}
]
}

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"
}

Unauthorized

Forbidden

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"
}

Bad gateway (upstream adapter error)