curl --request POST \
--url https://zeropath.com/api/v1/stats/securityPosture \
--header 'Content-Type: application/json' \
--header 'X-ZeroPath-API-Token-Id: <api-key>' \
--header 'X-ZeroPath-API-Token-Secret: <api-key>' \
--data '
{
"organizationId": "<string>",
"projectId": "<string>",
"startDate": "2023-12-25",
"endDate": "2023-12-25",
"timeGranularity": "day",
"severities": [
"critical"
]
}
'{
"summary": {
"overallRiskScore": 123,
"riskTrend": "improving",
"totalOpenIssues": 123,
"criticalIssues": 123,
"highIssues": 123,
"mediumIssues": 123,
"lowIssues": 123,
"vulnerabilityDensity": 123,
"repositoriesAtRisk": 123,
"totalRepositories": 123,
"meanRemediationTime": 123,
"averagePrScanTime": 123
},
"exposure": {
"meanCriticalExposure": 123,
"meanHighExposure": 123,
"meanMediumExposure": 123,
"meanLowExposure": 123,
"meanInfoExposure": 123,
"oldestCriticalAge": 123,
"oldestHighAge": 123,
"oldestMediumAge": 123,
"oldestLowAge": 123,
"oldestInfoAge": 123
},
"trends": [
{
"date": "2023-12-25",
"openIssues": 123,
"newIssues": 123,
"resolvedIssues": 123,
"riskScore": 123,
"criticalIssues": 123,
"meanRemediationTime": 123,
"exposure": {
"meanCriticalExposure": 123,
"meanHighExposure": 123,
"meanMediumExposure": 123,
"meanLowExposure": 123,
"meanInfoExposure": 123,
"oldestCriticalAge": 123,
"oldestHighAge": 123,
"oldestMediumAge": 123,
"oldestLowAge": 123,
"oldestInfoAge": 123
}
}
],
"topRiskFactors": [
{
"vulnClass": "<string>",
"count": 123
}
],
"repositoryRiskScores": [
{
"id": "<string>",
"name": "<string>",
"riskScore": 123,
"openIssues": 123,
"criticalIssues": 123,
"highIssues": 123,
"mediumIssues": 123,
"lowIssues": 123,
"infoIssues": 123
}
]
}curl --request POST \
--url https://zeropath.com/api/v1/stats/securityPosture \
--header 'Content-Type: application/json' \
--header 'X-ZeroPath-API-Token-Id: <api-key>' \
--header 'X-ZeroPath-API-Token-Secret: <api-key>' \
--data '
{
"organizationId": "<string>",
"projectId": "<string>",
"startDate": "2023-12-25",
"endDate": "2023-12-25",
"timeGranularity": "day",
"severities": [
"critical"
]
}
'{
"summary": {
"overallRiskScore": 123,
"riskTrend": "improving",
"totalOpenIssues": 123,
"criticalIssues": 123,
"highIssues": 123,
"mediumIssues": 123,
"lowIssues": 123,
"vulnerabilityDensity": 123,
"repositoriesAtRisk": 123,
"totalRepositories": 123,
"meanRemediationTime": 123,
"averagePrScanTime": 123
},
"exposure": {
"meanCriticalExposure": 123,
"meanHighExposure": 123,
"meanMediumExposure": 123,
"meanLowExposure": 123,
"meanInfoExposure": 123,
"oldestCriticalAge": 123,
"oldestHighAge": 123,
"oldestMediumAge": 123,
"oldestLowAge": 123,
"oldestInfoAge": 123
},
"trends": [
{
"date": "2023-12-25",
"openIssues": 123,
"newIssues": 123,
"resolvedIssues": 123,
"riskScore": 123,
"criticalIssues": 123,
"meanRemediationTime": 123,
"exposure": {
"meanCriticalExposure": 123,
"meanHighExposure": 123,
"meanMediumExposure": 123,
"meanLowExposure": 123,
"meanInfoExposure": 123,
"oldestCriticalAge": 123,
"oldestHighAge": 123,
"oldestMediumAge": 123,
"oldestLowAge": 123,
"oldestInfoAge": 123
}
}
],
"topRiskFactors": [
{
"vulnClass": "<string>",
"count": 123
}
],
"repositoryRiskScores": [
{
"id": "<string>",
"name": "<string>",
"riskScore": 123,
"openIssues": 123,
"criticalIssues": 123,
"highIssues": 123,
"mediumIssues": 123,
"lowIssues": 123,
"infoIssues": 123
}
]
}Was this page helpful?