Authorizations
Body
application/json
curl --request POST \
--url https://zeropath.com/api/v1/sca/alerts/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>",
"repositoryIds": [
"<string>"
],
"page": 1,
"pageSize": 50,
"query": "<string>",
"languages": [
"<string>"
],
"severities": [
"critical"
],
"reachability": [
"reachable"
]
}'{
"alerts": [
{
"id": "<string>",
"isAlerted": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"metadata": {
"id": "<string>",
"packageIdentifier": "<string>",
"aliases": [
"<string>"
],
"references": [
"<string>"
],
"summary": "<string>",
"description": "<string>",
"severityScore": 123,
"severity": "critical"
},
"languages": [
"<string>"
],
"reachabilityCounts": {
"reachable": 123,
"needsReview": 123,
"unreachable": 123
}
}
],
"totalCount": 123,
"page": 123,
"pageSize": 123
}List consolidated SCA alerts with filters for language, severity, and reachability.
curl --request POST \
--url https://zeropath.com/api/v1/sca/alerts/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>",
"repositoryIds": [
"<string>"
],
"page": 1,
"pageSize": 50,
"query": "<string>",
"languages": [
"<string>"
],
"severities": [
"critical"
],
"reachability": [
"reachable"
]
}'{
"alerts": [
{
"id": "<string>",
"isAlerted": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"metadata": {
"id": "<string>",
"packageIdentifier": "<string>",
"aliases": [
"<string>"
],
"references": [
"<string>"
],
"summary": "<string>",
"description": "<string>",
"severityScore": 123,
"severity": "critical"
},
"languages": [
"<string>"
],
"reachabilityCounts": {
"reachable": 123,
"needsReview": 123,
"unreachable": 123
}
}
],
"totalCount": 123,
"page": 123,
"pageSize": 123
}