---
title: "List scans with their problems"
method: GET
path: "/scans/problems"
tags: ["Scans"]
---

# List scans with their problems

`GET /scans/problems`

## Request

- Base URL: `https://public.escape.tech/v3`
- URL: `https://public.escape.tech/v3/scans/problems`
- Auth: API key in header `X-ESCAPE-API-KEY`

List scans together with the validation problems surfaced by the scanner during execution. Diagnostic counterpart of GET /v3/profiles/problems, but indexed by scan instead of profile.

## Query parameters

- `cursor` string: The cursor to start the pagination from. Returned by the previous page response. If not provided, the first page will be returned.
- `size` integer: The number of items to return per page
- `sortType` 'SEVERITY' | 'createdAt': The type to sort by
- `sortDirection` 'asc' | 'desc': The direction to sort by
- `after` string: Filter by after date
- `before` string: Filter by before date
- `assetIds` union: Filter by asset IDs
  - string
  - string[]
- `profileIds` union: Filter by profile IDs
  - string
  - string[]
- `projectIds` union: Filter by project IDs
  - string
  - string[]
- `ignored` 'true' | 'false': Filter by ignored status
- `initiator` string[]: Filter by initiator
- `kinds` string[]: Filter by kind
- `status` string[]: Filter by status
- `problemCodes` string[]: Filter by problem codes
- `problemSeverities` string[]: Filter by problem severities

## Response `200`

OK

- object
  - `nextCursor` string, nullable, required
  - `totalCount` integer
  - `data` object[], required
    - `id` string, uuid, required: The id of the scan
    - `profileId` string, uuid, nullable, required: The id of the profile that ran the scan
    - `assetId` string, uuid, nullable, required: The id of the asset that was scanned, if any
    - `status` string, required: The status of the scan
    - `createdAt` string, required: The date and time the scan was created
    - `finishedAt` string, nullable, required: The date and time the scan was finished
    - `score` number, nullable, required: The score of the scan
    - `coverage` number, nullable, required: Aggregate API coverage ratio for this scan (0–1), when the scan has finished with coverage data
    - `duration` number, required: The duration of the scan
    - `progressRatio` number, required: The progress ratio of the scan
    - `initiator` string, required: The initiator of the scan
    - `kind` string, required: The kind of the scan
    - `commitHash` string, nullable, required: The commit hash of the scan
    - `commitBranch` string, nullable, required: The commit branch of the scan
    - `links` object, required: The links of the scan
      - `scanIssues` string, required: The url to view the scan issues in the platform
    - `problems` object[], required: The problems found in the scan
      - `code` string, required: The problem code
      - `message` string, required: The problem message
      - `severity` string, required: The problem severity

## Other responses

- `400`: Pagination error
- `500`: Internal Server Error

---

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