---
title: "Expose a sandbox port"
method: POST
path: "/api/sandbox/{id}/expose"
tags: ["Sandboxes"]
---

# Expose a sandbox port

`POST /api/sandbox/{id}/expose`

## Path parameters

- `id` string, uuid, required

## Request body

- SandboxExposePortParams
  - `port` integer, required — Port inside the sandbox to expose.
  - `auth` boolean — Require authentication for requests to the exposed URL.

## Response `200`

Port exposed

- SandboxExposedPort
  - `port` integer, required
  - `auth` boolean, required — Whether requests to the exposed URL require authentication.
  - `url` string, required — Public URL that routes to the exposed port.
  - `browserUrl` string — URL that bootstraps browser access. For authenticated ports this includes a short-lived grant token.
  - `browserUrlExpiresAt` string, date-time, nullable — Expiry of the browser bootstrap grant, if auth is enabled.

---

[API](https://skmtc.net/hyperbrowser/apis/hyperbrowser-api.md) · [All operations](https://skmtc.net/hyperbrowser/apis/hyperbrowser-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hyperbrowser/hyperbrowser-api/versions/69aa004ce41b/schema)
