---
search:
  tags:
    - Ports
    - GET
seo:
  description: >-
    Reference for the GET /v1/sandboxes/{id}/ports endpoint in the Carton API
    reference.
sidebar:
  label: GET /v1/sandboxes/{id}/ports
  badge: GET
title: GET /v1/sandboxes/{id}/ports
type: openapi-operation
---
`GET /v1/sandboxes/{id}/ports`

**Responses**

- `200` — Cursor-paginated list
- `400` — Typed error; Retry-After is present when retryable
- `401` — Typed error; Retry-After is present when retryable
- `403` — Typed error; Retry-After is present when retryable
- `404` — Unknown resource
- `410` — Sandbox existed and is gone; details contains its reason
- `422` — Typed error; Retry-After is present when retryable
- `429` — Typed error; Retry-After is present when retryable
- `500` — Typed error; Retry-After is present when retryable
- `503` — Typed error; Retry-After is present when retryable

Response example, 200:

```json
{
  "items": [
    {
      "auth_provenance": "provider_native",
      "expires_at": "2019-08-24T14:15:22Z",
      "headers": {
        "property1": "string",
        "property2": "string"
      },
      "port": 1,
      "proto": "http",
      "url": "http://example.com"
    }
  ],
  "next_cursor": "string"
}
```
