Descargar bytes del adjunto
GET/attachments/:id/download
Streams the file bytes for the attachment back to the caller. Requires scope finance.attachments — the same Bearer JWT 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.
Solicitud
Respuestas
- 200
- 401
- 403
- 404
- 429
- 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.
Rate limit exceeded for this token. Reads and writes have separate budgets, both on a 1-hour sliding window. The response carries X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset and Retry-After — wait out Retry-After rather than retrying immediately.
Unhandled server error.