---
title: "Retrieve image of PDF attachment by md5 hash"
method: GET
path: "/v0/messages/{id}/attachment/{hash}/image"
tags: ["Messages"]
---

# Retrieve image of PDF attachment by md5 hash

`GET /v0/messages/{id}/attachment/{hash}/image`

Retrieve image of PDF attachment by md5 hash

## Path parameters

- `hash` string, required — MD5 hash of the attachment to retrieve
- `id` string, uuid, required — Sublime Message ID

## 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)
