Download attachment bytes
GET/attachments/:id/download
Streams the file bytes for the attachment back to the caller. Same Bearer JWT (scope finance.attachments) as the listing endpoint. Content-Type reflects the stored MIME; Content-Disposition is inline for PDF / images and attachment for other types. No caching — Cache-Control: private, no-store.
Request
Responses
- 200
- 401
- 403
- 404
- 500
File bytes (binary stream). See Content-Type and Content-Disposition headers.
Missing / invalid / expired / revoked token.
Token authenticated but lacks the finance.attachments scope, or sub does not match any workspace.
Attachment not found within the tenant.
Unhandled server error.