curl --request GET \
--url https://api.tusky.io/v2/files/{fileId}/downloadcurl --request GET \
--url https://api.tusky.io/v2/files/{fileId}/downloadContent-Type header set to the file’s MIME type.
The endpoint is available at any point after upload — you do not need to wait for the file to be published. Depending on the file’s current state, the binary is served from different storage backends:
| Header | Description |
|---|---|
Content-Type | The MIME type of the file (e.g. image/png, application/pdf). |
Content-Length | The size of the file in bytes. |
Content-Disposition | Set to attachment; filename="<original filename>". |
curl https://api.tusky.io/v2/files/file_mno345pqr678/download \
-H "Api-Key: YOUR_API_KEY" \
--output document.pdf