Skip to Content
Conversations

Download a stored media file of a message in the conversation

GET
/conversations/{conversationId}/media/{mediaId}

Images, video and audio of common types are served inline, everything else as an attachment; always with X-Content-Type-Options nosniff and a sandboxing Content-Security-Policy. 409 MEDIA_NOT_STORED while the worker has not downloaded the file from Meta yet. Also serves the media library file a message was sent with and the picture of a link preview, by the ids the message history gives.

Scope: one of conversations.read, conversations.read_all. Rate limit: 300 requests per minute per API key.

Authorization

headerAuthorizationBearer <msk_live_…>

An API key created under API keys in the panel: Authorization: Bearer msk_live_…. The key's scopes decide which operations it may call.

Scope: conversations.read

Path Parameters

conversationId*string
Formatuuid
mediaId*string
Formatuuid

Response Body

The file

response?fileapplication/octet-stream
Formatbinary
Example Request
curl -X GET 'https://app.messora.tech/api/v1/conversations/497f6eca-6276-4993-bfeb-53cbbbba6f08/media/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
"string"