For the complete documentation index, see llms.txt. This page is also available as Markdown.

Artifacts

Read APIs for the Artifacts page.

List artifacts

get
/api/v2/artifacts

List artifacts for a project.

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
accountIdstringRequired

Harness Account ID

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
orgIdstring · max: 128Required

Harness Organization ID

Example: example_orgPattern: ^[A-Za-z_][A-Za-z0-9_]*$
projectIdstring · max: 128Required

Harness Project ID

Example: example_projectPattern: ^[A-Za-z_][A-Za-z0-9_]*$
pageinteger · int64Optional

Page number to fetch (starting from 0)

Default: 0Example: 4
pageSizeinteger · int64 · min: 1 · max: 100Optional

Number of results per page

Default: 30Example: 50
sortstring · enumOptional

Sort field

Default: lastScanAtExample: severityPossible values:
orderstring · enumOptional

Sort direction

Default: DESCExample: DESCPossible values:
searchstring · max: 256Optional

Case-insensitive name substring

Example: ng-manager
typesstring · max: 64Optional

Comma-separated target types. Empty means container.

Example: containerPattern: ^((container|instance|configuration)(,(container|instance|configuration))*)?$
sourcestring · max: 1024Optional

Comma-separated artifact sources. Use Unknown for null/empty artifact_source.

Example: harness,docker_hub,UnknownPattern: ^([^,]+(,[^,]+)*)?$
scanTypesstring · max: 256Optional

Comma-separated scan types

Example: CONTAINER,SCAPattern: ^([^,]+(,[^,]+)*)?$
scannersstring · max: 512Optional

Comma-separated scanner names

Example: aqua-trivy,snykPattern: ^([^,]+(,[^,]+)*)?$
severitystringOptional

Comma-separated severities with a non-zero occurrence count

Example: critical,highPattern: ^((critical|high|medium|low|info|unassigned)(,(critical|high|medium|low|info|unassigned))*)?$
Responses
200

OK response.

application/json
get/api/v2/artifacts
GET /gateway/sto/api/v2/artifacts?accountId=abcdef1234567890ghijkl&orgId=example_org&projectId=example_project HTTP/1.1
Host: app.harness.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "pagination": {
    "link": "",
    "page": 4,
    "pageSize": 20,
    "totalItems": 230,
    "totalPages": 12
  },
  "results": [
    {
      "executionId": "abcdef1234567890ghijkl",
      "executionSource": "harness",
      "executionUrl": "https://jenkins.example.com/job/42",
      "id": "abcdef1234567890ghijkl",
      "isBaseline": true,
      "isDigest": false,
      "issueSeverityCounts": {
        "critical": 3,
        "high": 4,
        "info": 1,
        "low": 2,
        "medium": 5,
        "unassigned": 0
      },
      "lastScanAt": 1751793300000,
      "name": "harness/ng-manager",
      "occurrenceSeverityCounts": {
        "critical": 3,
        "high": 4,
        "info": 1,
        "low": 2,
        "medium": 5,
        "unassigned": 0
      },
      "pipelineId": "Security_Gate",
      "scanType": {
        "Nam id id natus.": [
          {
            "id": "trivy",
            "prettyName": "Trivy"
          },
          {
            "id": "trivy",
            "prettyName": "Trivy"
          },
          {
            "id": "trivy",
            "prettyName": "Trivy"
          }
        ]
      },
      "source": "harness",
      "targetVariantId": "abcdef1234567890ghijkl",
      "type": "container",
      "url": "us-east1-docker.pkg.dev/harness/ng-manager",
      "version": "v2.4.1"
    },
    {
      "executionId": "abcdef1234567890ghijkl",
      "executionSource": "harness",
      "executionUrl": "https://jenkins.example.com/job/42",
      "id": "abcdef1234567890ghijkl",
      "isBaseline": true,
      "isDigest": false,
      "issueSeverityCounts": {
        "critical": 3,
        "high": 4,
        "info": 1,
        "low": 2,
        "medium": 5,
        "unassigned": 0
      },
      "lastScanAt": 1751793300000,
      "name": "harness/ng-manager",
      "occurrenceSeverityCounts": {
        "critical": 3,
        "high": 4,
        "info": 1,
        "low": 2,
        "medium": 5,
        "unassigned": 0
      },
      "pipelineId": "Security_Gate",
      "scanType": {
        "Nam id id natus.": [
          {
            "id": "trivy",
            "prettyName": "Trivy"
          },
          {
            "id": "trivy",
            "prettyName": "Trivy"
          },
          {
            "id": "trivy",
            "prettyName": "Trivy"
          }
        ]
      },
      "source": "harness",
      "targetVariantId": "abcdef1234567890ghijkl",
      "type": "container",
      "url": "us-east1-docker.pkg.dev/harness/ng-manager",
      "version": "v2.4.1"
    },
    {
      "executionId": "abcdef1234567890ghijkl",
      "executionSource": "harness",
      "executionUrl": "https://jenkins.example.com/job/42",
      "id": "abcdef1234567890ghijkl",
      "isBaseline": true,
      "isDigest": false,
      "issueSeverityCounts": {
        "critical": 3,
        "high": 4,
        "info": 1,
        "low": 2,
        "medium": 5,
        "unassigned": 0
      },
      "lastScanAt": 1751793300000,
      "name": "harness/ng-manager",
      "occurrenceSeverityCounts": {
        "critical": 3,
        "high": 4,
        "info": 1,
        "low": 2,
        "medium": 5,
        "unassigned": 0
      },
      "pipelineId": "Security_Gate",
      "scanType": {
        "Nam id id natus.": [
          {
            "id": "trivy",
            "prettyName": "Trivy"
          },
          {
            "id": "trivy",
            "prettyName": "Trivy"
          },
          {
            "id": "trivy",
            "prettyName": "Trivy"
          }
        ]
      },
      "source": "harness",
      "targetVariantId": "abcdef1234567890ghijkl",
      "type": "container",
      "url": "us-east1-docker.pkg.dev/harness/ng-manager",
      "version": "v2.4.1"
    },
    {
      "executionId": "abcdef1234567890ghijkl",
      "executionSource": "harness",
      "executionUrl": "https://jenkins.example.com/job/42",
      "id": "abcdef1234567890ghijkl",
      "isBaseline": true,
      "isDigest": false,
      "issueSeverityCounts": {
        "critical": 3,
        "high": 4,
        "info": 1,
        "low": 2,
        "medium": 5,
        "unassigned": 0
      },
      "lastScanAt": 1751793300000,
      "name": "harness/ng-manager",
      "occurrenceSeverityCounts": {
        "critical": 3,
        "high": 4,
        "info": 1,
        "low": 2,
        "medium": 5,
        "unassigned": 0
      },
      "pipelineId": "Security_Gate",
      "scanType": {
        "Nam id id natus.": [
          {
            "id": "trivy",
            "prettyName": "Trivy"
          },
          {
            "id": "trivy",
            "prettyName": "Trivy"
          },
          {
            "id": "trivy",
            "prettyName": "Trivy"
          }
        ]
      },
      "source": "harness",
      "targetVariantId": "abcdef1234567890ghijkl",
      "type": "container",
      "url": "us-east1-docker.pkg.dev/harness/ng-manager",
      "version": "v2.4.1"
    }
  ]
}

List an artifact target's digests

get
/api/v2/artifacts/{id}/digests

Paginated unique digest strings for an artifact target. When variantId is omitted, unique digests come from the target's executions newest-first up to pageSize. When set, the same unique list is scoped to that version. Empty fingerprints fall back to the variant/tag name. Used as the scan-history digest filter dropdown.

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

Artifact target id

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
Query parameters
accountIdstringRequired

Harness Account ID

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
orgIdstring · max: 128Required

Harness Organization ID

Example: example_orgPattern: ^[A-Za-z_][A-Za-z0-9_]*$
projectIdstring · max: 128Required

Harness Project ID

Example: example_projectPattern: ^[A-Za-z_][A-Za-z0-9_]*$
variantIdstringOptional

Optional target variant id for version/tag scope

Example: xyz987zyx654wvu321tsr9Pattern: ^[a-zA-Z0-9_-]{22}$
searchstring · max: 256Optional

Case-insensitive substring match on effective digest (fingerprint or variant-name fallback)

Example: sha256:c381
pageinteger · int64Optional

Page number to fetch (starting from 0)

Default: 0Example: 4
pageSizeinteger · int64 · min: 1 · max: 100Optional

Results per page

Default: 15Example: 50
Responses
200

OK response.

application/json
resultsstring[]Required

Distinct effective digests: fingerprints, plus variant/tag name when a succeeded scan has an empty fingerprint

Example: ["sha256:c3810867466a","v4.11.3"]
get/api/v2/artifacts/{id}/digests
GET /gateway/sto/api/v2/artifacts/{id}/digests?accountId=abcdef1234567890ghijkl&orgId=example_org&projectId=example_project HTTP/1.1
Host: app.harness.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "pagination": {
    "link": "",
    "page": 4,
    "pageSize": 20,
    "totalItems": 230,
    "totalPages": 12
  },
  "results": [
    "sha256:c3810867466a",
    "v4.11.3"
  ]
}

Get artifact overview

get
/api/v2/artifacts/{id}/overview

Artifact detail overview for the selected version (target variant): identity, latest-execution tiles, and per-digest severity matrix.

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

Artifact target id

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
Query parameters
accountIdstringRequired

Harness Account ID

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
orgIdstring · max: 128Required

Harness Organization ID

Example: example_orgPattern: ^[A-Za-z_][A-Za-z0-9_]*$
projectIdstring · max: 128Required

Harness Project ID

Example: example_projectPattern: ^[A-Za-z_][A-Za-z0-9_]*$
variantIdstringOptional

Optional version scope; when omitted, uses the tracked version

Example: xyz987zyx654wvu321tsr9Pattern: ^[a-zA-Z0-9_-]{22}$
Responses
200

OK response.

application/json

Artifact detail overview for one version (target variant).

baselineVariantIdstringOptional

Baseline variant id when set

Example: abcdef1234567890ghijklPattern: ^([a-zA-Z0-9_-]{22}|)$
digestsstring[]Required

All distinct content digests for this version across succeeded scans, newest scanned first. Not capped; digestFindingsMatrix is a separate 5-row widget.

Example: ["sha256:c38108674664dnekvnke","sha256:aa11bb22cc33"]
executionIdstring · max: 128Optional

CI execution identifier. With pipelineId and the request org/project, FE can construct a Harness execution URL when executionUrl is empty.

Example: abcdef1234567890ghijkl
executionSourcestring · max: 256Optional

CI/CD platform of the last execution (harness, jenkins, github_actions, gitlab_ci, ...). Distinct from artifact/repo registry source. Omitted when unknown.

Example: harness
executionUrlstring · max: 1024Optional

Deep link from scan metadata (non-Harness). For Harness, often empty; FE constructs from pipelineId, executionId, and the request org/project.

Example: https://jenkins.example.com/job/42
hasShiftLeftScanbooleanRequired

True when cached ShiftLeft package counts exist for the scoped execution

Default: falseExample: false
isBaselinebooleanRequired

Whether the scoped version is the baseline

Example: true
namestringRequired

Artifact name

Example: harness/payments-api
pipelineIdstring · max: 128Optional

Harness pipeline identifier (not the pretty pipelineName). Used with executionId to construct a Harness execution URL when executionUrl is empty.

Example: Security_Gate
registryUrlstring · max: 1024Optional

Registry URL for the scoped version's latest execution. Omitted when unknown.

Example: app.harness.io/ng/module/har/harness/payments-api
sbomCountinteger · int64Required

ShiftLeft/Qwiet package count (oss + container) for the scoped execution. 0 when unavailable.

Example: 135
scannedAtinteger · int64Optional

Latest execution start time in milliseconds since Unix epoch

Example: 1751793300000
sourcestring · max: 256Optional

Artifact source for the scoped version's latest execution. Omitted when unknown. Values are snake_case: docker_hub, harness, aws_ecr, google, azure, github, jfrog_artifactory, docker_v2, local_image, local_archive.

Example: harness
targetIdstringRequired

Artifact target id

Example: abcdef1234567890ghijkl
typestring · enumRequired

Target type

Example: containerPossible values:
variantIdstringOptional

Scoped version id

Example: xyz987zyx654wvu321tsr9Pattern: ^[a-zA-Z0-9_-]{22}$
variantNamestringOptional

Version or tag name

Example: v4.11.3
versionsCountinteger · int64Required

Number of scanned versions for this artifact

Example: 3
get/api/v2/artifacts/{id}/overview
GET /gateway/sto/api/v2/artifacts/{id}/overview?accountId=abcdef1234567890ghijkl&orgId=example_org&projectId=example_project HTTP/1.1
Host: app.harness.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "baselineVariantId": "abcdef1234567890ghijkl",
  "deployments": {
    "nonProd": 10,
    "prod": 8,
    "total": 18
  },
  "digestFindingsMatrix": {
    "columnTotals": {
      "critical": 3,
      "high": 4,
      "info": 1,
      "low": 2,
      "medium": 5,
      "unassigned": 0
    },
    "grandTotal": 120,
    "rows": [
      {
        "digest": "sha256:c38108674664dnekvnke",
        "label": "sha256:c38108674664dnekvnke",
        "severityCounts": {
          "critical": 3,
          "high": 4,
          "info": 1,
          "low": 2,
          "medium": 5,
          "unassigned": 0
        },
        "total": 32
      },
      {
        "digest": "sha256:c38108674664dnekvnke",
        "label": "sha256:c38108674664dnekvnke",
        "severityCounts": {
          "critical": 3,
          "high": 4,
          "info": 1,
          "low": 2,
          "medium": 5,
          "unassigned": 0
        },
        "total": 32
      }
    ]
  },
  "digests": [
    "sha256:c38108674664dnekvnke",
    "sha256:aa11bb22cc33"
  ],
  "executionId": "abcdef1234567890ghijkl",
  "executionSource": "harness",
  "executionUrl": "https://jenkins.example.com/job/42",
  "hasShiftLeftScan": false,
  "isBaseline": true,
  "name": "harness/payments-api",
  "occurrenceSeverityCounts": {
    "critical": 3,
    "high": 4,
    "info": 1,
    "low": 2,
    "medium": 5,
    "unassigned": 0
  },
  "pipelineId": "Security_Gate",
  "registryUrl": "app.harness.io/ng/module/har/harness/payments-api",
  "sbomCount": 135,
  "scannedAt": 1751793300000,
  "source": "harness",
  "targetId": "abcdef1234567890ghijkl",
  "type": "container",
  "variantId": "xyz987zyx654wvu321tsr9",
  "variantName": "v4.11.3",
  "versionsCount": 3
}

List an artifact's scanned versions

get
/api/v2/artifacts/{id}/variants

List scanned versions for an artifact, newest first. Optional search matches version name or exact variant id.

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

Artifact target id

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
Query parameters
accountIdstringRequired

Harness Account ID

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
orgIdstring · max: 128Required

Harness Organization ID

Example: example_orgPattern: ^[A-Za-z_][A-Za-z0-9_]*$
projectIdstring · max: 128Required

Harness Project ID

Example: example_projectPattern: ^[A-Za-z_][A-Za-z0-9_]*$
searchstring · max: 256Optional

Case-insensitive version name substring, or exact variant id

Example: v4.11
pageinteger · int64Optional

Page number to fetch (starting from 0)

Default: 0Example: 4
pageSizeinteger · int64 · min: 1 · max: 100Optional

Results per page

Default: 10Example: 50
Responses
200

OK response.

application/json
get/api/v2/artifacts/{id}/variants
GET /gateway/sto/api/v2/artifacts/{id}/variants?accountId=abcdef1234567890ghijkl&orgId=example_org&projectId=example_project HTTP/1.1
Host: app.harness.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "pagination": {
    "link": "",
    "page": 4,
    "pageSize": 20,
    "totalItems": 230,
    "totalPages": 12
  },
  "results": [
    {
      "created": 1651578240,
      "hash": "deadbeefdeadbeefdeadbeefdeadbeefdeadbeef",
      "id": "abcdef1234567890ghijkl",
      "lastModified": 1651578240,
      "parameters": {
        "branch": "main"
      },
      "targetId": "abcdef1234567890ghijkl"
    },
    {
      "created": 1651578240,
      "hash": "deadbeefdeadbeefdeadbeefdeadbeefdeadbeef",
      "id": "abcdef1234567890ghijkl",
      "lastModified": 1651578240,
      "parameters": {
        "branch": "main"
      },
      "targetId": "abcdef1234567890ghijkl"
    }
  ]
}

Get artifacts overview

get
/api/v2/artifacts/overview

Aggregate widgets for the Artifacts page.

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
accountIdstringRequired

Harness Account ID

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
orgIdstring · max: 128Required

Harness Organization ID

Example: example_orgPattern: ^[A-Za-z_][A-Za-z0-9_]*$
projectIdstring · max: 128Required

Harness Project ID

Example: example_projectPattern: ^[A-Za-z_][A-Za-z0-9_]*$
Responses
200

OK response.

application/json

Aggregate widgets for the Artifacts page.

baselineSetinteger · int64Required

Artifacts with a baseline set

Example: 22
exploitRiskinteger · int64Required

Exploit Risk tile: critical-severity slice of fixAvailable. JSON key is exploitRisk (UI label: Exploit Risk).

Example: 5
fixAvailableinteger · int64Required

Sum of scanner-fix-available findings across severities (upgrade/fixed version or scanner remediation steps). Excludes Harness AI remediations.

Example: 13
issueRemediationsinteger · int64Optional

Change in remediated issues since UTC midnight

Example: 40
occurrenceRemediationsinteger · int64Optional

Change in remediated occurrences since UTC midnight

Example: 100
totalArtifactsinteger · int64Required

Total artifacts

Example: 12
get/api/v2/artifacts/overview
GET /gateway/sto/api/v2/artifacts/overview?accountId=abcdef1234567890ghijkl&orgId=example_org&projectId=example_project HTTP/1.1
Host: app.harness.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "baselineSet": 22,
  "deployments": {
    "nonProd": 10,
    "prod": 8,
    "total": 18
  },
  "exploitRisk": 5,
  "fixAvailable": 13,
  "issueRemediations": 40,
  "issueSeverityDeltas": {
    "critical": -2,
    "high": 1,
    "info": 0,
    "low": -5,
    "medium": 0,
    "unassigned": 0
  },
  "issueSeverityTotals": {
    "critical": 3,
    "high": 4,
    "info": 1,
    "low": 2,
    "medium": 5,
    "unassigned": 0
  },
  "occurrenceRemediations": 100,
  "occurrenceSeverityDeltas": {
    "critical": -2,
    "high": 1,
    "info": 0,
    "low": -5,
    "medium": 0,
    "unassigned": 0
  },
  "occurrenceSeverityTotals": {
    "critical": 3,
    "high": 4,
    "info": 1,
    "low": 2,
    "medium": 5,
    "unassigned": 0
  },
  "sourceBreakdown": [
    {
      "count": 7,
      "source": "harness"
    },
    {
      "count": 7,
      "source": "harness"
    },
    {
      "count": 7,
      "source": "harness"
    },
    {
      "count": 7,
      "source": "harness"
    }
  ],
  "totalArtifacts": 12
}

Last updated

Was this helpful?