---
title: "Get Exposed Ports Preset"
method: GET
path: "/v1/monitors/presets/exposed-ports"
tags: ["Monitors"]
---

# Get Exposed Ports Preset

`GET /v1/monitors/presets/exposed-ports`

## Request

- Base URL: `https://api.fettle.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://api.fettle.sh/v1/monitors/presets/exposed-ports`
- Auth: API key in header `Authorization`

List ports that should not be reachable from the internet.

Watch them with one TCP monitor on your server's host:
`config: {"ports": [...], "expected_state": "closed"}`, one region, an
interval of at least 300 seconds. Any of them answering opens an incident.

## Headers

- `X-Organization-Id` string, uuid, nullable

## Response `200`

Successful Response

- ExposedPortsPresetResponse: Ports to check are closed on a server, with what usually listens there.
  - `ports` ExposedPortRead[], required
    - `port` integer, required
    - `service` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/fettle/apis/fettle-sh.md) · [All operations](https://skmtc.dev/fettle/apis/fettle-sh/llms.txt) · [OpenAPI document](https://skmtc.dev/fettle/apis/fettle-sh/revisions/f32c8a18606f?raw)
