Skip to main content

Download Document

GET /v1/documents/{document_id}/download

Downloads the actual document file. The response is a binary file with appropriate content type and disposition headers.

Headers

HeaderRequiredValue
AuthorizationYesBearer <token>
X-Target-ServerYesdocuments

Path Parameters

ParameterTypeRequiredDescription
document_idstring (UUID)YesDocument ID

Response

200 OK

Returns the binary file content.

Response Headers:

HeaderDescription
Content-TypeMIME type of the file (e.g., application/pdf)
Content-Dispositionattachment; filename="original-filename.pdf"

401 Unauthorized

403 Forbidden

API key's node cannot access this document.

404 Not Found

Document not found.

500 Internal Server Error