---
title: "Download an artifact from the latest CI build"
method: GET
path: "/app/{appId}/release/{releaseId}/stepRun/{stepRunId}/build/latest/download"
tags: ["release"]
---

# Download an artifact from the latest CI build

`GET /app/{appId}/release/{releaseId}/stepRun/{stepRunId}/build/latest/download`

## Request

- Base URL: `https://api.runway.team`
- URL: `https://api.runway.team/app/{appId}/release/{releaseId}/stepRun/{stepRunId}/build/latest/download`
- Auth: API key in header `X-API-Key`

Redirects to a short-lived signed URL for an artifact persisted by Runway from the newest non-skipped build on a Flightpaths release-candidate step. Omit `artifactId` to select the preferred primary binary artifact, or pass an artifact ID from the newest build returned by the existing release-step endpoint. This works for every CI provider when Runway has persisted the artifact.

## Path parameters

- `appId` string, required
- `releaseId` string, required
- `stepRunId` string, required

## Query parameters

- `artifactId` string

## Other responses

- `302`: Redirect to a temporary signed artifact download URL
- `400`: Bad request response
- `404`: Resource not found response

---

[API](https://skmtc.dev/runway/apis/runway-rest-api.md) - [All operations](https://skmtc.dev/runway/apis/runway-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/runway/apis/runway-rest-api/revisions/081109863a9a?raw)
