---
title: "Render image for attachment from the raw base64 encoded bytes"
method: POST
path: "/v0/messages/attachment/image"
tags: ["Messages"]
---

# Render image for attachment from the raw base64 encoded bytes

`POST /v0/messages/attachment/image`

Render image for attachment from the raw base64 encoded bytes

## Request body

- GetMessageAttachmentImageRawInput
  - `file_type` string — The file type of the attachment
  - `raw` string, byte, required — The full base64 encoded raw attachment to render

## Response `200`

OK

- HandlerTypesAttachmentImageContent
  - `data` array[] — Base64 encoded PNGs of the raw attachment. Multiple if it is a document with pages.
    - integer[]
  - `hash` string — The MD5 hash of the full attachment

---

[API](https://skmtc.net/sublime/apis/sublime-platform-api.md) · [All operations](https://skmtc.net/sublime/apis/sublime-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sublime/sublime-platform-api/versions/d5df82850357/schema)
