---
title: "Redirect a share token to the diagram preview PNG"
method: GET
path: "/api/share/diagram/{token}/png"
tags: ["sharing"]
---

# Redirect a share token to the diagram preview PNG

`GET /api/share/diagram/{token}/png`

## Request

- Base URL: `https://voltplan.app`
- URL: `https://voltplan.app/api/share/diagram/{token}/png`
- Auth: none declared

Looks up the PocketBase `wireframe_states` record whose `share_token` equals `token` and redirects to `/api/wireframe/{id}/preview/` of that record. Depends on the wireframe having a share token. Lookup errors are answered like an unknown token.

## Other responses

- `302`: Redirect to the preview image of the shared wireframe.
- `404`: No wireframe has this share token, or the lookup failed.

---

[API](https://skmtc.dev/voltplan/apis/voltplan-api.md) · [All operations](https://skmtc.dev/voltplan/apis/voltplan-api/llms.txt) · [OpenAPI document](https://skmtc.dev/voltplan/apis/voltplan-api/revisions/575b86a7af92?raw)
