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 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 hexrequired

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

The response is the file itself, with the media type it was stored under.

200

The file.

404

No attachment under that id.

422

Malformed id.