> ## Documentation Index
> Fetch the complete documentation index at: https://hyperbrowser.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Expose a sandbox port



## OpenAPI

````yaml openapi.json POST /api/sandbox/{id}/expose
openapi: 3.0.1
info:
  title: Hyperbrowser API
  version: 1.0.0
servers:
  - url: https://api.hyperbrowser.ai
    description: Production server
security: []
paths:
  /api/sandbox/{id}/expose:
    post:
      tags:
        - Sandboxes
      summary: Expose a sandbox port
      parameters:
        - name: id
          in: path
          required: true
          description: Sandbox ID
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SandboxExposePortParams'
      responses:
        '200':
          description: Port exposed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SandboxExposedPort'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    SandboxExposePortParams:
      type: object
      properties:
        port:
          type: integer
          minimum: 1
          maximum: 65535
          description: Port inside the sandbox to expose.
        auth:
          type: boolean
          default: false
          description: Require authentication for requests to the exposed URL.
      required:
        - port
    SandboxExposedPort:
      type: object
      properties:
        port:
          type: integer
          minimum: 1
          maximum: 65535
        auth:
          type: boolean
          description: Whether requests to the exposed URL require authentication.
        url:
          type: string
          description: Public URL that routes to the exposed port.
        browserUrl:
          type: string
          description: >-
            URL that bootstraps browser access. For authenticated ports this
            includes a short-lived grant token.
        browserUrlExpiresAt:
          type: string
          format: date-time
          nullable: true
          description: Expiry of the browser bootstrap grant, if auth is enabled.
      required:
        - port
        - auth
        - url
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````