The document's bytes
GET/documents/:id/download
The current revision, with its Content-Type and a Content-Disposition: attachment carrying the filename. Not cached (max-age=0), since a new revision may appear at any time.
Request
Responses
- 200
- 401
- 403
- 404
The file
Response Headers
Content-Disposition
Missing, invalid or expired token, or no contact matches it.
Authenticated, but not allowed.
Unknown route, or the resource is missing or in the trash; message names what was
looked for (task, note, payment_receipt, expense…). On an expenses route,
message: "expenses" means the plugin is not active.