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
The API version.
v3The app's id.
Possible values: Value must match regular expression ^prj_[A-Za-z0-9_-]+$
- application/json
- Body
- Example (auto)
Body
How long the preview link works, in seconds.
Possible values: >= 60 and <= 3600
{
"expiresInSeconds": 900
}
Opaque token bound to the authenticated location.
- application/json
- Schema
- Example (auto)
Schema
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}$
When the token stops working.
{
"token": "Vq3n8XkT2pLw9sYc4RbJ7hMd1FgZ6aEu",
"expiresAt": "2026-10-23T11:40:00.000Z"
}