Skip to content

List RAG documents for an account

GET
/v1/adapters/llm/rag/document/list
curl --request GET \
--url https://example.com/v1/adapters/llm/rag/document/list \
--header 'Authorization: Bearer <token>'
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
Array<object>
object
key
additional properties
any
Examplegenerated
{
"documents": [
{}
]
}

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)