# Download a run artifact
GET /api/artifacts/download
Streams a generated SDK bundle, docs preview, report file, or authenticated source input file for a run. Pass the run id plus an artifact key from `run.artifactManifest.artifacts[]`. Source input artifacts such as `input.openapi` and `input.config` require the same workspace membership and artifact entitlement as generated artifacts.
## Request
```bash
curl -X GET 'https://sourced.sh/api/artifacts/download' \
  -H 'Authorization: Bearer $SOURCED_API_KEY'
```
## Parameters

- runId (query, required): Run id that owns the artifact.
- key (query, required): Artifact storage key from `run.artifactManifest.artifacts[]`. Generated artifacts and authenticated source input artifacts are downloadable by workspace members with artifact access.

## Responses

### 200

Artifact contents.
### 400


### 401


### 402


### 403


### 404


### 410

The artifact has expired.
