v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1483595482.8 KB

Returns the image bytes corresponding to a media object. If you have implemented your own application with the Chat and ChatSync APIs, and have enabled content extraction from visual data in Amazon Q Business, you use the GetMedia API operation to download the images so you can show them in your UI with responses.

For more information, see Extracting semantic meaning from images and visuals.

get/applications/{applicationId}/conversations/{conversationId}/messages/{messageId}/media/{mediaId}

Path parameters

applicationIdstring required

The identifier of the Amazon Q Business which contains the media object.

conversationIdstring required

The identifier of the Amazon Q Business conversation.

messageIdstring required

The identifier of the Amazon Q Business message.

mediaIdstring required

The identifier of the media object. You can find this in the <code>sourceAttributions</code> returned by the <code>Chat</code>, <code>ChatSync</code>, and <code>ListMessages</code> API responses.

Response

Success

mediaBytesstring

The base64-encoded bytes of the media object.

mediaMimeTypestring

The MIME type of the media object (image/png).