List defect groups across readable organization repositories

Uses the same organization snapshot as gRPC, refreshed every 15 minutes by default. Repository read access is checked on every page. Returns data, totalSize, nextPageToken and listRevision. If the matching groups or their order change, restart pagination after HTTP 409. Keep organization, type, filters, sorting and pageSize unchanged while following pageToken.

Request

GET

https://appsec.sourcecraft.tech/v1/organizations/{orgId}/defect-groups

Path parameters

Name

Description

orgId

Type: string

Organization ID; this path parameter also selects the authorization scope

Pattern: \S

Example: ``

Query parameters

Name

Description

pageSize

Type: integer

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

Default: 50

Min value: 1

Max value: 250

pageToken

Type: string

Opaque nextPageToken from the preceding page; omit for the first page

Default: ``

Example: ``

rule

Type: string

Case-insensitive substring of the rule name.

Default: ``

Example: CVE-2025

severity

Type: string[]

Severity. Repeat the key to match any of the given severities.

Example: HIGH

sortBy

Type: string

severity (default), latest_time_found, status, cvss_score, engine, neuro_severity or findings_count; UUID breaks ties

Default: severity

Example: ``

sortOrder

Type: string

ASC or DESC (default)

Default: DESC

Example: ``

status

Type: string[]

Defect group status. Repeat the key to match any of the given statuses.

Example: OPEN

type

Type: string

Engine type, such as SAST, SCA, SECRETS or AI_AUDIT; omitted, blank or UNSPECIFIED means all types

Default: ``

Example: ``

Responses

200 OK

A page of defect groups, including an empty page for an empty organization

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"
        }
      ],
      "hasCodeFlow": true
    }
  ],
  "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"
      }
    ],
    "hasCodeFlow": true
  }
]

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

hasCodeFlow

Type: boolean | null

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"
    }
  ],
  "hasCodeFlow": true
}

400 Bad Request

Invalid filter, sort, type, page size or page token

401 Unauthorized

Missing or invalid authorization header

403 Forbidden

Organization membership denied

404 Not Found

Organization not found

409 Conflict

The list changed; restart without pageToken

502 Bad Gateway

Cannot list organization repositories from the platform

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

Предыдущая
Следующая