---
metadata:
  - name: generator
    content: Diplodoc Platform v5.71.0
alternate:
  - https://sourcecraft.dev/portal/docs/en/sec-api-ref/Findings-Rest-Api/v1findingsfindingUuidcode-flow-get.md
  - https://sourcecraft.dev/portal/docs/ru/sec-api-ref/Findings-Rest-Api/v1findingsfindingUuidcode-flow-get.md
  - https://sourcecraft.dev/portal/docs/ru/sec-api-ref/Findings-Rest-Api/v1findingsfindingUuidcode-flow-get.md
  - href: https://sourcecraft.dev/portal/docs/ru/sec-api-ref/Findings-Rest-Api/v1findingsfindingUuidcode-flow-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 a finding's SAST code-flow steps

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

Returns steps ordered by codeFlowIndex, threadFlowIndex and stepOrder. Returns an empty list when the finding has no steps or does not belong to this repository.

## 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/findings/{findingUuid}/code-flow
```

</div>

</div>

</div>

### Path parameters

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

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

UUID of the finding returned by /v1/findings

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

### 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}
||
|#{.json-schema-properties}

## Responses

<div class="openapi__response__code__200">

## 200 OK

OK

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "codeFlowSteps": [
    {
      "fileName": "example",
      "startLine": 0,
      "endLine": 0,
      "startColumn": 0,
      "endColumn": 0,
      "codeBlock": "example",
      "message": "example",
      "stepOrder": 0,
      "codeFlowIndex": 0,
      "threadFlowIndex": 0,
      "locationType": "LOCATION_TYPE_UNSPECIFIED"
    }
  ]
}
```

{% endcut %}

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

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

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

```json translate=no
[
  {
    "fileName": "example",
    "startLine": 0,
    "endLine": 0,
    "startColumn": 0,
    "endColumn": 0,
    "codeBlock": "example",
    "message": "example",
    "stepOrder": 0,
    "codeFlowIndex": 0,
    "threadFlowIndex": 0,
    "locationType": "LOCATION_TYPE_UNSPECIFIED"
  }
]
```

{% endcut %}
{.table-cell}
||
|#{.json-schema-properties}

</div>

<div class="openapi-entity">

### LocationType {#entity-LocationType}

**Type**: string

_Enum:_{.json-schema-reset .json-schema-value} `LOCATION_TYPE_UNSPECIFIED`, `LOCATION_TYPE_FILE`, `LOCATION_TYPE_LINE`, `LOCATION_TYPE_FRAGMENT`, `LOCATION_TYPE_DAST_TARGET`, `UNRECOGNIZED`

</div>

<div class="openapi-entity">

### CodeFlowStepDto {#entity-CodeFlowStepDto}

#|
|| **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}
||
||

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

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

_endLine_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer
{.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}
||
||

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

_Enum:_{.json-schema-reset .json-schema-value} `LOCATION_TYPE_UNSPECIFIED`, `LOCATION_TYPE_FILE`, `LOCATION_TYPE_LINE`, `LOCATION_TYPE_FRAGMENT`, `LOCATION_TYPE_DAST_TARGET`, `UNRECOGNIZED`
{.table-cell}
||
||

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

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

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

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

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

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

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

```json translate=no
{
  "fileName": "example",
  "startLine": 0,
  "endLine": 0,
  "startColumn": 0,
  "endColumn": 0,
  "codeBlock": "example",
  "message": "example",
  "stepOrder": 0,
  "codeFlowIndex": 0,
  "threadFlowIndex": 0,
  "locationType": "LOCATION_TYPE_UNSPECIFIED"
}
```

{% endcut %}

</div>

</div>

</div>

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