Skip to content

Download a RAG document file

GET
/v1/adapters/llm/rag/document/{id}
curl --request GET \
--url https://example.com/v1/adapters/llm/rag/document/example \
--header 'Authorization: Bearer <token>'
id
required
string

RAG document id.

X-Account-Sid
string

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

Document file stream

Media typeapplication/octet-stream
string format: binary

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

Resource does not exist

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

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)