Search the documentation

Pick a page and open it with Enter.

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 hexrequired

The 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/a904577a208845c98dbce47c1d4655f5

The 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.

200

The file.

401

No active session or public chat reference.

404

No attachment under that id.

422

Malformed id.