---
title: "List all scan statuses and problems"
method: GET
path: "/profiles/problems"
tags: ["Profiles"]
---

# List all scan statuses and problems

`GET /profiles/problems`

## Request

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

List all scan statuses and problems

## 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` 'LAST_SCAN' | 'NAME' | 'SCORE' | 'SEVERITY': The type to sort by
- `sortDirection` 'asc' | 'desc': The direction to sort by
- `assetIds` union: Filter by asset IDs
  - string
  - string[]
- `domains` union: Filter by domain
  - string
  - string[]
- `issueIds` union: Filter by issue IDs
  - string
  - string[]
- `tagIds` union: Filter by tag IDs
  - string
  - string[]
- `search` string: Search term to filter profiles by name or description
- `initiators` string[]: Filter by initiator
- `kinds` string[]: Filter by kind
- `risks` string[]: Filter by risk
- `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 profile
    - `name` string, required: The name of the profile
    - `lastScan` object, nullable, required: The most recent scan status and problems for this profile
      - `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
    - `lastResourceScan` object, nullable, required: Deprecated: identical to `lastScan`. Prefer `lastScan`.
      - `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

---

[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)
