---
title: "ScoreHandler calculates a score for the audited manifest."
method: GET
path: "/rest-api/v1/insight/score"
tags: ["insight"]
---

# ScoreHandler calculates a score for the audited manifest.

`GET /rest-api/v1/insight/score`

This endpoint calculates a score for the provided manifest based on the number and severity of issues detected during the audit.

## Query parameters

- `cluster` string
- `apiVersion` string
- `kind` string
- `namespace` string
- `name` string
- `forceNew` boolean

## Response `200`

Score calculation result

- InsightScoreData
  - `issuesTotal` integer — IssuesTotal is the total count of all issues found during the audit. This count can be used to understand the overall number of problems that need to be addressed.
  - `resourceTotal` integer — ResourceTotal is the count of unique resources audited during the scan.
  - `score` number — Score represents the calculated score of the audited manifest based on the number and severity of issues. It provides a quantitative measure of the security posture of the resources in the manifest.
  - `severityStatistic` object — SeverityStatistic is a mapping of severity levels to their respective number of occurrences. It allows for a quick overview of the distribution of issues across different severity categories.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `429` — Too Many Requests
- `500` — Internal Server Error

## Changes

- **2023-12-29** `fa4b9c305a29` — 1 info
  - endpoint added
- **2023-12-11** `2a20fa0acab4` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/kusionstack/apis/karpor/changes/rest-api/v1/insight/score/get.md)

---

[API](https://skmtc.dev/kusionstack/apis/karpor.md) · [All operations](https://skmtc.dev/kusionstack/apis/karpor/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kusionstack/karpor/revisions/d741ac56c269/schema)
