---
title: "Preview Generated Page Html"
method: GET
path: "/api/domains/{domain_id}/generated-pages/{page_id}/preview-html"
tags: ["generated_pages"]
---

# Preview Generated Page Html

`GET /api/domains/{domain_id}/generated-pages/{page_id}/preview-html`

## Request

- Base URL: `https://api-v1.unusual.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api-v1.unusual.ai/api/domains/{domain_id}/generated-pages/{page_id}/preview-html`
- Auth: OAuth 2
  - Password
  - Token URL: `/auth/login`

Generate full HTML for a page on-the-fly so the dashboard can render it in an <iframe>.

Optional query params:
  - before_version_id: if provided and highlight=true, compute inline diffs from this version
  - highlight: when true, wrap additions/deletions with ins/del tags; if no baseline provided, compare to empty

## Path parameters

- `page_id` string, required
- `domain_id` string, required

## Query parameters

- `before_version_id` string, nullable
- `highlight` boolean

## Headers

- `x-view-as` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/unusual/apis/dashboard-server.md) - [All operations](https://skmtc.dev/unusual/apis/dashboard-server/llms.txt) - [OpenAPI document](https://skmtc.dev/unusual/apis/dashboard-server/revisions/89f716930ead?raw)
