---
title: "Preview a custom page"
method: POST
path: "/waap/v1/preview-custom-page"
tags: ["Custom Page Sets"]
---

# Preview a custom page

`POST /waap/v1/preview-custom-page`

Allows to preview a custom page without creating it based on the provided type and data

## Query parameters

- `page_type` 'block.html' | 'block_csrf.html' | 'captcha.html' | 'cookieDisabled.html' | 'handshake.html' | 'javascriptDisabled.html', required — The type of the custom page

## Request body

- PreviewCustomPage
  - `logo` string, nullable — Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
  - `header` string, nullable — The text to display in the header of the custom page
  - `title` string, nullable — The text to display in the title of the custom page
  - `text` string, nullable — The text to display in the body of the custom page
  - `error` string, nullable — Error message

## Response `200`

Successful Response

- CustomPagePreviewResponse
  - `html` string, required — HTML content of the custom page

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Unauthenticated
- `404` — Not Found
- `422` — Unprocessable Entity
- `500` — Internal Server Error

---

[API](https://skmtc.net/g-core/apis/gcore-openapi.md) · [All operations](https://skmtc.net/g-core/apis/gcore-openapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/g-core/gcore-openapi/versions/09e652815095/schema)
