Remotehost Docs

The ports a sandbox's environment declares, ready to open

GET
/sandboxes/{sandboxId}/ports

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
AuthorizationBearer <token>

A RemoteHost API key (rh_sk_...) or a user session token.

In: header

Path Parameters

sandboxId*string

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"    }  ]}