---
title: "mint a frontend SDK token for the raw app editor's preview"
method: POST
path: "/w/{workspace}/apps/preview_sdk_token"
tags: ["app"]
---

# mint a frontend SDK token for the raw app editor's preview

`POST /w/{workspace}/apps/preview_sdk_token`

## Path parameters

- `workspace` string, required

## Request body

- object
  - `path` string, required — App being edited; may not be deployed yet.
  - `scopes` string[], required — Scopes from the policy being edited. Capped by the curated allowlist and by the caller's own scopes, and minted as the caller, so it grants nothing they could not mint themselves.

## Response `200`

the token

## Changes

> 176 revisions in range; 16 could not be searched.

- **2026-08-03** `e75591f42c41` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/windmill/apis/windmill-api/changes/w/:workspace/apps/preview_sdk_token/post.md)

---

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