Skip to main content
GET
Get preview URL

Authorizations

api_key
string
header
required

Personal API key.

Path Parameters

app_id
string
required

Response

Successful Response

A preview URL for an app, and the sandbox serving it.

preview_url
string
required

URL that serves the app as it currently stands in the app editor, including changes that haven't been published. Open it in a browser or an iframe.

Example:

"https://preview-6820f3a4e7b91d003c45a1f2.base44.app"

sandbox_info
SandboxInfo · object
required

Details of the sandbox serving this preview, including whether it had to be started for this request.

preview_token
string | null

Short-lived token the preview URL needs to authenticate against the preview proxy. Treat it as a credential and don't share it, because anyone holding it can load the app before it is published.

Example:

"pv_8f2c1a9d4b7e"

bridge_injected
boolean
default:true

Whether the preview host injects the builder bridge. False when the platform proxy is disabled and the preview falls back to the sandbox's own host, so the editor knows the bridge's mount/paint signals will never arrive and must not wait for them.