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

Issues

Access and modify Security Issues

get
/api/v2/issues

List a collection of Security Issues

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

Harness Account ID

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
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
productIdstringOptional

Issue product ID

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
keystring · max: 512Optional

Compression/deduplication key

Example: json-schema@0.2.3
excludeOccurrencesbooleanOptionalExample: false
Header parameters
X-Api-KeystringOptional

Harness personal or service access token

Example: Sint quisquam quo suscipit.
Responses
200

OK response.

application/json
get/api/v2/issues
GET /gateway/sto/api/v2/issues?accountId=abcdef1234567890ghijkl HTTP/1.1
Host: app.harness.io
X-Api-Key: YOUR_API_KEY
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "pagination": {
    "link": "",
    "page": 4,
    "pageSize": 20,
    "totalItems": 230,
    "totalPages": 12
  },
  "results": [
    {
      "baseImageName": "baseImageName",
      "baselineVariantId": "abcdef1234567890ghijkl",
      "created": 1651578240,
      "currentStatus": "Rejected",
      "details": {
        "package": "json-schema",
        "version": "v0.2.3"
      },
      "epssLastModified": "2025-05-01",
      "epssPercentile": 0.15,
      "epssScore": 0.035,
      "exemptionCoverage": "PartiallyExempted",
      "exemptionId": "abcdef1234567890ghijkl",
      "exemptionStatusAtScan": "Rejected",
      "exploitability": "yes",
      "fallbackSeverityCode": "High",
      "gracePeriodDays": 13,
      "harnessAugmentation": {
        "Aut animi sit et vel.": "Ducimus dolorem eos non ratione sapiente.",
        "Quo nihil tempora quia et.": "Perferendis asperiores qui itaque placeat dolorum qui.",
        "Vel maiores vel ut nostrum quidem.": "Rem in unde in fugit quia."
      },
      "id": "abcdef1234567890ghijkl",
      "inGrace": true,
      "key": "json-schema@0.2.3",
      "numOccurrences": 10,
      "occurrenceId": 12345,
      "occurrences": [
        {
          "line": "42"
        },
        {
          "line": "666"
        }
      ],
      "originStatus": "approved",
      "origins": [
        "app",
        "base"
      ],
      "overrides": [
        {
          "created": 1651578240,
          "fieldName": "severityCode",
          "impactedTargetId": "target1111111111111111",
          "originalFieldValue": "Low",
          "overrideFieldValue": "Low",
          "overrideId": "override1234",
          "reason": "Waiting on upstream bug fix",
          "requesterEmail": "user@harness.io",
          "requesterId": "user111111111111111111",
          "requesterName": "firstname lastname"
        },
        {
          "created": 1651578240,
          "fieldName": "severityCode",
          "impactedTargetId": "target1111111111111111",
          "originalFieldValue": "Low",
          "overrideFieldValue": "Low",
          "overrideId": "override1234",
          "reason": "Waiting on upstream bug fix",
          "requesterEmail": "user@harness.io",
          "requesterId": "user111111111111111111",
          "requesterName": "firstname lastname"
        },
        {
          "created": 1651578240,
          "fieldName": "severityCode",
          "impactedTargetId": "target1111111111111111",
          "originalFieldValue": "Low",
          "overrideFieldValue": "Low",
          "overrideId": "override1234",
          "reason": "Waiting on upstream bug fix",
          "requesterEmail": "user@harness.io",
          "requesterId": "user111111111111111111",
          "requesterName": "firstname lastname"
        }
      ],
      "overridesAtScan": [
        {
          "created": 1651578240,
          "fieldName": "severityCode",
          "impactedTargetId": "target1111111111111111",
          "originalFieldValue": "Low",
          "overrideFieldValue": "Low",
          "overrideId": "override1234",
          "reason": "Waiting on upstream bug fix",
          "requesterEmail": "user@harness.io",
          "requesterId": "user111111111111111111",
          "requesterName": "firstname lastname"
        },
        {
          "created": 1651578240,
          "fieldName": "severityCode",
          "impactedTargetId": "target1111111111111111",
          "originalFieldValue": "Low",
          "overrideFieldValue": "Low",
          "overrideId": "override1234",
          "reason": "Waiting on upstream bug fix",
          "requesterEmail": "user@harness.io",
          "requesterId": "user111111111111111111",
          "requesterName": "firstname lastname"
        },
        {
          "created": 1651578240,
          "fieldName": "severityCode",
          "impactedTargetId": "target1111111111111111",
          "originalFieldValue": "Low",
          "overrideFieldValue": "Low",
          "overrideId": "override1234",
          "reason": "Waiting on upstream bug fix",
          "requesterEmail": "user@harness.io",
          "requesterId": "user111111111111111111",
          "requesterName": "firstname lastname"
        },
        {
          "created": 1651578240,
          "fieldName": "severityCode",
          "impactedTargetId": "target1111111111111111",
          "originalFieldValue": "Low",
          "overrideFieldValue": "Low",
          "overrideId": "override1234",
          "reason": "Waiting on upstream bug fix",
          "requesterEmail": "user@harness.io",
          "requesterId": "user111111111111111111",
          "requesterName": "firstname lastname"
        }
      ],
      "productId": "product1234567890abcde",
      "reachability": "reachable",
      "severity": 8.5,
      "severityCode": "High",
      "status": "Remediated",
      "subproduct": "product",
      "targetId": "abcdef1234567890ghijkl",
      "targetName": "abcdef1234567890ghijkl",
      "targetType": "repository",
      "targetVariantId": "abcdef1234567890ghijkl",
      "targetVariantName": "nodegoat:master",
      "title": "Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash",
      "type": "SAST"
    },
    {
      "baseImageName": "baseImageName",
      "baselineVariantId": "abcdef1234567890ghijkl",
      "created": 1651578240,
      "currentStatus": "Rejected",
      "details": {
        "package": "json-schema",
        "version": "v0.2.3"
      },
      "epssLastModified": "2025-05-01",
      "epssPercentile": 0.15,
      "epssScore": 0.035,
      "exemptionCoverage": "PartiallyExempted",
      "exemptionId": "abcdef1234567890ghijkl",
      "exemptionStatusAtScan": "Rejected",
      "exploitability": "yes",
      "fallbackSeverityCode": "High",
      "gracePeriodDays": 13,
      "harnessAugmentation": {
        "Aut animi sit et vel.": "Ducimus dolorem eos non ratione sapiente.",
        "Quo nihil tempora quia et.": "Perferendis asperiores qui itaque placeat dolorum qui.",
        "Vel maiores vel ut nostrum quidem.": "Rem in unde in fugit quia."
      },
      "id": "abcdef1234567890ghijkl",
      "inGrace": true,
      "key": "json-schema@0.2.3",
      "numOccurrences": 10,
      "occurrenceId": 12345,
      "occurrences": [
        {
          "line": "42"
        },
        {
          "line": "666"
        }
      ],
      "originStatus": "approved",
      "origins": [
        "app",
        "base"
      ],
      "overrides": [
        {
          "created": 1651578240,
          "fieldName": "severityCode",
          "impactedTargetId": "target1111111111111111",
          "originalFieldValue": "Low",
          "overrideFieldValue": "Low",
          "overrideId": "override1234",
          "reason": "Waiting on upstream bug fix",
          "requesterEmail": "user@harness.io",
          "requesterId": "user111111111111111111",
          "requesterName": "firstname lastname"
        },
        {
          "created": 1651578240,
          "fieldName": "severityCode",
          "impactedTargetId": "target1111111111111111",
          "originalFieldValue": "Low",
          "overrideFieldValue": "Low",
          "overrideId": "override1234",
          "reason": "Waiting on upstream bug fix",
          "requesterEmail": "user@harness.io",
          "requesterId": "user111111111111111111",
          "requesterName": "firstname lastname"
        },
        {
          "created": 1651578240,
          "fieldName": "severityCode",
          "impactedTargetId": "target1111111111111111",
          "originalFieldValue": "Low",
          "overrideFieldValue": "Low",
          "overrideId": "override1234",
          "reason": "Waiting on upstream bug fix",
          "requesterEmail": "user@harness.io",
          "requesterId": "user111111111111111111",
          "requesterName": "firstname lastname"
        }
      ],
      "overridesAtScan": [
        {
          "created": 1651578240,
          "fieldName": "severityCode",
          "impactedTargetId": "target1111111111111111",
          "originalFieldValue": "Low",
          "overrideFieldValue": "Low",
          "overrideId": "override1234",
          "reason": "Waiting on upstream bug fix",
          "requesterEmail": "user@harness.io",
          "requesterId": "user111111111111111111",
          "requesterName": "firstname lastname"
        },
        {
          "created": 1651578240,
          "fieldName": "severityCode",
          "impactedTargetId": "target1111111111111111",
          "originalFieldValue": "Low",
          "overrideFieldValue": "Low",
          "overrideId": "override1234",
          "reason": "Waiting on upstream bug fix",
          "requesterEmail": "user@harness.io",
          "requesterId": "user111111111111111111",
          "requesterName": "firstname lastname"
        },
        {
          "created": 1651578240,
          "fieldName": "severityCode",
          "impactedTargetId": "target1111111111111111",
          "originalFieldValue": "Low",
          "overrideFieldValue": "Low",
          "overrideId": "override1234",
          "reason": "Waiting on upstream bug fix",
          "requesterEmail": "user@harness.io",
          "requesterId": "user111111111111111111",
          "requesterName": "firstname lastname"
        },
        {
          "created": 1651578240,
          "fieldName": "severityCode",
          "impactedTargetId": "target1111111111111111",
          "originalFieldValue": "Low",
          "overrideFieldValue": "Low",
          "overrideId": "override1234",
          "reason": "Waiting on upstream bug fix",
          "requesterEmail": "user@harness.io",
          "requesterId": "user111111111111111111",
          "requesterName": "firstname lastname"
        }
      ],
      "productId": "product1234567890abcde",
      "reachability": "reachable",
      "severity": 8.5,
      "severityCode": "High",
      "status": "Remediated",
      "subproduct": "product",
      "targetId": "abcdef1234567890ghijkl",
      "targetName": "abcdef1234567890ghijkl",
      "targetType": "repository",
      "targetVariantId": "abcdef1234567890ghijkl",
      "targetVariantName": "nodegoat:master",
      "title": "Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash",
      "type": "SAST"
    },
    {
      "baseImageName": "baseImageName",
      "baselineVariantId": "abcdef1234567890ghijkl",
      "created": 1651578240,
      "currentStatus": "Rejected",
      "details": {
        "package": "json-schema",
        "version": "v0.2.3"
      },
      "epssLastModified": "2025-05-01",
      "epssPercentile": 0.15,
      "epssScore": 0.035,
      "exemptionCoverage": "PartiallyExempted",
      "exemptionId": "abcdef1234567890ghijkl",
      "exemptionStatusAtScan": "Rejected",
      "exploitability": "yes",
      "fallbackSeverityCode": "High",
      "gracePeriodDays": 13,
      "harnessAugmentation": {
        "Aut animi sit et vel.": "Ducimus dolorem eos non ratione sapiente.",
        "Quo nihil tempora quia et.": "Perferendis asperiores qui itaque placeat dolorum qui.",
        "Vel maiores vel ut nostrum quidem.": "Rem in unde in fugit quia."
      },
      "id": "abcdef1234567890ghijkl",
      "inGrace": true,
      "key": "json-schema@0.2.3",
      "numOccurrences": 10,
      "occurrenceId": 12345,
      "occurrences": [
        {
          "line": "42"
        },
        {
          "line": "666"
        }
      ],
      "originStatus": "approved",
      "origins": [
        "app",
        "base"
      ],
      "overrides": [
        {
          "created": 1651578240,
          "fieldName": "severityCode",
          "impactedTargetId": "target1111111111111111",
          "originalFieldValue": "Low",
          "overrideFieldValue": "Low",
          "overrideId": "override1234",
          "reason": "Waiting on upstream bug fix",
          "requesterEmail": "user@harness.io",
          "requesterId": "user111111111111111111",
          "requesterName": "firstname lastname"
        },
        {
          "created": 1651578240,
          "fieldName": "severityCode",
          "impactedTargetId": "target1111111111111111",
          "originalFieldValue": "Low",
          "overrideFieldValue": "Low",
          "overrideId": "override1234",
          "reason": "Waiting on upstream bug fix",
          "requesterEmail": "user@harness.io",
          "requesterId": "user111111111111111111",
          "requesterName": "firstname lastname"
        },
        {
          "created": 1651578240,
          "fieldName": "severityCode",
          "impactedTargetId": "target1111111111111111",
          "originalFieldValue": "Low",
          "overrideFieldValue": "Low",
          "overrideId": "override1234",
          "reason": "Waiting on upstream bug fix",
          "requesterEmail": "user@harness.io",
          "requesterId": "user111111111111111111",
          "requesterName": "firstname lastname"
        }
      ],
      "overridesAtScan": [
        {
          "created": 1651578240,
          "fieldName": "severityCode",
          "impactedTargetId": "target1111111111111111",
          "originalFieldValue": "Low",
          "overrideFieldValue": "Low",
          "overrideId": "override1234",
          "reason": "Waiting on upstream bug fix",
          "requesterEmail": "user@harness.io",
          "requesterId": "user111111111111111111",
          "requesterName": "firstname lastname"
        },
        {
          "created": 1651578240,
          "fieldName": "severityCode",
          "impactedTargetId": "target1111111111111111",
          "originalFieldValue": "Low",
          "overrideFieldValue": "Low",
          "overrideId": "override1234",
          "reason": "Waiting on upstream bug fix",
          "requesterEmail": "user@harness.io",
          "requesterId": "user111111111111111111",
          "requesterName": "firstname lastname"
        },
        {
          "created": 1651578240,
          "fieldName": "severityCode",
          "impactedTargetId": "target1111111111111111",
          "originalFieldValue": "Low",
          "overrideFieldValue": "Low",
          "overrideId": "override1234",
          "reason": "Waiting on upstream bug fix",
          "requesterEmail": "user@harness.io",
          "requesterId": "user111111111111111111",
          "requesterName": "firstname lastname"
        },
        {
          "created": 1651578240,
          "fieldName": "severityCode",
          "impactedTargetId": "target1111111111111111",
          "originalFieldValue": "Low",
          "overrideFieldValue": "Low",
          "overrideId": "override1234",
          "reason": "Waiting on upstream bug fix",
          "requesterEmail": "user@harness.io",
          "requesterId": "user111111111111111111",
          "requesterName": "firstname lastname"
        }
      ],
      "productId": "product1234567890abcde",
      "reachability": "reachable",
      "severity": 8.5,
      "severityCode": "High",
      "status": "Remediated",
      "subproduct": "product",
      "targetId": "abcdef1234567890ghijkl",
      "targetName": "abcdef1234567890ghijkl",
      "targetType": "repository",
      "targetVariantId": "abcdef1234567890ghijkl",
      "targetVariantName": "nodegoat:master",
      "title": "Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash",
      "type": "SAST"
    },
    {
      "baseImageName": "baseImageName",
      "baselineVariantId": "abcdef1234567890ghijkl",
      "created": 1651578240,
      "currentStatus": "Rejected",
      "details": {
        "package": "json-schema",
        "version": "v0.2.3"
      },
      "epssLastModified": "2025-05-01",
      "epssPercentile": 0.15,
      "epssScore": 0.035,
      "exemptionCoverage": "PartiallyExempted",
      "exemptionId": "abcdef1234567890ghijkl",
      "exemptionStatusAtScan": "Rejected",
      "exploitability": "yes",
      "fallbackSeverityCode": "High",
      "gracePeriodDays": 13,
      "harnessAugmentation": {
        "Aut animi sit et vel.": "Ducimus dolorem eos non ratione sapiente.",
        "Quo nihil tempora quia et.": "Perferendis asperiores qui itaque placeat dolorum qui.",
        "Vel maiores vel ut nostrum quidem.": "Rem in unde in fugit quia."
      },
      "id": "abcdef1234567890ghijkl",
      "inGrace": true,
      "key": "json-schema@0.2.3",
      "numOccurrences": 10,
      "occurrenceId": 12345,
      "occurrences": [
        {
          "line": "42"
        },
        {
          "line": "666"
        }
      ],
      "originStatus": "approved",
      "origins": [
        "app",
        "base"
      ],
      "overrides": [
        {
          "created": 1651578240,
          "fieldName": "severityCode",
          "impactedTargetId": "target1111111111111111",
          "originalFieldValue": "Low",
          "overrideFieldValue": "Low",
          "overrideId": "override1234",
          "reason": "Waiting on upstream bug fix",
          "requesterEmail": "user@harness.io",
          "requesterId": "user111111111111111111",
          "requesterName": "firstname lastname"
        },
        {
          "created": 1651578240,
          "fieldName": "severityCode",
          "impactedTargetId": "target1111111111111111",
          "originalFieldValue": "Low",
          "overrideFieldValue": "Low",
          "overrideId": "override1234",
          "reason": "Waiting on upstream bug fix",
          "requesterEmail": "user@harness.io",
          "requesterId": "user111111111111111111",
          "requesterName": "firstname lastname"
        },
        {
          "created": 1651578240,
          "fieldName": "severityCode",
          "impactedTargetId": "target1111111111111111",
          "originalFieldValue": "Low",
          "overrideFieldValue": "Low",
          "overrideId": "override1234",
          "reason": "Waiting on upstream bug fix",
          "requesterEmail": "user@harness.io",
          "requesterId": "user111111111111111111",
          "requesterName": "firstname lastname"
        }
      ],
      "overridesAtScan": [
        {
          "created": 1651578240,
          "fieldName": "severityCode",
          "impactedTargetId": "target1111111111111111",
          "originalFieldValue": "Low",
          "overrideFieldValue": "Low",
          "overrideId": "override1234",
          "reason": "Waiting on upstream bug fix",
          "requesterEmail": "user@harness.io",
          "requesterId": "user111111111111111111",
          "requesterName": "firstname lastname"
        },
        {
          "created": 1651578240,
          "fieldName": "severityCode",
          "impactedTargetId": "target1111111111111111",
          "originalFieldValue": "Low",
          "overrideFieldValue": "Low",
          "overrideId": "override1234",
          "reason": "Waiting on upstream bug fix",
          "requesterEmail": "user@harness.io",
          "requesterId": "user111111111111111111",
          "requesterName": "firstname lastname"
        },
        {
          "created": 1651578240,
          "fieldName": "severityCode",
          "impactedTargetId": "target1111111111111111",
          "originalFieldValue": "Low",
          "overrideFieldValue": "Low",
          "overrideId": "override1234",
          "reason": "Waiting on upstream bug fix",
          "requesterEmail": "user@harness.io",
          "requesterId": "user111111111111111111",
          "requesterName": "firstname lastname"
        },
        {
          "created": 1651578240,
          "fieldName": "severityCode",
          "impactedTargetId": "target1111111111111111",
          "originalFieldValue": "Low",
          "overrideFieldValue": "Low",
          "overrideId": "override1234",
          "reason": "Waiting on upstream bug fix",
          "requesterEmail": "user@harness.io",
          "requesterId": "user111111111111111111",
          "requesterName": "firstname lastname"
        }
      ],
      "productId": "product1234567890abcde",
      "reachability": "reachable",
      "severity": 8.5,
      "severityCode": "High",
      "status": "Remediated",
      "subproduct": "product",
      "targetId": "abcdef1234567890ghijkl",
      "targetName": "abcdef1234567890ghijkl",
      "targetType": "repository",
      "targetVariantId": "abcdef1234567890ghijkl",
      "targetVariantName": "nodegoat:master",
      "title": "Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash",
      "type": "SAST"
    }
  ]
}
post
/api/v2/issues

Create a new Security Issue

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

Harness Account ID

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

Indicates the Occurrences have already been normalized

Example: false
Header parameters
X-Api-KeystringOptional

Harness personal or service access token

Example: Laudantium necessitatibus vitae quis.
Body
epssLastModifiedstringOptional

Last date the issue EPSS data was last modified

Example: 2025-05-01
epssPercentilenumber · doubleOptional

EPSS percentile of the issue CVE identifier

Example: 0.15
epssScorenumber · doubleOptional

EPSS score of the issue CVE identifier

Example: 0.035
exemptionIdstringOptional

ID of Security Test Exemption

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

Compression/deduplication key

Example: json-schema@0.2.3
keyPatternstring[]Required

The pattern of fields used to generate this Security Issue's Key

Example: ["library_name","library_version"]
numOccurrencesinteger · int32Optional

Indicates the number of Occurrences on the Issue

Example: 10
productIdstringRequired

The scan tool that identified this Security Issue

Example: product1234567890abcdePattern: ^[a-zA-Z0-9_-]{22}$
scanIdstringRequired

The Security Scan execution that detected this Security Issue

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
severitynumber · floatRequired

Numeric severity, from 0 (lowest) to 10 (highest)

Example: 8.5
severityCodestring · enumRequired

Severity code

Example: HighPossible values:
subproductstringOptional

The subproduct that identified this Security Issue

Example: product
targetVariantNamestringOptional

Name of the associated Target and Variant

Example: nodegoat:masterPattern: ^[a-zA-Z0-9_-]{22}$
titlestring · max: 128Required

Title of the Security Issue

Example: Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash
typestring · enumOptional

The type of vulnerability or quality issue for this Issue

Example: SASTPossible values:
Responses
200

OK response.

application/json
idstringRequired

Resource identifier

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
post/api/v2/issues
POST /gateway/sto/api/v2/issues?accountId=abcdef1234567890ghijkl HTTP/1.1
Host: app.harness.io
X-Api-Key: YOUR_API_KEY
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 583

{
  "details": {
    "package": "json-schema",
    "version": "v0.2.3"
  },
  "epssLastModified": "2025-05-01",
  "epssPercentile": 0.15,
  "epssScore": 0.035,
  "exemptionId": "abcdef1234567890ghijkl",
  "key": "json-schema@0.2.3",
  "keyPattern": [
    "library_name",
    "library_version"
  ],
  "numOccurrences": 10,
  "occurrences": [
    {
      "line": "42"
    },
    {
      "line": "666"
    }
  ],
  "productId": "product1234567890abcde",
  "scanId": "abcdef1234567890ghijkl",
  "severity": 8.5,
  "severityCode": "High",
  "subproduct": "product",
  "targetVariantName": "nodegoat:master",
  "title": "Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash",
  "type": "SAST"
}
{
  "id": "abcdef1234567890ghijkl"
}
get
/api/v2/issues/{id}

Find Security Issue by ID

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

The ID of the Security Issue to retrieve

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_]*$
targetIdstringOptional

Associated Target ID

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
Header parameters
X-Api-KeystringOptional

Harness personal or service access token

Example: Explicabo in debitis accusamus laudantium sunt similique.
Responses
200

OK response.

application/json

Information about a Security Issue

baseImageNamestringOptional

base image name of the issue

Example: baseImageName
baselineVariantIdstringOptional

The Baseline Target Variant related to this Security Issue

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
createdinteger · int64Required

Unix timestamp at which the resource was created

Example: 1651578240
currentStatusstring · enumOptional

Current status of the Exemption

Example: ApprovedPossible values:
epssLastModifiedstringOptional

Last date the issue EPSS data was last modified

Example: 2025-05-01
epssPercentilenumber · doubleOptional

EPSS percentile of the issue CVE identifier

Example: 0.15
epssScorenumber · doubleOptional

EPSS score of the issue CVE identifier

Example: 0.035
exemptionCoveragestringOptional

Indicates if the Security Issue was found to be Exempted or PartiallyExempted.

Example: PartiallyExempted
exemptionIdstringOptional

ID of Security Test Exemption

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
exemptionStatusAtScanstring · enumOptional

Exemption's status at the Security Scan created time

Example: RejectedPossible values:
exploitabilitystringOptional

Exploitability status of the issue (yes or no)

Example: yes
fallbackSeverityCodestring · enumOptional

Issue-table severity code used as occurrence fallback at read time; omitted from API responses

Example: HighPossible values:
gracePeriodDaysinteger · int64Optional

Issue-level grace period rollup in days. Only populated when scan honorGracePeriod is enabled.

Example: 13
idstringRequired

Resource identifier

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

True when the displayed severity is grace-sheltered: at the display-max severity band, all non-exempt occurrences are in grace. Only populated when scan honorGracePeriod is enabled.

Example: true
keystring · max: 512Required

Compression/deduplication key

Example: json-schema@0.2.3
numOccurrencesinteger · int32Optional

Indicates the number of Occurrences on the Issue

Example: 10
occurrenceIdinteger · int64 · min: 1OptionalExample: 12345
originStatusstringOptional

The status of the origin, either 'approved' or 'unapproved'

Example: approved
originsstring[]Optional

The origins of the issue

Example: ["app","base"]
productIdstringRequired

The scan tool that identified this Security Issue

Example: product1234567890abcdePattern: ^[a-zA-Z0-9_-]{22}$
reachabilitystringOptional

Reachability status of the issue (reachable or unreachable)

Example: reachable
severitynumber · floatRequired

Numeric severity, from 0 (lowest) to 10 (highest)

Example: 8.5
severityCodestring · enumRequired

Severity code

Example: HighPossible values:
statusstring · enumOptional

Indicates if the Security Issue was found to be remediated, ignored, etc.

Example: RemediatedPossible values:
subproductstringOptional

The subproduct that identified this Security Issue

Example: product
targetIdstringOptional

The Target that this Security Issue affects

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

The Name of the Target that this Security Issue affects

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
targetTypestring · enumOptional

The type of the Target that this Security Issue affects

Example: repositoryPossible values:
targetVariantIdstringOptional

The Target Variant that this Security Issue affects

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

Name of the associated Target and Variant

Example: nodegoat:masterPattern: ^[a-zA-Z0-9_-]{22}$
titlestring · max: 128Required

Title of the Security Issue

Example: Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash
typestring · enumOptional

The type of vulnerability or quality issue for this Issue

Example: SASTPossible values:
get/api/v2/issues/{id}
GET /gateway/sto/api/v2/issues/{id}?accountId=abcdef1234567890ghijkl&orgId=example_org&projectId=example_project HTTP/1.1
Host: app.harness.io
X-Api-Key: YOUR_API_KEY
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "baseImageName": "baseImageName",
  "baselineVariantId": "abcdef1234567890ghijkl",
  "created": 1651578240,
  "currentStatus": "Rejected",
  "details": {
    "package": "json-schema",
    "version": "v0.2.3"
  },
  "epssLastModified": "2025-05-01",
  "epssPercentile": 0.15,
  "epssScore": 0.035,
  "exemptionCoverage": "PartiallyExempted",
  "exemptionId": "abcdef1234567890ghijkl",
  "exemptionStatusAtScan": "Rejected",
  "exploitability": "yes",
  "fallbackSeverityCode": "High",
  "gracePeriodDays": 13,
  "harnessAugmentation": {
    "Aut animi sit et vel.": "Ducimus dolorem eos non ratione sapiente.",
    "Quo nihil tempora quia et.": "Perferendis asperiores qui itaque placeat dolorum qui.",
    "Vel maiores vel ut nostrum quidem.": "Rem in unde in fugit quia."
  },
  "id": "abcdef1234567890ghijkl",
  "inGrace": true,
  "key": "json-schema@0.2.3",
  "numOccurrences": 10,
  "occurrenceId": 12345,
  "occurrences": [
    {
      "line": "42"
    },
    {
      "line": "666"
    }
  ],
  "originStatus": "approved",
  "origins": [
    "app",
    "base"
  ],
  "overrides": [
    {
      "created": 1651578240,
      "fieldName": "severityCode",
      "impactedTargetId": "target1111111111111111",
      "originalFieldValue": "Low",
      "overrideFieldValue": "Low",
      "overrideId": "override1234",
      "reason": "Waiting on upstream bug fix",
      "requesterEmail": "user@harness.io",
      "requesterId": "user111111111111111111",
      "requesterName": "firstname lastname"
    },
    {
      "created": 1651578240,
      "fieldName": "severityCode",
      "impactedTargetId": "target1111111111111111",
      "originalFieldValue": "Low",
      "overrideFieldValue": "Low",
      "overrideId": "override1234",
      "reason": "Waiting on upstream bug fix",
      "requesterEmail": "user@harness.io",
      "requesterId": "user111111111111111111",
      "requesterName": "firstname lastname"
    },
    {
      "created": 1651578240,
      "fieldName": "severityCode",
      "impactedTargetId": "target1111111111111111",
      "originalFieldValue": "Low",
      "overrideFieldValue": "Low",
      "overrideId": "override1234",
      "reason": "Waiting on upstream bug fix",
      "requesterEmail": "user@harness.io",
      "requesterId": "user111111111111111111",
      "requesterName": "firstname lastname"
    }
  ],
  "overridesAtScan": [
    {
      "created": 1651578240,
      "fieldName": "severityCode",
      "impactedTargetId": "target1111111111111111",
      "originalFieldValue": "Low",
      "overrideFieldValue": "Low",
      "overrideId": "override1234",
      "reason": "Waiting on upstream bug fix",
      "requesterEmail": "user@harness.io",
      "requesterId": "user111111111111111111",
      "requesterName": "firstname lastname"
    },
    {
      "created": 1651578240,
      "fieldName": "severityCode",
      "impactedTargetId": "target1111111111111111",
      "originalFieldValue": "Low",
      "overrideFieldValue": "Low",
      "overrideId": "override1234",
      "reason": "Waiting on upstream bug fix",
      "requesterEmail": "user@harness.io",
      "requesterId": "user111111111111111111",
      "requesterName": "firstname lastname"
    },
    {
      "created": 1651578240,
      "fieldName": "severityCode",
      "impactedTargetId": "target1111111111111111",
      "originalFieldValue": "Low",
      "overrideFieldValue": "Low",
      "overrideId": "override1234",
      "reason": "Waiting on upstream bug fix",
      "requesterEmail": "user@harness.io",
      "requesterId": "user111111111111111111",
      "requesterName": "firstname lastname"
    },
    {
      "created": 1651578240,
      "fieldName": "severityCode",
      "impactedTargetId": "target1111111111111111",
      "originalFieldValue": "Low",
      "overrideFieldValue": "Low",
      "overrideId": "override1234",
      "reason": "Waiting on upstream bug fix",
      "requesterEmail": "user@harness.io",
      "requesterId": "user111111111111111111",
      "requesterName": "firstname lastname"
    }
  ],
  "productId": "product1234567890abcde",
  "reachability": "reachable",
  "severity": 8.5,
  "severityCode": "High",
  "status": "Remediated",
  "subproduct": "product",
  "targetId": "abcdef1234567890ghijkl",
  "targetName": "abcdef1234567890ghijkl",
  "targetType": "repository",
  "targetVariantId": "abcdef1234567890ghijkl",
  "targetVariantName": "nodegoat:master",
  "title": "Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash",
  "type": "SAST"
}
put
/api/v2/issues/{id}

Update an existing Security Issue

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

The ID of the Security Issue to update

Example: Placeat et accusantium.
Query parameters
accountIdstringRequired

Harness Account ID

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
Header parameters
X-Api-KeystringOptional

Harness personal or service access token

Example: Harum debitis sapiente.
Body
numOccurrencesinteger · int32Optional

Indicates the number of Occurrences on the Issue

Example: 10
scanIdstringRequired

The Security Scan execution that detected this Security Issue

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
typestring · enumOptional

The type of vulnerability or quality issue for this Issue

Example: SASTPossible values:
Responses
204

Update succeeded.

No content

put/api/v2/issues/{id}
PUT /gateway/sto/api/v2/issues/{id}?accountId=abcdef1234567890ghijkl HTTP/1.1
Host: app.harness.io
X-Api-Key: YOUR_API_KEY
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 114

{
  "numOccurrences": 10,
  "occurrences": [
    {
      "line": "42"
    },
    {
      "line": "666"
    }
  ],
  "scanId": "abcdef1234567890ghijkl",
  "type": "SAST"
}

No content

post
/api/v2/issues/{id}/augment-remediation

Use AI to augment the remediation steps for this Security Issue

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

The ID of the Security Issue to augment

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

Harness Account ID

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

Harness Organization ID

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

Harness Project ID

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

If true, return only taintPathAnalysis. If false/absent, return all sections except taintPathAnalysis.

Example: true
skipCodeFixesbooleanOptional

If true, skip the code-fix AI call only; still generate remediation sections. Omits remediationCode from the result. Used when rem-agent PRs already exist for the issue.

Example: false
Header parameters
X-Api-KeystringOptional

Harness personal or service access token

Example: Ipsum magni omnis.
Body
connectorIdstringOptionalExample: Nostrum et blanditiis.
occurrenceIdinteger · int64 · min: 1RequiredExample: 12345
referenceIdstringOptionalExample: CWE-123
scanIdstringRequired

The Scan ID to use as context for the Security Issue to augment

Example: abcdefghijkl1234567890Pattern: ^[a-zA-Z0-9_-]{22}$
userSnippetstring · min: 1 · max: 1024Optional

The user-supplied code snippet

Example: func example() int { return 0 }
Responses
200

OK response.

application/json
remediationCodestringOptionalExample: Quidem quos qui eveniet.
repoContentstringOptionalExample: Culpa minima sed perferendis similique.
post/api/v2/issues/{id}/augment-remediation
POST /gateway/sto/api/v2/issues/{id}/augment-remediation?accountId=abcdef1234567890ghijkl HTTP/1.1
Host: app.harness.io
X-Api-Key: YOUR_API_KEY
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 432

{
  "connectorId": "Ut veniam esse a consectetur.",
  "dataflow": {
    "Cumque nam autem est in.": "Maxime deserunt ipsum eaque consectetur repellat dolorem.",
    "Quis cum illo non illum.": "Modi iusto sit rem autem quidem.",
    "Velit ut asperiores laboriosam non ducimus.": "Velit sapiente quia nam nostrum enim illum."
  },
  "occurrenceId": 12345,
  "referenceId": "CWE-123",
  "scanId": "abcdefghijkl1234567890",
  "userSnippet": "func example() int {\n  return 0\n}"
}
{
  "metadata": {
    "warnings": [
      {
        "message": "Alias velit sint quae.",
        "source": "Expedita exercitationem saepe est nemo explicabo assumenda."
      },
      {
        "message": "Alias velit sint quae.",
        "source": "Expedita exercitationem saepe est nemo explicabo assumenda."
      },
      {
        "message": "Alias velit sint quae.",
        "source": "Expedita exercitationem saepe est nemo explicabo assumenda."
      }
    ]
  },
  "remediationCode": "Officiis temporibus voluptates in adipisci vero consequatur.",
  "remediationSections": {
    "attackScenario": "Repudiandae nesciunt consequatur blanditiis debitis vero ut.",
    "furtherConsiderations": "Deserunt provident sint.",
    "references": "Itaque saepe tempora quod officia.",
    "remediationSteps": "Quas placeat fuga voluptatum voluptatem voluptates vero.",
    "rootCauseAnalysis": "Tempore libero.",
    "secureCodingPattern": "Quis ut dolorem provident voluptas laboriosam consequatur.",
    "taintPathAnalysis": "Magnam animi molestias mollitia dolor quidem.",
    "testCases": "Officia quam debitis dolore.",
    "verificationChecklist": "In delectus deserunt cum aut mollitia soluta.",
    "vulnerabilityOverview": "Corporis rerum necessitatibus qui."
  },
  "repoContent": "Ducimus quod nihil reiciendis fugit consequatur qui."
}

Last updated

Was this helpful?