# Get target execution metadata

Header metadata for one target execution on the scan history detail page: build id, CI source, pipeline name, findings count, sbom count, and whether a ShiftLeft/Qwiet scan ran.

Endpoint: GET /sto/api/v2/targets/{id}/executions/{executionId}
Version: 1.0
Security: 

## Query parameters:

  - `accountId` (string, required)
    Harness Account ID
    Example: "abcdef1234567890ghijkl"

  - `orgId` (string, required)
    Harness Organization ID
    Example: "example_org"

  - `projectId` (string, required)
    Harness Project ID
    Example: "example_project"

## Path parameters:

  - `id` (string, required)
    Target ID
    Example: "abcdef1234567890ghijkl"

  - `executionId` (string, required)
    Harness Execution ID
    Example: "abcdef1234567890ghijkl"

## Response 200 fields (application/json):

  - `buildId` (string, required)
    CI build id/number shown in UI (e.g. #222). Falls back to executionId when build id is unset.
    Example: "222"

  - `executionId` (string, required)
    Harness Execution ID
    Example: "abcdef1234567890ghijkl"

  - `findingsCount` (integer, required)
    Open findings (occurrence) count for this execution from execution_summary
    Example: 39

  - `hasShiftLeftScan` (boolean, required)
    True when this execution includes at least one Succeeded ShiftLeft/Qwiet scan (shiftleftsast, shiftleftsca, or shiftleft). UI uses this to show/hide the SBOM tab.
    Example: true

  - `pipelineName` (string, required)
    Pipeline name shown under the build id
    Example: "Security Gate"

  - `sbomCount` (integer, required)
    SBOM package count for this execution (ShiftLeft packages.oss + packages.container). 0 when unavailable.

  - `source` (string, required)
    CI/CD platform that ran this execution (harness, jenkins, github_actions, gitlab_ci, ...)
    Example: "harness"

## Response 400 fields (application/json):

  - `message` (string, required)
    Example: "Not Found"

  - `status` (integer)
    Example: 404


