Skip to main content
POST
/
io.pocketenv.sandbox.exposePort
Expose a port for a sandbox.
curl --request POST \
  --url https://api.pocketenv.io/xrpc/io.pocketenv.sandbox.exposePort \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "port": 33280,
  "description": "<string>"
}
'
{
  "previewUrl": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
port
integer
required
Required range: 1025 <= x <= 65535
description
string

A description of the port.

Response

OK

previewUrl
string

The preview URL for the exposed port.