A link that opens a private preview in a browser
POST
/sandboxes/{id}/previews/{port}/link
const url = 'https://api.global.stillbox.example/v1/sandboxes/ws-7k2m9q4x8w3z5r6t/previews/1/link';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.global.stillbox.example/v1/sandboxes/ws-7k2m9q4x8w3z5r6t/previews/1/link \ --header 'Authorization: Bearer <token>'A browser can’t send an API key, so a private preview’s own address refuses it. This link, usable once within a minute, lets the browser in: the preview keeps it signed in for 12 hours, for that preview only. Whoever may open the preview may make one.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
port
required
integer
Responses
Section titled “Responses”The link
Media typeapplication/json
object
url
required
Opens the preview in a browser; use it once.
string
expires_at
required
string format: date-time
Example generated
{ "url": "example", "expires_at": "2026-04-15T12:00:00Z"}The API key is missing or invalid
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}No such sandbox in your organization (or no such file)
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}The change would leave the organization without an owner (last_owner), its seats are full (member_limit), or
the person is already a member (already_member)
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}