Download a RAG document file
const url = 'https://example.com/v1/adapters/llm/rag/document/example';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/adapters/llm/rag/document/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”RAG document id.
Header Parameters
Section titled “Header Parameters”Target account for principals broader than one account (tenant / account API key); account-scoped principals use their own.
Responses
Section titled “Responses”Document file stream
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
Resource does not exist
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"}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)