Messages

Get attachment by storage key (redirects to signed URL)

GET
/api/messages/attachment/{storageKey}

Resolve a message attachment by R2 storage key and 302-redirect to a short-lived signed URL. Used by the conversation UI to render inline media without bundling presigned URLs in the message body.

Path Parameters

storageKey*string

Full R2 storage key (e.g. messages/{orgId}/{msgId}/{filename})

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/messages/attachment/string"
Empty