---
title: "Get Public Ferry Diagram Image"
method: GET
path: "/v2/public/ferry/diagrams/{diagram_id}/image"
tags: ["ferry-diagrams"]
---

# Get Public Ferry Diagram Image

`GET /v2/public/ferry/diagrams/{diagram_id}/image`

## Request

- Base URL: `https://api.sanka.com`
- URL: `https://api.sanka.com/v2/public/ferry/diagrams/{diagram_id}/image`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sankahq/apis/sanka-public-api/docs/v2/public/ferry/diagrams/:diagram_id/image/get.ts> (a function with typed inputs; its response is checked against the schema)

The diagram's latest revision as a PNG at twice its size, exactly as the diagram editor
draws it. `X-Sanka-Diagram-Revision` names the revision. 422 `DIAGRAM_EMPTY` for a diagram
without nodes; 503 when the renderer is unavailable.

## Path parameters

- `diagram_id` string, required

## Query parameters

- `workspace_id` string, nullable

## Headers

- `X-Workspace-Code` string

## Response `200`

Successful Response

## Other responses

- `401`: Error response
- `403`: Error response
- `422`: Error response

## Changes

- **2026-10-14** `13bedc624f6e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sankahq/apis/sanka-public-api/changes/v2/public/ferry/diagrams/:diagram_id/image/get.md)

---

[API](https://skmtc.dev/sankahq/apis/sanka-public-api.md) - [All operations](https://skmtc.dev/sankahq/apis/sanka-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sankahq/apis/sanka-public-api/revisions/16f03a9e3ab9?raw)
