---
title: "Get Discohook Preview"
method: GET
path: "/discohook/preview"
tags: ["discohook"]
---

# Get Discohook Preview

`GET /discohook/preview`

Create a Discohook viewer link for the specified command type.

Args:
    template_type: The type of command template to use (default: server_time)
    banner_url: Optional custom banner URL to replace the default banner
    theme: Optional theme parameter ('light' or 'dark') for viewer mode

Returns:
    Dictionary containing the Discohook viewer URL with base64 encoded template data

## Query parameters

- `template_type` string, required — The type of command template to use
- `banner_url` string, nullable — Optional custom banner URL to replace the default banner
- `theme` string, nullable — Optional theme parameter ('light' or 'dark') for viewer mode

## Response `200`

Successful Response

- unknown

## Other responses

- `404` — Not found
- `422` — Validation Error

---

[API](https://skmtc.dev/genshinwizard/apis/genshin-wizard-api.md) · [All operations](https://skmtc.dev/genshinwizard/apis/genshin-wizard-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/genshinwizard/genshin-wizard-api/revisions/b8624ba76153/schema)
