Sandbox
Create a preview link
Returns a short-lived URL that opens the sandbox’s dev server in a browser. The request starts the dev server if it isn’t running, and waits for it to serve the sandbox’s current files, including a rebuild that a recent change started.
If the dev server can’t build or start the App, the request returns 422 preview_failed, and detail has the dev server’s output from that build. After a change breaks a rebuild, the dev server keeps serving the previous build, but the request still returns 422 until the App builds again. To check the App after a change, call this endpoint, then read its logs with GET /api/apps/{id}/logs.
POST
Create a preview link