API Reference
Reports
Retrieve prompt-scan reports and interpret shared report fields.
Reports
| Method | Returns |
|---|---|
reports.get(reportId) | ScanReport |
reports.getByScan(scanId) | ScanReport |
reports.list(options?) | ReportListResponse |
const report = await zeroleaks.reports.getByScan(scanId);
console.log(report.overallScore);
console.log(report.overallVulnerability);
console.log(report.findings);
console.log(report.recommendations);Prompt reports can include extraction and injection scores, findings, attack-family statistics, sandbox tool logs, exposed canaries, kill chains, prompt remediation, and knowledge-version metadata. Runtime and endpoint reports are returned with their corresponding scan result and can include complete target and tool-call traces.