New: Explore the Hacktron Platform for org-wide setup, reviews, billing, and pentests.
curl --request GET \
--url https://api.example.com/scans/{id}/findings/exportDownload all findings for a scan as JSON, CSV, or SARIF.
curl --request GET \
--url https://api.example.com/scans/{id}/findings/exportreadcurl "https://api.hacktron.ai/v1/scans/a1b2c3d4-e5f6-7890-abcd-ef1234567890/findings/export?format=sarif" \
-H "X-Api-Key: $HACKTRON_API_KEY" \
-o findings.sarif
| Parameter | Type | Description |
|---|---|---|
id | UUID | Scan UUID. |
| Parameter | Type | Required | Description |
|---|---|---|---|
format | enum | Yes | One of json, csv, sarif. |
Content-Type and Content-Disposition headers depend on the requested format.
format=jsonContent-Type: application/json; charset=utf-8
format=csvContent-Type: text/csv; charset=utf-8
Content-Disposition: attachment; filename="findings-<scanId>.csv"
format=sarifContent-Type: application/sarif+json; charset=utf-8
Content-Disposition: attachment; filename="findings-<scanId>.sarif"
400 — missing or invalid format query parameter.404 — scan not found or not visible to your organization.