---
title: "GET /v1/sandboxes/{id}/domain"
method: GET
path: "/v1/sandboxes/{id}/domain"
tags: ["Sandboxes"]
---

# GET /v1/sandboxes/{id}/domain

`GET /v1/sandboxes/{id}/domain`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/v1/sandboxes/{id}/domain`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Query parameters

- `port` integer, required

## Response `200`

Preview URL for the port

- SandboxDomainResponse
  - `url` string, required

## Other responses

- `400`: Invalid port
- `404`: Sandbox not found

## Changes

- **2026-04-25** `774be20905f2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/v1/sandboxes/:id/domain/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
