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

<div class="openapi">

# List repository libraries with license risks and CVEs

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

## 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/dependencies
```

</div>

</div>

</div>

### Query parameters

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

_gitRepo_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**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:_{.json-schema-reset .json-schema-assertion} `\S`

_Example:_{.json-schema-reset .json-schema-example} `0199140f-4343-7c06-a7e3-b835c305b629`
{.table-cell}
||
||

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

Minimum CVE severity: NONE, LOW, MEDIUM, HIGH, CRITICAL. Inclusive.

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

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

_minLicenseRiskScore_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer &#124; null

Minimum maximum license risk score, inclusive (0–10).

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

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

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

Minimum license risk severity: NONE, LOW, MEDIUM, HIGH, CRITICAL. Inclusive.

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

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

_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

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:_{.json-schema-reset .json-schema-value} ``

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

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

Case-insensitive PURL substring. Omit or leave blank for all libraries.

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

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

_scanUuid_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**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:_{.json-schema-reset .json-schema-value} ``

_Example:_{.json-schema-reset .json-schema-example} `01890f3e-7b5c-7cc2-bc6f-3f5d8c9a1e4a`
{.table-cell}
||
|#{.json-schema-properties}

## Responses

<div class="openapi__response__code__200">

## 200 OK

OK

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "data": [
    {
      "purl": "example",
      "name": "example",
      "version": "example",
      "licenses": [
        "example"
      ],
      "maxLicenseRiskScore": 0,
      "maxLicenseRiskSeverity": "example",
      "cves": [
        {
          "cveId": "example",
          "severity": "example",
          "defectGroupUuids": [
            null
          ],
          "defectGroupPublicIds": [
            null
          ]
        }
      ],
      "maxCveSeverity": "example",
      "packageManager": "example",
      "scope": "example"
    }
  ],
  "nextPageToken": "example",
  "totalSize": 0,
  "listRevision": "example"
}
```

{% endcut %}

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

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

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

```json translate=no
[
  {
    "purl": "example",
    "name": "example",
    "version": "example",
    "licenses": [
      "example"
    ],
    "maxLicenseRiskScore": 0,
    "maxLicenseRiskSeverity": "example",
    "cves": [
      {
        "cveId": "example",
        "severity": "example",
        "defectGroupUuids": [
          "example"
        ],
        "defectGroupPublicIds": [
          0
        ]
      }
    ],
    "maxCveSeverity": "example",
    "packageManager": "example",
    "scope": "example"
  }
]
```

{% 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">

### DependencyCveDto {#entity-DependencyCveDto}

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

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

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

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

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

```json translate=no
[
  0
]
```

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

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

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

```json translate=no
[
  "example"
]
```

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

_severity_{.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
{
  "cveId": "example",
  "severity": "example",
  "defectGroupUuids": [
    "example"
  ],
  "defectGroupPublicIds": [
    0
  ]
}
```

{% endcut %}

</div>

<div class="openapi-entity">

### DependencyInfoDto {#entity-DependencyInfoDto}

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

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

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

```json translate=no
[
  {
    "cveId": "example",
    "severity": "example",
    "defectGroupUuids": [
      "example"
    ],
    "defectGroupPublicIds": [
      0
    ]
  }
]
```

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

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

License names from the scan's SBOM. Individual license risk scores are not stored.

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

```json translate=no
[
  "example"
]
```

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

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

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

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

Maximum license risk score stored for this scan, from 0 to 10.
{.table-cell}
||
||

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

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

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

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

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

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

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

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

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

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

_version_{.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
{
  "purl": "example",
  "name": "example",
  "version": "example",
  "licenses": [
    "example"
  ],
  "maxLicenseRiskScore": 0,
  "maxLicenseRiskSeverity": "example",
  "cves": [
    {
      "cveId": "example",
      "severity": "example",
      "defectGroupUuids": [
        "example"
      ],
      "defectGroupPublicIds": [
        0
      ]
    }
  ],
  "maxCveSeverity": "example",
  "packageManager": "example",
  "scope": "example"
}
```

{% endcut %}

</div>

</div>

</div>

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