Get presigned S3 URLs for a commit's artifacts

Returns unique artifacts from all scans of this commit in the repository, matching gRPC GetArtifactPresignedUrlsByCommitHash. Returns 404 when there are no artifacts. An artifact whose file is missing from S3 has an empty presignedUrl.

Request

GET

https://appsec.sourcecraft.tech/v1/artifacts/presigned-urls

Query parameters

Name

Description

commitHash

Type: string

Commit hash whose scan artifacts to download

Pattern: \S

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: \S

Example: 0199140f-4343-7c06-a7e3-b835c305b629

Responses

200 OK

OK

Body

application/json
{
  "artifacts": [
    {
      "artifactKey": "example",
      "presignedUrl": "example",
      "engineName": "example",
      "engineType": "example"
    }
  ]
}

Name

Description

artifacts

Type: ArtifactDownloadDto[]

Example
[
  {
    "artifactKey": "example",
    "presignedUrl": "example",
    "engineName": "example",
    "engineType": "example"
  }
]

ArtifactDownloadDto

Name

Description

artifactKey

Type: string

Example: example

engineName

Type: string

Example: example

engineType

Type: string

Example: example

presignedUrl

Type: string

Example: example

Example
{
  "artifactKey": "example",
  "presignedUrl": "example",
  "engineName": "example",
  "engineType": "example"
}