cURL
curl --request GET \ --url https://your-instance.example.com/api/messages/attachment-url/{storageKey}
{ "url": "<string>", "storageKey": "<string>", "remappedFrom": "<string>" }
Full R2 storage key
Set to "1" or "true" to request inline content disposition for PDFs
Signed URL returned
Present when the key was remapped from a stale email attachment key