curl --request POST \
--url https://zeropath.com/api/v1/issues/search \
--header 'Content-Type: application/json' \
--header 'X-ZeroPath-API-Token-Id: <api-key>' \
--header 'X-ZeroPath-API-Token-Secret: <api-key>' \
--data '
{
"organizationId": "<string>",
"page": 1,
"pageSize": 10,
"searchQuery": "<string>",
"severities": {
"min": 5,
"max": 5
},
"scores": {
"min": 50,
"max": 50
},
"sortBy": "score",
"sortOrder": "desc",
"languages": [
"<string>"
],
"vulnerabilityClasses": [
"<string>"
],
"repositoryIds": [
"<string>"
],
"projectId": "<string>",
"scanId": "<string>",
"codeScanTypes": [
"FullScan"
],
"types": [
"open"
],
"processStatuses": [
"PENDING_REVIEW"
],
"getCounts": true,
"returnAll": true,
"ruleId": "<string>"
}
'{
"issues": [
{
"id": "<string>",
"repositoryId": "<string>",
"status": "open",
"generatedTitle": "<string>",
"generatedDescription": "<string>",
"language": "<string>",
"vulnClass": "<string>",
"cwes": [
"<string>"
],
"vulnCategory": "SAST",
"severity": 123,
"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>",
"processStatus": "PENDING_REVIEW",
"processStatusSetAt": "2023-11-07T05:31:56Z",
"processStatusSetBy": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
},
"businessLogicScenario": "<string>",
"confidence": 123,
"score": 123,
"startColumn": 123,
"endColumn": 123,
"validated": "CONFIRMED",
"validationSecurityAssessment": "<string>",
"unpatchable": true,
"unpatchableReason": "<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
}
}
],
"totalCount": 123,
"totalCountAllCategories": 123,
"categoryCounts": {
"open": 123,
"patched": 123,
"falsePositive": 123,
"notExploitable": 123,
"archived": 123,
"silenced": 123,
"closed": 123
},
"currentPage": 123,
"pageSize": 123
}Search for security issues across your repositories. You can filter by various criteria including custom rule ID.
To find all issues detected by a specific custom rule, include the ruleId parameter in your request.
curl --request POST \
--url https://zeropath.com/api/v1/issues/search \
--header 'Content-Type: application/json' \
--header 'X-ZeroPath-API-Token-Id: <api-key>' \
--header 'X-ZeroPath-API-Token-Secret: <api-key>' \
--data '
{
"organizationId": "<string>",
"page": 1,
"pageSize": 10,
"searchQuery": "<string>",
"severities": {
"min": 5,
"max": 5
},
"scores": {
"min": 50,
"max": 50
},
"sortBy": "score",
"sortOrder": "desc",
"languages": [
"<string>"
],
"vulnerabilityClasses": [
"<string>"
],
"repositoryIds": [
"<string>"
],
"projectId": "<string>",
"scanId": "<string>",
"codeScanTypes": [
"FullScan"
],
"types": [
"open"
],
"processStatuses": [
"PENDING_REVIEW"
],
"getCounts": true,
"returnAll": true,
"ruleId": "<string>"
}
'{
"issues": [
{
"id": "<string>",
"repositoryId": "<string>",
"status": "open",
"generatedTitle": "<string>",
"generatedDescription": "<string>",
"language": "<string>",
"vulnClass": "<string>",
"cwes": [
"<string>"
],
"vulnCategory": "SAST",
"severity": 123,
"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>",
"processStatus": "PENDING_REVIEW",
"processStatusSetAt": "2023-11-07T05:31:56Z",
"processStatusSetBy": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
},
"businessLogicScenario": "<string>",
"confidence": 123,
"score": 123,
"startColumn": 123,
"endColumn": 123,
"validated": "CONFIRMED",
"validationSecurityAssessment": "<string>",
"unpatchable": true,
"unpatchableReason": "<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
}
}
],
"totalCount": 123,
"totalCountAllCategories": 123,
"categoryCounts": {
"open": 123,
"patched": 123,
"falsePositive": 123,
"notExploitable": 123,
"archived": 123,
"silenced": 123,
"closed": 123
},
"currentPage": 123,
"pageSize": 123
}x >= 1x >= 1Show child attributes
Filter by score range (severity × confidence). Applied additively with other filters.
Show child attributes
createdAt, severity, score, title, class, file, detected, patch asc, desc FullScan, PrScan open, patched, falsePositive, notExploitable, archived, closed, silenced Filter issues by process status
PENDING_REVIEW, REVIEWING, RESOLVED Filter issues by custom rule ID - returns only issues that were found by the specified custom rule