Triage Evidence Export API Reference
Version: 1.0
Sprint: SPRINT_9200_0001_0002, SPRINT_9200_0001_0003
Status: Stable
Overview
The Triage Evidence Export API provides endpoints for downloading complete evidence packages as archives. These endpoints support both individual finding exports and batch exports for entire scan runs.
Base URL
Endpoints
Export Finding Evidence Bundle
Downloads a complete evidence bundle for a single finding as a ZIP or TAR.GZ archive.
Path Parameters
| Parameter |
Type |
Required |
Description |
findingId |
string |
Yes |
Finding identifier |
Query Parameters
| Parameter |
Type |
Default |
Description |
format |
string |
zip |
Archive format: zip, tar.gz, targz, tgz |
| Header |
Description |
Content-Type |
application/zip or application/gzip |
Content-Disposition |
attachment; filename="evidence-{findingId}.zip" |
X-Archive-Digest |
SHA-256 digest of the archive: sha256:{digest} |
Response Codes
| Code |
Description |
| 200 |
Success - archive stream returned |
| 400 |
Invalid format specified |
| 404 |
Finding not found |
Example Request
Example Response
Binary stream of the archive file.
Get Unified Evidence
Retrieves the unified evidence package as JSON (not downloadable archive).
Path Parameters
| Parameter |
Type |
Required |
Description |
findingId |
string |
Yes |
Finding identifier |
Query Parameters
| Parameter |
Type |
Default |
Description |
includeSbom |
boolean |
true |
Include SBOM evidence |
includeReachability |
boolean |
true |
Include reachability evidence |
includeVex |
boolean |
true |
Include VEX claims |
includeAttestations |
boolean |
true |
Include attestations |
includeDeltas |
boolean |
true |
Include delta evidence |
includePolicy |
boolean |
true |
Include policy evidence |
includeReplayCommand |
boolean |
true |
Include replay command |
| Header |
Description |
ETag |
Content-addressed cache key: "{cacheKey}" |
Cache-Control |
private, max-age=300 |
Response Codes
| Code |
Description |
| 200 |
Success - evidence returned |
| 304 |
Not Modified (ETag match) |
| 404 |
Finding not found |
Example Request
Example Response (200 OK)
Get Replay Command
Retrieves the replay command for a finding.
Path Parameters
| Parameter |
Type |
Required |
Description |
findingId |
string |
Yes |
Finding identifier |
Query Parameters
| Parameter |
Type |
Default |
Description |
shells |
string[] |
["bash"] |
Target shells: bash, powershell, cmd |
includeOffline |
boolean |
false |
Include offline replay variant |
generateBundle |
boolean |
false |
Generate evidence bundle |
Response Codes
| Code |
Description |
| 200 |
Success - replay command returned |
| 404 |
Finding not found |
Example Response
Get Scan Replay Command
Retrieves the replay command for an entire scan.
Path Parameters
| Parameter |
Type |
Required |
Description |
scanId |
string |
Yes |
Scan identifier |
Query Parameters
Same as finding replay command endpoint.
Response Codes
| Code |
Description |
| 200 |
Success - replay command returned |
| 404 |
Scan not found |
ETag Caching
The unified evidence endpoint supports HTTP caching via ETag/If-None-Match:
- Initial request: Returns evidence with
ETag header
- Subsequent requests: Include
If-None-Match: "{etag}" header
- If unchanged: Returns
304 Not Modified (no body)
- If changed: Returns
200 OK with new evidence and ETag
Example flow:
Archive Integrity
To verify downloaded archives:
Evidence Card Format (v1.1)
For single-file evidence exports with offline verification support, use the Evidence Pack API's evidence-card format:
Formats
| Format |
Content-Type |
Description |
evidence-card |
application/vnd.stellaops.evidence-card+json |
Full evidence card with SBOM excerpt, DSSE envelope, and Rekor receipt |
card-compact |
application/vnd.stellaops.evidence-card-compact+json |
Compact card without full SBOM |
| Header |
Description |
X-Evidence-Pack-Id |
Pack identifier |
X-Content-Digest |
SHA-256 content digest |
X-Evidence-Card-Version |
Schema version (e.g., "1.0.0") |
X-Rekor-Log-Index |
Rekor transparency log index (when available) |
See Evidence Decision API for complete schema.
See Also