Skip to main content
GET
/
api
/
messages
/
download
Download an attachment with forced Content-Disposition
curl --request GET \
  --url https://your-instance.example.com/api/messages/download
{
  "success": false,
  "message": "Storage key is required",
  "error": "BAD_REQUEST"
}

Documentation Index

Fetch the complete documentation index at: https://docs.tetherai.ca/llms.txt

Use this file to discover all available pages before exploring further.

Query Parameters

key
string
required

Full R2 storage key

fileName
string
default:download

Filename to suggest in the Content-Disposition header

Response

Redirect to signed R2 URL with download disposition