Build the app in its session and mint a preview link
POST /api/workspaces/{workspaceId}/apps-v2/{id}/preview
POST
/api/workspaces/{workspaceId}/apps-v2/{id}/preview
Runs npm install (when needed) and npm run build in the actor’s sandbox session, then returns a short-lived token-gated URL serving the built dist/. The URL is cookie-free and meant for a sandboxed iframe.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” workspaceId
required
string
id
required
string
Request Body
Section titled “Request Body ”object
Responses
Section titled “ Responses ”Successful response
object
success
Whether the request succeeded.
boolean
data
Endpoint-specific response payload.
message
string
Example
Operation completed error
string
Example
Error messageInvalid request
object
success
boolean
error
string
Example
Error messageInternal server error
object
success
boolean
error
string
Example
Error message