---
metadata:
  - name: generator
    content: Diplodoc Platform v5.71.0
alternate:
  - https://vibe.sourcecraft.dev/portal/docs/en/sec-api-ref/Organization-Defect-Group-Rest-Api/v1organizationsorgIddefect-groups-get.md
  - https://vibe.sourcecraft.dev/portal/docs/ru/sec-api-ref/Organization-Defect-Group-Rest-Api/v1organizationsorgIddefect-groups-get.md
  - https://vibe.sourcecraft.dev/portal/docs/ru/sec-api-ref/Organization-Defect-Group-Rest-Api/v1organizationsorgIddefect-groups-get.md
  - href: https://vibe.sourcecraft.dev/portal/docs/ru/sec-api-ref/Organization-Defect-Group-Rest-Api/v1organizationsorgIddefect-groups-get.md
    type: text/markdown
    title: Markdown version
  - href: https://vibe.sourcecraft.dev/portal/docs/ru/llms.txt?revision=r22261781
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://vibe.sourcecraft.dev/portal/docs/ru/llms.txt?revision=r22261781

<div class="openapi">

# List defect groups across readable organization repositories

<!-- markdownlint-disable-file -->

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

<div class="openapi__requests">

<div class="openapi__request__wrapper" style="--method: var(--dc-openapi-methods-get);margin-bottom: 12px">

<div class="openapi__request">

GET {.openapi__method}
```text translate=no
https://appsec.sourcecraft.tech/v1/organizations/{orgId}/defect-groups
```

</div>

</div>

</div>

### Path parameters

#|
|| **Name** | **Description** ||
||

_orgId_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Organization ID; this path parameter also selects the authorization scope

_Pattern:_{.json-schema-reset .json-schema-assertion} `\S`

_Example:_{.json-schema-reset .json-schema-example} ``
{.table-cell}
||
|#{.json-schema-properties}

### Query parameters

#|
|| **Name** | **Description** ||
||

_pageSize_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer

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

_Default:_{.json-schema-reset .json-schema-value} `50`

_Min value:_{.json-schema-reset .json-schema-assertion} `1`

_Max value:_{.json-schema-reset .json-schema-assertion} `250`
{.table-cell}
||
||

_pageToken_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

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

_Default:_{.json-schema-reset .json-schema-value} ``

_Example:_{.json-schema-reset .json-schema-example} ``
{.table-cell}
||
||

_rule_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Case-insensitive substring of the rule name.

_Default:_{.json-schema-reset .json-schema-value} ``

_Example:_{.json-schema-reset .json-schema-example} `CVE-2025`
{.table-cell}
||
||

_severity_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string[]

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

_Example:_{.json-schema-reset .json-schema-example} `HIGH`
{.table-cell}
||
||

_sortBy_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

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

_Default:_{.json-schema-reset .json-schema-value} `severity`

_Example:_{.json-schema-reset .json-schema-example} ``
{.table-cell}
||
||

_sortOrder_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

ASC or DESC (default)

_Default:_{.json-schema-reset .json-schema-value} `DESC`

_Example:_{.json-schema-reset .json-schema-example} ``
{.table-cell}
||
||

_status_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string[]

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

_Example:_{.json-schema-reset .json-schema-example} `OPEN`
{.table-cell}
||
||

_type_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

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

_Default:_{.json-schema-reset .json-schema-value} ``

_Example:_{.json-schema-reset .json-schema-example} ``
{.table-cell}
||
|#{.json-schema-properties}

## Responses

<div class="openapi__response__code__200">

## 200 OK

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

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "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"
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_data_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [DefectGroupDto](#entity-DefectGroupDto)[]

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  {
    "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
  }
]
```

{% endcut %}
{.table-cell}
||
||

_nextPageToken_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_totalSize_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer
{.table-cell}
||
||

_listRevision_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string &#124; null

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
|#{.json-schema-properties}

</div>

<div class="openapi-entity">

### UUID {#entity-UUID}

**Type**: string&lt;uuid&gt;

_Pattern:_{.json-schema-reset .json-schema-assertion} `[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:_{.json-schema-reset .json-schema-example} `123e4567-e89b-12d3-a456-426614174000`

</div>

<div class="openapi-entity">

### LinkType {#entity-LinkType}

**Type**: string

_Enum:_{.json-schema-reset .json-schema-value} `EXTERNAL_URL`, `SOURCECRAFT_ISSUE`, `SOURCECRAFT_PR`, `YA_TRACKER`

</div>

<div class="openapi-entity">

### DefectGroupLinkDto {#entity-DefectGroupLinkDto}

#|
|| **Name** | **Description** ||
||

_type_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [LinkType](#entity-LinkType)

_Enum:_{.json-schema-reset .json-schema-value} `EXTERNAL_URL`, `SOURCECRAFT_ISSUE`, `SOURCECRAFT_PR`, `YA_TRACKER`
{.table-cell}
||
||

_url_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
|#{.json-schema-properties}

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "type": "EXTERNAL_URL",
  "url": "example"
}
```

{% endcut %}

</div>

<div class="openapi-entity">

### DefectGroupDto {#entity-DefectGroupDto}

#|
|| **Name** | **Description** ||
||

_codeBlock_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_cvssScore_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: number
{.table-cell}
||
||

_engine_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_fileName_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_firstCommit_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_firstTimeFound_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer
{.table-cell}
||
||

_gitRepo_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_id_{.json-schema-reset .json-schema-property .json-schema-required .json-schema-deprecated}_[ ](*Deprecated)_{.openapi-deprecated .openapi-deprecated-compact}
{.table-cell}|
**Type**: integer
{.table-cell}
||
||

_latestCommit_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_latestTimeFound_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer
{.table-cell}
||
||

_neuroScore_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer
{.table-cell}
||
||

_neuroTriageUuid_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
{% cut "**Any of 2 types**" %}{.json-schema-combinators data-marker=or}

- **Type**: [UUID](#entity-UUID)

  _Pattern:_{.json-schema-reset .json-schema-assertion} `[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:_{.json-schema-reset .json-schema-example} `123e4567-e89b-12d3-a456-426614174000`

- **Type**: null

  _Example:_{.json-schema-reset .json-schema-example} `null`

{% endcut %}

_Example:_{.json-schema-reset .json-schema-example} `123e4567-e89b-12d3-a456-426614174000`
{.table-cell}
||
||

_ruleId_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_ruleName_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_severity_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer
{.table-cell}
||
||

_status_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer
{.table-cell}
||
||

_uuid_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [UUID](#entity-UUID)

_Pattern:_{.json-schema-reset .json-schema-assertion} `[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:_{.json-schema-reset .json-schema-example} `123e4567-e89b-12d3-a456-426614174000`
{.table-cell}
||
||

_endColumn_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer
{.table-cell}
||
||

_endLine_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer
{.table-cell}
||
||

_engineType_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer
{.table-cell}
||
||

_findingsCount_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer
{.table-cell}
||
||

_fixOperationUuid_{.json-schema-reset .json-schema-property}
{.table-cell}|
{% cut "**Any of 2 types**" %}{.json-schema-combinators data-marker=or}

- **Type**: [UUID](#entity-UUID)

  _Pattern:_{.json-schema-reset .json-schema-assertion} `[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:_{.json-schema-reset .json-schema-example} `123e4567-e89b-12d3-a456-426614174000`

- **Type**: null

  _Example:_{.json-schema-reset .json-schema-example} `null`

{% endcut %}

_Example:_{.json-schema-reset .json-schema-example} `123e4567-e89b-12d3-a456-426614174000`
{.table-cell}
||
||

_hasCodeFlow_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: boolean &#124; null
{.table-cell}
||
||

_helpText_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string &#124; null

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_links_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: [DefectGroupLinkDto](#entity-DefectGroupLinkDto)[]

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  {
    "type": "EXTERNAL_URL",
    "url": "example"
  }
]
```

{% endcut %}
{.table-cell}
||
||

_publicId_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer
{.table-cell}
||
||

_startColumn_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer
{.table-cell}
||
||

_startLine_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer
{.table-cell}
||
|#{.json-schema-properties}

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "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
}
```

{% endcut %}

</div>

</div>

<div class="openapi__response__code__400">

## 400 Bad Request

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

</div>

<div class="openapi__response__code__401">

## 401 Unauthorized

Missing or invalid authorization header

</div>

<div class="openapi__response__code__403">

## 403 Forbidden

Organization membership denied

</div>

<div class="openapi__response__code__404">

## 404 Not Found

Organization not found

</div>

<div class="openapi__response__code__409">

## 409 Conflict

The list changed; restart without pageToken

</div>

<div class="openapi__response__code__502">

## 502 Bad Gateway

Cannot list organization repositories from the platform

</div>

</div>

[*Deprecated]: No longer supported, please use an alternative and newer version.