GetStorageFile¶
Returns a storage file by UUID or its storage filename. Both GET and HEAD are supported. Private documents and generated exports require an authenticated session authorized for that file; knowing a UUID or filename does not grant access.
GET
https://{some_domain}/storage/{uuid}
The same file can be requested by storage name, such as /storage/{uuid}.pdf. Supported path suffixes include png, svg, jpg, jpeg, webp, ico, gif, txt, pdf, doc, docx, xls, csv, and xlsx.
Authorization¶
Public avatar and brand images are available without a token. Other uploaded files and exports are private: the uploading owner may access their own file; SuperAdmins may access private files across owners; staff access to account/customer files requires the corresponding manager scope and permission. Unauthorized access returns 403 PERMISSION_DENIED. Deleted, unregistered, or unknown files return 404 FILE_NOT_FOUND.
Known legacy public-image filenames already referenced by loaded account/customer avatars or brand logo/favicon/PWA settings may be served without a storage row. The legacy generated identicon SVG is also accepted only when both its filename and inert SVG content match the strict identicon grammar. These public legacy images remain under the sandbox CSP and nosniff. Arbitrary unregistered objects and exports are not served. Legacy public-scope documents are subject to owner checks; only recognized public images remain anonymously readable.
Response¶
Successful GET returns the file bytes, not a JSON envelope. HEAD returns headers without a body. Storage responses set X-Content-Type-Options: nosniff, a scriptless sandbox Content-Security-Policy, and Cache-Control: private, no-store. Private files are sent as attachments; eligible public images may be inline. CDN/proxy layers must preserve the origin authorization and private, no-store behavior.
Errors¶
| HTTP | Error | Description |
|---|---|---|
| 403 | PERMISSION_DENIED |
Caller does not own the private file or has no applicable staff scope. |
| 404 | FILE_NOT_FOUND |
File is unknown, deleted, malformed, or not registered (except the generated identicon case). |