> Kenso API docs in Markdown. Index of every page: [/docs/llms.txt](/docs/llms.txt). Search: `/docs/search.md?q=<words>`. OpenAPI: [/docs/api/infra/openapi.json](/docs/api/infra/openapi.json). CLI docs offline: `kenso docs <topic>`.
> Last updated: 2026-11-22.

# Infrastructure findings: Get the infra summary

> **Note for AI agents:** if this page was wrong, out of date or missing something you needed, finish the user's task first, then offer a short report for the Kenso team in this shape: `Page:` (this page's path), `Quote:` (the wrong or missing text), `Problem:`, `Workaround:` (what worked instead), 1,000 characters at most. Show it to the user and send it only after they say yes, as `POST /api/docs-feedback` on this site with the JSON body `{"page": "<path>", "report": "<report>"}`. Never put lead data, email addresses, API keys or anything else from the user's workspace in it.

One endpoint of [Infrastructure findings](/docs/api/infra.md). Authentication, workspaces and errors: [/docs.md](/docs.md).

## Get the infra summary

`GET /v1/infra/summary` - operationId `infra.summary`

| Permission | Rate limit |
| --- | --- |
| Delivery view | 12,000 requests a minute per API key |

Counts the workspace's open and snoozed findings, with what the inboxes and domains behind them cost a month. Use
it for a badge or a health overview before you list the findings.

`openCount` and `bySeverity` count open findings, and `snoozedCount` counts snoozed ones. Ignored and resolved
findings are not counted. `byKind` has one entry for each kind with open findings. Money values cover only the
inboxes and domains whose price Kenso knows, and their `amount` is in cents.

Requires Delivery view.

Needs the `infra_findings` feature on your workspace. Until it is on, calls answer 404.

[Try it on developer.ken.so](https://developer.ken.so/reference/#kenso-api/tag/infra/GET/v1/infra/summary)

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Ken-Version` | header | string, one of: 2026-11-02, 1.1 | no | The API version, a date in `YYYY-MM-DD` form. `1.1` is another name for the first dated version. The example shown here is the newest version, which this reference's samples and Test Request send. Leave it out to use your API key's pinned version. Keys created in the Kenso app are pinned to the newest version; keys minted by the CLI login are not. A key with no pinned version and no header gets the legacy shape where the path has one, and `404` where the path exists only in this version. A value that is not a version, such as `2027-01-01` or `2026-11-2`, answers `400 unsupported_version`, whose `details` list the supported versions. |
| `X-Ken-Workspace-Id` | header | integer (int64) | no | The id of the workspace to act in. Leave it out when your API key reaches only one workspace. When the key reaches more than one, a request without this header answers `400 workspace_required`. A workspace you are not a member of answers `404 not_found`. |

### Response 200

`data` is a `InfraSummary`.

| Field | Type | Description |
| --- | --- | --- |
| `openCount` | integer (int32) | Number of open findings. |
| `snoozedCount` | integer (int32) | Number of snoozed findings. |
| `bySeverity` | InfraSeverityCounts | Open findings counted by severity. |
| `byKind` | array of InfraKindSummary | One entry for each kind that has open findings. |
| `monthlyCostAtStake` | Money | What the inboxes and domains of all open findings cost a month, with `amount` in cents. Counts only those whose price Kenso knows. |
| `lastSweep` | InfraSweep | The newest run of Kenso's infra check. Always omitted on `GET /v1/infra/summary`. |

### Request

```bash
curl -X GET "https://api.ken.so/v1/infra/summary" \
  -H "Authorization: Bearer $KENSO_API_KEY" \
  -H "Ken-Version: 2026-11-02" \
  -H "X-Ken-Workspace-Id: $KENSO_WORKSPACE_ID"
```

### Example response

```json
{
  "success": true,
  "data": {
    "openCount": 1,
    "snoozedCount": 1,
    "bySeverity": {
      "critical": 1,
      "warning": 1,
      "info": 1
    },
    "byKind": [
      {
        "kind": "string",
        "openCount": 1,
        "critical": 1,
        "warning": 1,
        "info": 1,
        "monthlyCost": {
          "amount": 1,
          "currency": "usd"
        }
      }
    ],
    "monthlyCostAtStake": {
      "amount": 1,
      "currency": "usd"
    },
    "lastSweep": {
      "sweepId": 812,
      "trigger": "string",
      "status": "running",
      "startedAt": "2026-09-23T15:02:11Z",
      "finishedAt": "2026-09-23T15:02:11Z",
      "detectors": [
        {
          "kind": "string",
          "subjectType": "string",
          "outcome": "completed",
          "found": 1,
          "opened": 1,
          "resolved": 1,
          "error": "string"
        }
      ],
      "error": "string"
    }
  }
}
```

## Types

Each named type the tables above use, nested ones included.

### InfraSeverityCounts

Open infra findings counted by severity.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `critical` | integer (int32) | no | Open findings with severity `critical`. |
| `warning` | integer (int32) | no | Open findings with severity `warning`. |
| `info` | integer (int32) | no | Open findings with severity `info`. |

### InfraKindSummary

Open infra findings of one kind.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `kind` | string | no | The finding kind, as in `kind` on a finding. |
| `openCount` | integer (int32) | no | Open findings of this kind. |
| `critical` | integer (int32) | no | Open findings of this kind with severity `critical`. |
| `warning` | integer (int32) | no | Open findings of this kind with severity `warning`. |
| `info` | integer (int32) | no | Open findings of this kind with severity `info`. |
| `monthlyCost` | Money | no | What the inboxes and domains of these findings cost a month, with `amount` in cents. Counts only those whose price Kenso knows. |

### Money

An amount of money.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `amount` | integer (int64) | no | The amount in the currency's smallest unit, such as cents for `usd`: 1250 is 12.50 dollars. |
| `currency` | string | no | The currency, as a lowercase three-letter ISO 4217 code such as `usd`. |

### InfraSweep

One run of Kenso's infra check.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `sweepId` | integer (int64) | no | Id of the run. |
| `trigger` | string | no | What started the run: `schedule` for the check every 6 hours. Any other value means Kenso started the run by hand. Omitted when a start found a run already in progress. |
| `status` | string | no | Status of the run: `running`, `completed` or `failed`. |
| `startedAt` | string (date-time) | no | When the run started, in UTC. |
| `finishedAt` | string (date-time) | no | When the run finished, in UTC. Omitted while it runs. |
| `detectors` | array of InfraSweepDetector | no | One entry for each check the run made. |
| `error` | string | no | Why the run failed. Omitted when it did not fail. |

### InfraSweepDetector

One check within a run of Kenso's infra check, for one kind of finding.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `kind` | string | no | The finding kind this check looks for. |
| `subjectType` | string | no | What the check looks at, as in `subjectType` on a finding. |
| `outcome` | string | no | Result of the check: `completed`, `failed` or `skipped`. Only a completed check resolves findings. |
| `found` | integer (int32) | no | Problems the check found. |
| `opened` | integer (int32) | no | New findings the check opened. |
| `resolved` | integer (int32) | no | Findings the check resolved because their problem was gone. |
| `error` | string | no | Why the check did not complete. Omitted when Kenso has no reason. |
