API ReferencePreviews
Create a sandbox preview
A team preview (the default) is a signed URL for signed-in organization members. A public preview is a persistent, revocable link that anyone holding the URL can open; it requires sandbox.preview.share and expires after expiresInSeconds (24 hours by default, 30 days at most).
Authorization
bearerAuth AuthorizationBearer <token>
A RemoteHost API key (rh_sk_...) or a user session token.
In: header
Path Parameters
sandboxId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/sandboxes/string/previews" \ -H "Content-Type: application/json" \ -d '{}'{ "preview": { "kind": "external", "audience": "team", "id": "string", "port": 0, "status": "ready", "target": "string", "endUserId": "string", "label": "string", "expiresAt": "string", "url": "string", "viewerUrl": "string" }}