Hanzo
OpenapiSecurity

Returns one scan together with every finding on it, so the detail view is one…

Returns one scan together with every finding on it, so the detail view is one round-trip rather than a list call per scan.

GET /v1/security/scans/{id}

Addresshttps://api.hanzo.ai/v1/security/scans/{id}
MethodGET
Operationget_security_scans_by_id
AuthAuthorization: Bearer $HANZO_API_KEY

Returns one scan together with every finding on it, so the detail view is one round-trip rather than a list call per scan. The findings carry masked previews and fingerprints, never secrets.

Scoped to the caller's org: a scan id belonging to another org is the same 404 as an id that never existed, so a ruleset learns nothing about what exists elsewhere. No validated org is refused.

Request

1 field.

FieldInTypeRequiredDescription
idpathstringyesID is the scan the URL names.

Response

StatusBodyMeaning
200scanDetailok

200 body — 21 fields.

FieldInTypeAlwaysDescription
findingsbodyfindingView[]Findings is every finding on that scan, so the detail view is one round-trip.
findings[].createdAtbodyintegerCreatedAt is when the finding was recorded, in Unix milliseconds.
findings[].fingerprintbodystringFingerprint is the SHA-256 of the raw secret.
findings[].idbodystringID addresses this finding.
findings[].linebodyintegerLine is where in that file.
findings[].pathbodystringPath is the file the secret was found in.
findings[].previewbodystringPreview is the secret MASKED — first and last characters kept, the middle starred — so a reviewer can recognise it without it being disclosed.
findings[].ruleIdbodystringRuleID is the detection rule that fired.
findings[].ruleNamebodystringRuleName is that rule's human name.
findings[].scanIdbodystringScanID is the scan that produced it.
findings[].severitybodystringSeverity ranks the finding: critical, high, medium or low.
scanbodyscanView
scan.createdAtbodyintegerCreatedAt is when the scan ran, in Unix milliseconds.
scan.criticalbodyintegerCritical is how many findings carry the highest severity.
scan.filesbodyintegerFiles is how many files the scan read.
scan.findingsbodyintegerFindings is how many secrets fired across them.
scan.highbodyintegerHigh is how many findings rank high.
scan.idbodystringID addresses this scan and every finding on it.
scan.lowbodyintegerLow is how many findings rank low.
scan.mediumbodyintegerMedium is how many findings rank medium.
scan.projectbodystringProject is the sub-scope the scan was filed under.

Failure carries the platform error shape — see Errors.

Examples

hanzo security scans get <id>

Security API · All Hanzo APIs · Interactive reference

How is this guide?

On this page