---
title: "Render a wireframe preview image (SVG)"
method: GET
path: "/api/wireframe/{id}/preview-svg"
tags: ["sharing"]
---

# Render a wireframe preview image (SVG)

`GET /api/wireframe/{id}/preview-svg`

## Request

- Base URL: `https://voltplan.app`
- URL: `https://voltplan.app/api/wireframe/{id}/preview-svg`
- Auth: none declared

Renders the PocketBase `wireframe_states` record `id` (with its components) to SVG; image references point at `NEXT_PUBLIC_BASE_URL` or the request origin. Read with the unauthenticated server PocketBase client; does not use the share token. Rendering errors answer a generic VoltPlan SVG with a shorter cache. Any lookup failure answers 404.

## Response `200`

Preview SVG, or the generic fallback SVG when rendering failed.

## Other responses

- `404`: Record missing or not readable.

---

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