Publish a sandbox port over HTTPS, or change its visibility
The edge proxies https://<sandbox>-<port>.<sandbox domain> to the
port over the host’s private network, while the sandbox runs. A
private port (the default) needs a login link from POST .../ports/{port}/link; a public one is open to anyone. The service
must listen on the sandbox’s network interface (for example
0.0.0.0), not only on 127.0.0.1. Port 6080 is the desktop; use
POST .../desktop for it.
/v1/sandboxes/{sandbox}/ports/{port}AuthorizationBearer token · headerrequiredOrg-scoped API key, pols_....
sandboxstringrequiredSandbox ID (sbx_...) or name.
portintegerrequiredTCP port inside the sandbox.
application/jsonpublicbooleanOpen the port to anyone, without a login link.
The published port.
portintegerrequiredpublicbooleanrequiredOpen to anyone. Private ports need a login link.
urlstringrequiredThe port's HTTPS URL. For a private port, open a login link first.
created_atstring<date-time>requiredRate limited (rate_limited): too many requests or failed
authentications from this address, too many requests or
lifecycle calls for this org, or too many of its exec, file,
computer and CDP calls in progress at once. Retry after
Retry-After seconds.
errorobjectrequiredShow propertiesHide properties
codestringrequiredStable machine-readable code: bad_request (400),
unauthorized (401), forbidden (403), quota_exceeded
(403), not_found (404), conflict (409),
rate_limited (429, see Retry-After), internal (500),
runtime_error (502, the sandbox host failed),
unavailable (503, the feature is not configured on this
deployment), timeout (504, or 408 when a request body
stalls).
messagestringrequiredError.
errorobjectrequiredShow propertiesHide properties
codestringrequiredStable machine-readable code: bad_request (400),
unauthorized (401), forbidden (403), quota_exceeded
(403), not_found (404), conflict (409),
rate_limited (429, see Retry-After), internal (500),
runtime_error (502, the sandbox host failed),
unavailable (503, the feature is not configured on this
deployment), timeout (504, or 408 when a request body
stalls).
messagestringrequired