curl --request POST \
--url https://zeropath.com/api/v1/issues/get \
--header 'Content-Type: application/json' \
--header 'X-ZeroPath-API-Token-Id: <api-key>' \
--header 'X-ZeroPath-API-Token-Secret: <api-key>' \
--data '
{
"issueId": "<string>",
"organizationId": "<string>"
}
'import requests
url = "https://zeropath.com/api/v1/issues/get"
payload = {
"issueId": "<string>",
"organizationId": "<string>"
}
headers = {
"X-ZeroPath-API-Token-Id": "<api-key>",
"X-ZeroPath-API-Token-Secret": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-ZeroPath-API-Token-Id': '<api-key>',
'X-ZeroPath-API-Token-Secret': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({issueId: '<string>', organizationId: '<string>'})
};
fetch('https://zeropath.com/api/v1/issues/get', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://zeropath.com/api/v1/issues/get",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'issueId' => '<string>',
'organizationId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-ZeroPath-API-Token-Id: <api-key>",
"X-ZeroPath-API-Token-Secret: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://zeropath.com/api/v1/issues/get"
payload := strings.NewReader("{\n \"issueId\": \"<string>\",\n \"organizationId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-ZeroPath-API-Token-Id", "<api-key>")
req.Header.Add("X-ZeroPath-API-Token-Secret", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://zeropath.com/api/v1/issues/get")
.header("X-ZeroPath-API-Token-Id", "<api-key>")
.header("X-ZeroPath-API-Token-Secret", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"issueId\": \"<string>\",\n \"organizationId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://zeropath.com/api/v1/issues/get")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-ZeroPath-API-Token-Id"] = '<api-key>'
request["X-ZeroPath-API-Token-Secret"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"issueId\": \"<string>\",\n \"organizationId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"repositoryId": "<string>",
"status": "open",
"generatedTitle": "<string>",
"generatedDescription": "<string>",
"language": "<string>",
"vulnClass": "<string>",
"cwes": [
"<string>"
],
"vulnCategory": "SAST",
"severity": 123,
"discoveryTool": "<string>",
"codeScanId": "<string>",
"affectedFile": "<string>",
"sastCodeSegment": "<string>",
"startLine": 123,
"endLine": 123,
"isPrBlocked": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"url": "<string>",
"repositoryName": "<string>",
"issueStatus": "PENDING_REVIEW",
"businessLogicScenario": "<string>",
"confidence": 123,
"score": 123,
"startColumn": 123,
"endColumn": 123,
"validated": "CONFIRMED",
"validationSecurityAssessment": "<string>",
"unpatchable": true,
"unpatchableReason": "<string>",
"unpatchableRemediationInstructions": "<string>",
"archivedAt": "2023-11-07T05:31:56Z",
"noLongerDetectedAt": "2023-11-07T05:31:56Z",
"noLongerDetectedReason": "<string>",
"naturalLanguageRuleEvaluationId": "<string>",
"naturalLanguageRuleViolationId": "<string>",
"naturalLanguageRuleViolation": {
"id": "<string>",
"ruleId": "<string>",
"title": "<string>",
"description": "<string>",
"confidence": 123,
"rule": {
"id": "<string>",
"name": "<string>"
}
},
"codeScan": {
"id": "<string>",
"scanTargetBranchCommitSha": "<string>"
},
"stateChangeAuthor": "<string>",
"closedBy": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
},
"falsePositiveReason": "<string>",
"falsePositiveAt": "2023-11-07T05:31:56Z",
"introducedBy": {
"contributorId": "<string>",
"userId": "<string>",
"name": "<string>",
"email": "<string>",
"platform": "<string>",
"username": "<string>",
"profileUrl": "<string>",
"profileImageUrl": "<string>",
"lineStart": 123,
"lineEnd": 123,
"timestamp": "2023-11-07T05:31:56Z"
},
"scaVulnerabilityAlertingGroupId": "<string>",
"scaReachabilityAnalyses": [
{
"id": "<string>",
"title": "<string>",
"description": "<string>",
"confidence": 123,
"severity": 123,
"isFalsePositive": true,
"falsePositiveReasoning": "<string>",
"pocCode": "<string>",
"vulnerabilityLocation": {
"id": "<string>",
"filePath": "<string>",
"startLine": 123,
"endLine": 123,
"startColumn": 123,
"endColumn": 123,
"snippet": "<string>",
"language": "<string>"
},
"cvssScore": {
"id": "<string>",
"cvssVector": "<string>",
"severity": 123
}
}
],
"patchAttemptErrorDuringScan": {
"id": "<string>",
"rawError": "<string>",
"displayError": "<string>",
"errorType": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
},
"prSubmissionErrorDuringScan": {
"id": "<string>",
"rawError": "<string>",
"displayError": "<string>",
"errorType": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
},
"patch": {
"id": "<string>",
"prLink": "<string>",
"prTitle": "<string>",
"prDescription": "<string>",
"gitDiff": "<string>",
"pullRequestStatus": "<string>",
"validated": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"detectedSecret": {
"detectorName": "<string>",
"detectorDescription": "<string>",
"decoderName": "<string>",
"rotationGuide": "<string>",
"redactedSecret": "<string>",
"verified": true
}
}{
"error": "<string>"
}{
"error": "<string>"
}Get issue
curl --request POST \
--url https://zeropath.com/api/v1/issues/get \
--header 'Content-Type: application/json' \
--header 'X-ZeroPath-API-Token-Id: <api-key>' \
--header 'X-ZeroPath-API-Token-Secret: <api-key>' \
--data '
{
"issueId": "<string>",
"organizationId": "<string>"
}
'import requests
url = "https://zeropath.com/api/v1/issues/get"
payload = {
"issueId": "<string>",
"organizationId": "<string>"
}
headers = {
"X-ZeroPath-API-Token-Id": "<api-key>",
"X-ZeroPath-API-Token-Secret": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-ZeroPath-API-Token-Id': '<api-key>',
'X-ZeroPath-API-Token-Secret': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({issueId: '<string>', organizationId: '<string>'})
};
fetch('https://zeropath.com/api/v1/issues/get', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://zeropath.com/api/v1/issues/get",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'issueId' => '<string>',
'organizationId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-ZeroPath-API-Token-Id: <api-key>",
"X-ZeroPath-API-Token-Secret: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://zeropath.com/api/v1/issues/get"
payload := strings.NewReader("{\n \"issueId\": \"<string>\",\n \"organizationId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-ZeroPath-API-Token-Id", "<api-key>")
req.Header.Add("X-ZeroPath-API-Token-Secret", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://zeropath.com/api/v1/issues/get")
.header("X-ZeroPath-API-Token-Id", "<api-key>")
.header("X-ZeroPath-API-Token-Secret", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"issueId\": \"<string>\",\n \"organizationId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://zeropath.com/api/v1/issues/get")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-ZeroPath-API-Token-Id"] = '<api-key>'
request["X-ZeroPath-API-Token-Secret"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"issueId\": \"<string>\",\n \"organizationId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"repositoryId": "<string>",
"status": "open",
"generatedTitle": "<string>",
"generatedDescription": "<string>",
"language": "<string>",
"vulnClass": "<string>",
"cwes": [
"<string>"
],
"vulnCategory": "SAST",
"severity": 123,
"discoveryTool": "<string>",
"codeScanId": "<string>",
"affectedFile": "<string>",
"sastCodeSegment": "<string>",
"startLine": 123,
"endLine": 123,
"isPrBlocked": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"url": "<string>",
"repositoryName": "<string>",
"issueStatus": "PENDING_REVIEW",
"businessLogicScenario": "<string>",
"confidence": 123,
"score": 123,
"startColumn": 123,
"endColumn": 123,
"validated": "CONFIRMED",
"validationSecurityAssessment": "<string>",
"unpatchable": true,
"unpatchableReason": "<string>",
"unpatchableRemediationInstructions": "<string>",
"archivedAt": "2023-11-07T05:31:56Z",
"noLongerDetectedAt": "2023-11-07T05:31:56Z",
"noLongerDetectedReason": "<string>",
"naturalLanguageRuleEvaluationId": "<string>",
"naturalLanguageRuleViolationId": "<string>",
"naturalLanguageRuleViolation": {
"id": "<string>",
"ruleId": "<string>",
"title": "<string>",
"description": "<string>",
"confidence": 123,
"rule": {
"id": "<string>",
"name": "<string>"
}
},
"codeScan": {
"id": "<string>",
"scanTargetBranchCommitSha": "<string>"
},
"stateChangeAuthor": "<string>",
"closedBy": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
},
"falsePositiveReason": "<string>",
"falsePositiveAt": "2023-11-07T05:31:56Z",
"introducedBy": {
"contributorId": "<string>",
"userId": "<string>",
"name": "<string>",
"email": "<string>",
"platform": "<string>",
"username": "<string>",
"profileUrl": "<string>",
"profileImageUrl": "<string>",
"lineStart": 123,
"lineEnd": 123,
"timestamp": "2023-11-07T05:31:56Z"
},
"scaVulnerabilityAlertingGroupId": "<string>",
"scaReachabilityAnalyses": [
{
"id": "<string>",
"title": "<string>",
"description": "<string>",
"confidence": 123,
"severity": 123,
"isFalsePositive": true,
"falsePositiveReasoning": "<string>",
"pocCode": "<string>",
"vulnerabilityLocation": {
"id": "<string>",
"filePath": "<string>",
"startLine": 123,
"endLine": 123,
"startColumn": 123,
"endColumn": 123,
"snippet": "<string>",
"language": "<string>"
},
"cvssScore": {
"id": "<string>",
"cvssVector": "<string>",
"severity": 123
}
}
],
"patchAttemptErrorDuringScan": {
"id": "<string>",
"rawError": "<string>",
"displayError": "<string>",
"errorType": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
},
"prSubmissionErrorDuringScan": {
"id": "<string>",
"rawError": "<string>",
"displayError": "<string>",
"errorType": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
},
"patch": {
"id": "<string>",
"prLink": "<string>",
"prTitle": "<string>",
"prDescription": "<string>",
"gitDiff": "<string>",
"pullRequestStatus": "<string>",
"validated": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"detectedSecret": {
"detectorName": "<string>",
"detectorDescription": "<string>",
"decoderName": "<string>",
"rotationGuide": "<string>",
"redactedSecret": "<string>",
"verified": true
}
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Response
Successful response
open, patched, falsePositive, notExploitable, archived, silenced SAST, SCA, IAC, SECRETS, SMART_CONTRACT Raw severity (0-10); null when no severity was ever measured for the finding, e.g. a dependency advisory with no CVSS score.
URL to view the issue in the ZeroPath UI
PENDING_REVIEW, REVIEWING, PATCHING, NON_EXPLOITABLE, FALSE_POSITIVE, ACCEPTED_RISK, RESOLVED, BACKLOG, INFORMATIONAL Composite ZeroPath score (0-100, severity x confidence); null when no severity was ever measured for the finding. Such a finding belongs to no score band.
CONFIRMED, DISCONFIRMED, UNKNOWN ID of the natural language rule evaluation that found this issue (if applicable)
ID of the natural language rule violation that found this issue (if applicable)
Natural language rule violation details if this issue was found by a custom rule
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
ID of the SCA vulnerability alerting group that created this issue (if applicable)
Reachability analyses associated with this SCA vulnerability
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?