---
title: "The current score for a target split up into the scoring components, depending on the defined perspective."
method: GET
path: "/public/v1/target/{systemId}/{targetId}/score-components"
tags: ["Scores - Target"]
deprecated: true
---

# The current score for a target split up into the scoring components, depending on the defined perspective.

`GET /public/v1/target/{systemId}/{targetId}/score-components`

## Request

- Base URL: `https://api.prewave.com`
- URL: `https://api.prewave.com/public/v1/target/{systemId}/{targetId}/score-components`
- Auth: API key in header `X-Auth-Token`
- TypeScript: <https://skmtc.dev/prewave/apis/public-prewave-api/docs/public/v1/target/:systemId/:targetId/score-components/get.ts> (a function with typed inputs; its response is checked against the schema)

> **Deprecated.**

⚠️ **DEPRECATED** - This endpoint is deprecated and will be removed on 31 May 2027.

**Note**: Responses include a `Sunset` HTTP header (RFC 8594) indicating the removal date.

---

## Migration Required

This endpoint has been deprecated in favor of the Enterprise Export API. Please migrate to the new endpoint:

### Replacement Endpoint

| Old Endpoint | New Endpoint | Purpose |
|--------------|--------------|---------|
| `GET /public/v1/target/{systemId}/{targetId}/score-components` | `GET /public/v1/enterprise-export/scores` | Retrieve score components |

---

## Why Migrate?

The Enterprise Export API (`PublicEnterpriseExportController`) provides:
- Score components and subcomponents when `includeComponents: true` is set in the configuration
- Bulk retrieval for multiple targets
- Automated scheduled exports
- Better performance for large-scale operations

---

## Quick Migration Guide

### Step 1: Configure Export Job with Components

Configure your export job to include components:

```json
{
  "runInterval": "DAILY",
  "enabled": true,
  "targetIds": [102006215],
  "perspectiveIds": [1],
  "includeComponents": true
}
```

### Step 2: Retrieve Score Components

Use `GET /public/v1/enterprise-export/scores` to retrieve score data with components:

```http
GET /public/v1/enterprise-export/scores?page=0&size=20
```

The response includes `components` and `subComponents` arrays when `includeComponents` is enabled.

---

## Current Endpoint Behavior

**Required Permission**: `ACCESS_PUBLIC_TARGET_SCORE`

**Performance impact**: Low

Returns the current score for a target split up into scoring components, including:
- Component type
- Component score
- List of subcomponents with their scores

Supports filtering by:
- Perspective ID (optional, defaults to user's perspective)
- Group ID (optional)

## Path parameters

- `systemId` string, required
- `targetId` string, required

## Query parameters

- `perspectiveId` integer
- `groupId` integer

## Response `200`

Target score components successfully retrieved

- PublicTargetScoreComponents[]
  - `component` 'PeerScore' | 'AlertScore' | 'SSAScore' | 'ExternalScore' | 'TierNScore': Score component of the target
  - `score` PublicScore: Score of the target subcomponent
    - `value` integer, nullable: Score value
    - `risk` 'NA' | 'No' | 'Low' | 'Mid' | 'High' | 'Critical': Impact level.
  - `subcomponents` PublicTargetScoreSubcomponent[], required: List of target score subcomponents
    - `subcomponent` 'CountryScore' | 'IndustryScore' | 'CommodityScore' | 'PublicAlertScore' | 'CustomerAlertScore' | 'InternalScore' | 'TierNIndustryScore' | 'TierNCommodityScore' | 'TargetScore', required: Score subcomponent of the target
    - `score` PublicScore: Score of the target subcomponent
      - `value` integer, nullable: Score value
      - `risk` 'NA' | 'No' | 'Low' | 'Mid' | 'High' | 'Critical': Impact level.

## Other responses

- `403`: 403 Forbidden - Authentication or authorization failure. This status code is returned when: (1) the request lacks valid authentication credentials (missing or invalid X-Auth-Token header), or (2) the authenticated user does not have the required permission to access this resource.
- `404`: Target not found or no permission to access it
- `429`: 429 Too Many Requests - API rate limit exceeded. The request has been rejected because the rate limit for this endpoint has been exceeded. Default rate limits: GET requests - 100 per 10 seconds, 500 per minute; POST/PUT/PATCH/DELETE requests - 20 per 10 seconds, 100 per minute. For increased access, please contact customer success.
- `500`: 500 Internal Server Error - An unexpected error occurred on the server. The request may or may not have been processed.

## Changes

- **2026-10-17** `cedf01f35c95`: 4 info
  - added `#/components/schemas/PublicLevel` to the `items/score/allOf[#/components/schemas/PublicScore]/risk` response property `allOf` list for the response status `200`
  - added `#/components/schemas/PublicLevel` to the `items/subcomponents/items/score/allOf[#/components/schemas/PublicScore]/risk` response property `allOf` list for the response status `200`
  - removed `#/components/schemas/Level` from the `items/score/allOf[#/components/schemas/PublicScore]/risk` response property `allOf` list for the response status `200`
  - removed `#/components/schemas/Level` from the `items/subcomponents/items/score/allOf[#/components/schemas/PublicScore]/risk` response property `allOf` list for the response status `200`

[Operation history](https://skmtc.dev/prewave/apis/public-prewave-api/changes/public/v1/target/:systemId/:targetId/score-components/get.md)

---

[API](https://skmtc.dev/prewave/apis/public-prewave-api.md) - [All operations](https://skmtc.dev/prewave/apis/public-prewave-api/llms.txt) - [OpenAPI document](https://skmtc.dev/prewave/apis/public-prewave-api/revisions/462a5e63fc9f?raw)
