Upload
Fetch one stored attachment by id.
GET
/api/v1/uploads/{file_id}Fetch one stored attachment. This is what the preview in the conversation hangs on — a reopened chat shows its images the same way the one they were attached in does.
Path parameter
file_idstring · 32 hexrequiredThe id from the upload response. Anything else is 422 — the id is generated, not named by a user.
Example request
bash
curl -O http://localhost:8000/api/v1/uploads/a904577a208845c98dbce47c1d4655f5The response is the file itself, with the media type it was stored under.
200The file.
404No attachment under that id.
422Malformed id.