Skip to main content
GET
/
api
/
messages
/
attachment-url
/
{storageKey}
Get signed URL for an attachment
curl --request GET \
  --url https://your-instance.example.com/api/messages/attachment-url/{storageKey}
{
  "url": "<string>",
  "storageKey": "<string>",
  "remappedFrom": "<string>"
}

Path Parameters

storageKey
string
required

Full R2 storage key

Query Parameters

inline
string

Set to "1" or "true" to request inline content disposition for PDFs

contentType
string

Response

Signed URL returned

url
string
storageKey
string
remappedFrom
string

Present when the key was remapped from a stale email attachment key