Upload
Fetch one stored attachment by id.
GET
/api/v1/uploads/{file_id}Fetch an original attachment or an exported result. Images retain their previews; other files download with their original filename.
Send an active X-Session-Id, unless a currently shared chat references this file. The frontend forwards its session automatically for previews and downloads.
Path parameter
file_idstring · 32 hexrequiredThe generated ID from the upload or export response.
Example request
bash
curl -OJ \
-H "X-Session-Id: $SMEEWARE_SESSION" \
http://localhost:8000/api/v1/uploads/a904577a208845c98dbce47c1d4655f5The response carries the stored media type, Content-Disposition filename, private no-store caching and X-Content-Type-Options: nosniff. Supported images and audio can display inline; other files are attachments.
200The file.
401No active session or public chat reference.
404No attachment under that id.
422Malformed id.