ghl_clientportal_create_mobile_experience_preview_token
Creates a short-lived preview token so a mobile app preview shows the specified app; append it as #previewToken to the sandbox dev URL to replace the stock preview.
Instructions
CLIENT PORTAL AI BUILDER API (/ai-builder-api) — side-effecting: opens/edits sandboxes and starts builds. Edit a sandbox only once sandbox.status is ready; checkpoint after edits and before starting the run that builds them; 409 means a cloud build owns the sandbox or it is not running.
Create a preview link token for a phone app.
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.
Endpoint: POST /ai-builder-api/projects/{projectId}/app-config/mobile-preview-token (Version header: v3; source: v3/clientportal-ai-v3.json)
OAuth scopes: clientportal-ai.readonly
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Request body (schema carried verbatim from the official OpenAPI spec). | |
| projectId | Yes | The app's id. |