Skip to content
OpenRelay is in early access, and the /v1 API is stable. New capabilities ship in the changelog.
Skip to Content
API ReferenceComputeSandboxes

Stop exposing a port of a sandbox

Stops traffic to an exposed sandbox port and invalidates its public and signed URLs within 5 seconds. Repeating the call is safe. A port that is not exposed answers the same. Exposing the port again makes new URLs: none signed before opens it.

Required permission

Requires the sandboxes.exec permission. See Permissions for the roles and API key permissions that include it.

Command line

The orl CLI wraps this endpoint:

Guided workflow: orl sandbox port unexpose

orl sandbox port unexpose <sandbox-id> <port>
DELETE
/v1/sandboxes/{sandboxId}/ports/{port}

Authorization

apiKey
headerAuthorizationBearer <token>

OpenRelay API key. Send it as Authorization: Bearer or_… (legacy vl_… keys still work).

Path Parameters

sandboxId*string
port*integer
Range1 <= value <= 65535

Response Body

The port is not exposed

Example Request
curl -X DELETE 'https://api.openrelay.inc/v1/sandboxes/string/ports/1'
Example Response
Empty