# Download Message Attachment Visualization

Launch stage: Beta

`GET /api/2.0/genie/{name=spaces/*/conversations/*/messages/*/attachments/*}/download-visualization`

Download a rendered image of a message visualization attachment.
 The response body is the raw PNG image, not a JSON payload.
 This is only available if the attachment is a visualization and the message status is `COMPLETED`.
 This endpoint is not supported for Private Link workspaces.

API scopes: genie

## Path parameters

- `name` (string, optional)
  The resource name of the attachment to render, in the format
   `spaces/{space_id}/conversations/{conversation_id}/messages/{message_id}/attachments/{attachment_id}`.

## Returns

- `contents` (string, optional)
  The rendered visualization as a PNG image. Returned as the raw HTTP
   response body rather than a JSON field.

## Response

```json
{
  "contents": "string"
}
```

