---
metadata:
  - name: generator
    content: Diplodoc Platform v5.71.0
alternate:
  - https://vibe.sourcecraft.dev/portal/docs/en/sec-api-ref/Artifacts/v1artifactspresigned-urls-get.md
  - https://vibe.sourcecraft.dev/portal/docs/en/sec-api-ref/Artifacts/v1artifactspresigned-urls-get.md
  - https://vibe.sourcecraft.dev/portal/docs/ru/sec-api-ref/Artifacts/v1artifactspresigned-urls-get.md
  - href: https://vibe.sourcecraft.dev/portal/docs/en/sec-api-ref/Artifacts/v1artifactspresigned-urls-get.md
    type: text/markdown
    title: Markdown version
  - href: https://vibe.sourcecraft.dev/portal/docs/en/llms.txt?revision=r22261781
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://vibe.sourcecraft.dev/portal/docs/en/llms.txt?revision=r22261781

<div class="openapi">

# Get presigned S3 URLs for a commit's artifacts

<!-- markdownlint-disable-file -->

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

<div class="openapi__requests">

<div class="openapi__request__wrapper" style="--method: var(--dc-openapi-methods-get);margin-bottom: 12px">

<div class="openapi__request">

GET {.openapi__method}
```text translate=no
https://appsec.sourcecraft.tech/v1/artifacts/presigned-urls
```

</div>

</div>

</div>

### Query parameters

#|
|| **Name** | **Description** ||
||

_commitHash_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Commit hash whose scan artifacts to download

_Pattern:_{.json-schema-reset .json-schema-assertion} `\S`

_Example:_{.json-schema-reset .json-schema-example} ``
{.table-cell}
||
||

_gitRepo_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**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:_{.json-schema-reset .json-schema-assertion} `\S`

_Example:_{.json-schema-reset .json-schema-example} `0199140f-4343-7c06-a7e3-b835c305b629`
{.table-cell}
||
|#{.json-schema-properties}

## Responses

<div class="openapi__response__code__200">

## 200 OK

OK

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "artifacts": [
    {
      "artifactKey": "example",
      "presignedUrl": "example",
      "engineName": "example",
      "engineType": "example"
    }
  ]
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_artifacts_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [ArtifactDownloadDto](#entity-ArtifactDownloadDto)[]

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  {
    "artifactKey": "example",
    "presignedUrl": "example",
    "engineName": "example",
    "engineType": "example"
  }
]
```

{% endcut %}
{.table-cell}
||
|#{.json-schema-properties}

</div>

<div class="openapi-entity">

### ArtifactDownloadDto {#entity-ArtifactDownloadDto}

#|
|| **Name** | **Description** ||
||

_artifactKey_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_engineName_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_engineType_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_presignedUrl_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
|#{.json-schema-properties}

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "artifactKey": "example",
  "presignedUrl": "example",
  "engineName": "example",
  "engineType": "example"
}
```

{% endcut %}

</div>

</div>

</div>

[*Deprecated]: No longer supported, please use an alternative and newer version.