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

Documentation Index

Fetch the complete documentation index at: https://docs.pocketenv.io/llms.txt

Use this file to discover all available pages before exploring further.

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.