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
| Header | Required | Value |
|---|---|---|
Authorization | Yes | Bearer <token> |
X-Target-Server | Yes | documents |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
document_id | string (UUID) | Yes | Document ID |
Response
200 OK
Returns the binary file content.
Response Headers:
| Header | Description |
|---|---|
Content-Type | MIME type of the file (e.g., application/pdf) |
Content-Disposition | attachment; filename="original-filename.pdf" |
401 Unauthorized
403 Forbidden
API key's node cannot access this document.
404 Not Found
Document not found.