List Defect Groups

Request

GET

https://appsec.sourcecraft.tech/v1/defect-groups

Query parameters

Name

Description

description

Type: string

Case-insensitive substring of the rule's full description (the vulnerability description for SCA). If empty/omitted: all rules.

Default: ``

Example: kvm

file

Type: string

Case-insensitive substring of the file path. If empty/omitted: all files.

Default: ``

Example: src/

gitRepo

Type: string

Repository identifier. Accepts either internal repository ID (e.g., 88769874964302633) or public UUID (e.g., 0199140f-4343-7c06-a7e3-b835c305b629). These values can be obtained from the getRepo API (fields: id and uuid).

Pattern: \S

Example: 0199140f-4343-7c06-a7e3-b835c305b629

pageSize

Type: integer

Page size, from 1 to 250. Default: 50.

Default: 50

Min value: 1

Max value: 250

pageToken

Type: string

Omit for the first page. Use nextPageToken from the response for subsequent pages, keeping all other parameters unchanged. An empty nextPageToken means the last page.

Default: ``

Example: ``

rule

Type: string

Case-insensitive substring of the rule name. If empty/omitted: all rules.

Default: ``

Example: CVE-2025

scanType

Type: string

Scan kind to pivot on: SCAN_TYPE_DEFAULT (the repository's latest CI scan) or SCAN_TYPE_AUDIT (its latest audit scan). If empty/omitted: SCAN_TYPE_DEFAULT. Ignored when scanUuid is provided.

Default: ``

Example: SCAN_TYPE_AUDIT

scanUuid

Type: string

Scan UUID to select. Omit or leave blank to use the repository's latest scan. Scan UUIDs can be obtained from the scan listing endpoints.

Default: ``

Example: 01890f3e-7b5c-7cc2-bc6f-3f5d8c9a1e4a

severity

Type: string[]

Severities to keep: NONE, LOW, MEDIUM, HIGH, CRITICAL. Repeat the key for several: severity=HIGH&severity=CRITICAL. If empty/omitted: returns defect groups of all severities.

Example: HIGH

status

Type: string[]

Defect group statuses to keep, one of the DefectGroupStatus enum names. Repeat the key for several: status=OPEN&status=TRIAGED_TP. If empty/omitted: returns defect groups of all statuses.

Example: OPEN

type

Type: string

Security engine type to filter defect groups: SECRETS, SCA, SAST, SBOM_SPDX, SBOM_CYCLONEDX, DAST, AI_AUDIT. If empty/omitted: returns defect groups of all types.

Default: ``

Example: SECRETS

Responses

200 OK

OK

Body

application/json
{
  "data": [
    {
      "id": 0,
      "ruleName": "example",
      "codeBlock": "example",
      "fileName": "example",
      "latestCommit": "example",
      "latestTimeFound": 0,
      "gitRepo": "example",
      "status": 0,
      "severity": 0,
      "cvssScore": 0.5,
      "engine": "example",
      "neuroTriageUuid": "123e4567-e89b-12d3-a456-426614174000",
      "neuroScore": 0,
      "firstCommit": "example",
      "firstTimeFound": 0,
      "uuid": null,
      "ruleId": "example",
      "findingsCount": 0,
      "publicId": 0,
      "fixOperationUuid": null,
      "engineType": 0,
      "startLine": 0,
      "endLine": 0,
      "startColumn": 0,
      "endColumn": 0,
      "helpText": "example",
      "links": [
        {
          "type": "EXTERNAL_URL",
          "url": "example"
        }
      ]
    }
  ],
  "nextPageToken": "example",
  "totalSize": 0,
  "listRevision": "example"
}

Name

Description

data

Type: DefectGroupDto[]

Example
[
  {
    "id": 0,
    "ruleName": "example",
    "codeBlock": "example",
    "fileName": "example",
    "latestCommit": "example",
    "latestTimeFound": 0,
    "gitRepo": "example",
    "status": 0,
    "severity": 0,
    "cvssScore": 0.5,
    "engine": "example",
    "neuroTriageUuid": "123e4567-e89b-12d3-a456-426614174000",
    "neuroScore": 0,
    "firstCommit": "example",
    "firstTimeFound": 0,
    "uuid": null,
    "ruleId": "example",
    "findingsCount": 0,
    "publicId": 0,
    "fixOperationUuid": null,
    "engineType": 0,
    "startLine": 0,
    "endLine": 0,
    "startColumn": 0,
    "endColumn": 0,
    "helpText": "example",
    "links": [
      {
        "type": "EXTERNAL_URL",
        "url": "example"
      }
    ]
  }
]

nextPageToken

Type: string

Example: example

totalSize

Type: integer

listRevision

Type: string | null

Example: example

UUID

Type: string<uuid>

Pattern: [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}

Example: 123e4567-e89b-12d3-a456-426614174000

LinkType

Type: string

Enum: EXTERNAL_URL, SOURCECRAFT_ISSUE, SOURCECRAFT_PR, YA_TRACKER

DefectGroupLinkDto

Name

Description

type

Type: LinkType

Enum: EXTERNAL_URL, SOURCECRAFT_ISSUE, SOURCECRAFT_PR, YA_TRACKER

url

Type: string

Example: example

Example
{
  "type": "EXTERNAL_URL",
  "url": "example"
}

DefectGroupDto

Name

Description

codeBlock

Type: string

Example: example

cvssScore

Type: number

engine

Type: string

Example: example

fileName

Type: string

Example: example

firstCommit

Type: string

Example: example

firstTimeFound

Type: integer

gitRepo

Type: string

Example: example

id

Type: integer

latestCommit

Type: string

Example: example

latestTimeFound

Type: integer

neuroScore

Type: integer

neuroTriageUuid

Any of 2 types
  • Type: UUID

    Pattern: [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}

    Example: 123e4567-e89b-12d3-a456-426614174000

  • Type: null

    Example: null

Example: 123e4567-e89b-12d3-a456-426614174000

ruleId

Type: string

Example: example

ruleName

Type: string

Example: example

severity

Type: integer

status

Type: integer

uuid

Type: UUID

Pattern: [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}

Example: 123e4567-e89b-12d3-a456-426614174000

endColumn

Type: integer

endLine

Type: integer

engineType

Type: integer

findingsCount

Type: integer

fixOperationUuid

Any of 2 types
  • Type: UUID

    Pattern: [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}

    Example: 123e4567-e89b-12d3-a456-426614174000

  • Type: null

    Example: null

Example: 123e4567-e89b-12d3-a456-426614174000

helpText

Type: string | null

Example: example

links

Type: DefectGroupLinkDto[]

Example
[
  {
    "type": "EXTERNAL_URL",
    "url": "example"
  }
]

publicId

Type: integer

startColumn

Type: integer

startLine

Type: integer

Example
{
  "id": 0,
  "ruleName": "example",
  "codeBlock": "example",
  "fileName": "example",
  "latestCommit": "example",
  "latestTimeFound": 0,
  "gitRepo": "example",
  "status": 0,
  "severity": 0,
  "cvssScore": 0.5,
  "engine": "example",
  "neuroTriageUuid": "123e4567-e89b-12d3-a456-426614174000",
  "neuroScore": 0,
  "firstCommit": "example",
  "firstTimeFound": 0,
  "uuid": null,
  "ruleId": "example",
  "findingsCount": 0,
  "publicId": 0,
  "fixOperationUuid": null,
  "engineType": 0,
  "startLine": 0,
  "endLine": 0,
  "startColumn": 0,
  "endColumn": 0,
  "helpText": "example",
  "links": [
    {
      "type": "EXTERNAL_URL",
      "url": "example"
    }
  ]
}

No longer supported, please use an alternative and newer version.