Get preview URL
Returns a URL that serves the app as it currently stands in the builder, including changes you have not published yet. Use it to look at your work in progress; use Deploy an app to put it in front of your users.
The preview is served by a sandbox that shuts down when it goes unused. If none is running, this starts one, so the first call after a quiet period takes appreciably longer than later ones. sandbox_info.cold_start tells you which happened.
409 here usually means your app’s code does not currently build. The response body says what failed. Send the error to the builder with Send chat message to have it fixed, then ask for the preview again.Authorizations
Personal API key.
Path Parameters
Response
The app's preview URL and the sandbox serving it.
Response model for preview URL endpoint
URL that serves the app as it currently stands in the builder, including changes you have not published. Open it in a browser or an iframe.
"https://preview-6820f3a4e7b91d003c45a1f2.base44.app"
Details of the sandbox serving this preview, including whether it had to be started for this request.
Short-lived token the preview URL needs to authenticate against the preview proxy, or null when the preview needs no token. Treat it as a credential and don't share it.
"pv_8f2c1a9d4b7e"