---
title: "Your open TCP ports, or one sandbox's."
method: GET
path: "/v1/ports"
tags: ["ports"]
---

# Your open TCP ports, or one sandbox's.

`GET /v1/ports`

## Request

- Base URL: `https://api.withruntime.com`
- URL: `https://api.withruntime.com/v1/ports`
- Auth: HTTP bearer

## Query parameters

- `sandboxId` string: Resource identifier (UUID).

## Response `200`

Success

- object
  - `data` object[], required
    - `id` string
    - `sandboxId` string
    - `address` string: The public address to connect to.
    - `publicPort` integer
    - `connect` string: address:publicPort, for a client's host and port.
    - `protocol` string: tcp. UDP is not carried.
    - `disabled` boolean
    - `createdAt` string, date-time
  - `nextCursor` string, nullable, required: Pass as cursor; null ends the list.

## Other responses

- `default`: Error

---

[API](https://skmtc.dev/withruntime/apis/runtime-cloud-api.md) · [All operations](https://skmtc.dev/withruntime/apis/runtime-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/withruntime/apis/runtime-cloud-api/revisions/6f4012286988?raw)
