# Get Artifact

- **Method:** `GET`
- **Path:** `/api/v1/runs/{run_id}/artifact`
- **Operation ID:** `get_artifact`
- **Tags:** artifact

The run's whole artifact: every issue, verdict, opportunity and tester error, each session's outcome,
the summary, and the evidence refs behind them, as one document in the published artifact format.

A 404 until the run has assembled one: a `completed` run has one, and a run that failed or was cancelled
before assembly has none. The per-kind views (`/issues`, `/verdicts`, `/opportunities`,
`/tester-errors`) serve the same records with how each may be acted on beside them.

## Effective servers

- `https://api.saram.sh`

  Saram

## Authentication

- **HTTPBearer**: HTTP bearer

  a Saram API key (`sk_saram_<env>_...`) or a person's AuthKit access token, as `Authorization: Bearer <credential>`. Both are told apart by shape and produce the same principal.

## Path parameters

- **`run_id` (required)**: `string`

## Responses

### 200 Successful Response

**Content type:** `application/json`

`object`

**Example:**

```json
{
  "additionalProperty": "anything"
}
```

### 403 the API key lacks the required scope

### 422 Validation Error

**Content type:** `application/json`

schema: `HTTPValidationError`

- **`detail`**: `array`

  **Items:**

  schema: `ValidationError`
  - **`loc` (required)**: `array of (string | integer)`
  - **`msg` (required)**: `string`
  - **`type` (required)**: `string`
  - **`ctx`**: `object`
  - **`input`**: `any`

**Example:**

```json
{
  "detail": [
    {
      "loc": [
        ""
      ],
      "msg": "",
      "type": "",
      "input": null,
      "ctx": {}
    }
  ]
}
```

## Schemas

- `HTTPValidationError` — shown above.
- `ValidationError` — shown above.
