The ports a sandbox's environment declares, ready to open
The environment's declared ports, read from the environment the sandbox is held to now, each with a team preview minted for the caller, so none has to be requested. Nothing is public: a link for someone outside the org is still POST /sandboxes/{sandboxId}/previews with audience public. Empty for a sandbox with no environment.
Authorization
bearerAuth A RemoteHost API key (rh_sk_...) or a user session token.
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/sandboxes/string/ports"{ "ports": [ { "port": 0, "service": "string", "listening": true, "url": "string" } ]}Read a directory tree GET
Returns directory entries grouped by parent path. This is a filesystem listing, not a persistent sandbox backup. Requires a running Firecracker sandbox and sandbox.files.read.
List public sandbox preview links GET
Only persistent public links are listed; team previews are stateless and never stored. The URL is not returned, since its token exists only in the create response.