Hanzo
OpenapiSecurity

Returns a single finding: which rule fired, where (path and line), the masked…

Returns a single finding: which rule fired, where (path and line), the masked preview and the SHA-256 fingerprint of the secret — the raw secret is not…

GET /v1/security/findings/{id}

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

Returns a single finding: which rule fired, where (path and line), the masked preview and the SHA-256 fingerprint of the secret — the raw secret is not stored and cannot be read back.

Scoped to the caller's org, and a finding belonging to another org is the same 404 as one that never existed.

Request

1 field.

FieldInTypeRequiredDescription
idpathstringyesID is the finding the URL names.

Response

StatusBodyMeaning
200findingViewok

200 body — 10 fields.

FieldInTypeAlwaysDescription
createdAtbodyintegerCreatedAt is when the finding was recorded, in Unix milliseconds.
fingerprintbodystringFingerprint is the SHA-256 of the raw secret.
idbodystringID addresses this finding.
linebodyintegerLine is where in that file.
pathbodystringPath is the file the secret was found in.
previewbodystringPreview is the secret MASKED — first and last characters kept, the middle starred — so a reviewer can recognise it without it being disclosed.
ruleIdbodystringRuleID is the detection rule that fired.
ruleNamebodystringRuleName is that rule's human name.
scanIdbodystringScanID is the scan that produced it.
severitybodystringSeverity ranks the finding: critical, high, medium or low.

Failure carries the platform error shape — see Errors.

Examples

hanzo security findings get <id>

Security API · All Hanzo APIs · Interactive reference

How is this guide?

On this page