app

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

Changed on
post/w/{workspace}/apps/preview_sdk_token

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/w/{workspace}/apps/preview_sdk_token
  • Auth: one of:
    • HTTP bearer
    • API key in cookie token

Path parameters

workspacestring required

Request body

pathstring required

App being edited; may not be deployed yet.

scopesstring[] 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

the token

Changes