FortWatchFortWatchDocs
Menu

List open ports

GEThttps://api.fortwatch.ai/app/ports
Scope issues:readOperation ID listOpenPorts

Open-port issues grouped by port, with the assets each port is open on.

Example request

curl -X GET "https://api.fortwatch.ai/app/ports" \
  -H "Authorization: Bearer $FORTWATCH_API_KEY"

Response 200

The request succeeded.

FieldTypeDescription
portsrequiredobject[]
portrequirednumber
protocolrequiredstring
servicerequiredobject | null
severityrequiredstring
categoryrequiredstring
issueCategoryrequiredstring
labelrequiredstring
issuesrequirednumber
assetsrequiredobject[]
idrequirednumber
namerequiredobject | null
valuerequiredstring
typerequiredstring
projectNamestring
projectColorobject | null
issueIdrequirednumber
seenInLatestScanrequiredboolean
categoriesrequiredobject[]
categoryrequiredstring
labelrequiredstring
issueCategoryrequiredstring
totalrequirednumber
issuesrequirednumber
criticalrequirednumber
highrequirednumber
mediumrequirednumber
summaryrequiredobject
totalrequirednumber
criticalrequirednumber
highrequirednumber
mediumrequirednumber
lowrequirednumber
byCategoryrequiredobject
json
{
  "ports": [
    {
      "port": 1,
      "protocol": "string",
      "service": {},
      "severity": "string",
      "category": "string",
      "issueCategory": "string",
      "label": "string",
      "issues": 1,
      "assets": [
        {}
      ]
    }
  ],
  "categories": [
    {
      "category": "string",
      "label": "string",
      "issueCategory": "string",
      "total": 1,
      "issues": 1,
      "critical": 1,
      "high": 1,
      "medium": 1
    }
  ],
  "summary": {
    "total": 1,
    "critical": 1,
    "high": 1,
    "medium": 1,
    "low": 1,
    "byCategory": {}
  }
}

Errors

400The request is not valid: a field is missing or has the wrong shape (the message names it).
401No valid credentials: the API key or access token is missing, revoked or expired (INVALID_API_KEY, INVALID_TOKEN).
403Not allowed: the key or token lacks this scope (SCOPE_REQUIRED), the route is dashboard-only (SESSION_REQUIRED), or a plan limit applies.
429Too many requests (RATE_LIMITED): wait the seconds Retry-After gives.