Skip to main content
GET
Fetch the original uploaded file of a document

Headers

x-user-id
string | null

Path Parameters

knowledge_base_id
string
required

The knowledge base id.

document_id
string
required

The document id.

Query Parameters

download
boolean
default:false

Force a Content-Disposition attachment.

token
string | null

A token from POST .../documents/{document_id}/download_token, accepted in place of the X-User-ID header so a browser navigation can fetch the file directly.

Response

Successful Response