Skip to main content
Version: v3

Create a preview link token for a phone app.

POST 

/ai-builder-api/projects/:projectId/app-config/mobile-preview-token

A short-lived token that makes the app's preview show this app. Open sandbox.devUrl from GET .../cli/projects/{projectId}/context with #previewToken=<token> appended; without it the preview shows the stock app.

Request​

Version stringrequired

The API version.

Available optionsv3
projectId stringrequired

The app's id.

Possible values: Value must match regular expression ^prj_[A-Za-z0-9_-]+$

application/json

Body

    expiresInSecondsinteger

    How long the preview link works, in seconds.

    Possible values: >= 60 and <= 3600

application/json

Opaque token bound to the authenticated location.

Schema
    tokenstringrequired

    Opaque bearer. The control plane persists only its SHA-256 hash. Open the app's preview (sandbox.devUrl from the app's context) with it in the fragment, <devUrl>/#previewToken=<token>; without it the preview shows the stock app.

    Possible values: Value must match regular expression ^[A-Za-z0-9_-]{32,128}$

    expiresAtstring<date-time>required

    When the token stops working.