Get a fresh presigned S3 URL to download a report
Resolves the report by reportUuid, or by scanUuid, or the latest report of the repository when neither is given, and returns its metadata with a fresh presigned S3 download URL. For scan/latest lookups, format (PDF default) and, for SARIF, engineType (UNSPECIFIED = combined) select the slice; a reportUuid already pins it.
Request
GET
https://appsec.sourcecraft.tech/v1/reports/presigned-url
Query parameters
|
Name |
Description |
|
engineType |
Type: string | null For SARIF scan/latest lookups: engine slice — UNSPECIFIED (default) for the combined report, or SECRETS/SCA/SAST/DAST for a per-engine report. Example: `` |
|
format |
Type: string | null Report format to download for scan/latest lookups: PDF (default) or SARIF. Example: `` |
|
gitRepo |
Type: string Repository identifier. Accepts either internal repository ID (e.g., 88769874964302633) or public UUID (e.g., 0199140f-4343-7c06-a7e3-b835c305b629). These values can be obtained from the getRepo API (fields: id and uuid). Pattern: Example: |
|
reportUuid |
Type: string | null UUID of the report to download Example: `` |
|
scanUuid |
Type: string | null UUID of the scan whose report to download Example: |
Responses
200 OK
OK
Body
application/json
{
"reportUuid": "example",
"scanUuid": "example",
"format": "example",
"engineType": "example",
"createdAt": 0,
"presignedUrl": "example"
}
|
Name |
Description |
|
createdAt |
Type: integer |
|
engineType |
Type: string Example: |
|
format |
Type: string Example: |
|
presignedUrl |
Type: string Example: |
|
reportUuid |
Type: string Example: |
|
scanUuid |
Type: string Example: |