---
title: "Mint a visual-editor preview token"
method: POST
path: "/sites/{siteId}/editor/preview-token"
tags: ["Editor"]
---

# Mint a visual-editor preview token

`POST /sites/{siteId}/editor/preview-token`

## Request

- Base URL: `https://api.universally.com`
- URL: `https://api.universally.com/sites/{siteId}/editor/preview-token`
- Auth: API key in header `X-API-Key`

Mints a short-lived signed token the dashboard uses to load the visual editor's preview iframe.

## Path parameters

- `siteId` string, required

## Request body

- object
  - `lang` string, required

## Response `200`

Success

- object
  - `success` boolean
  - `data` unknown
  - `message` string, nullable
  - `code` string

## Other responses

- `default`: Error

---

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