> For the complete documentation index, see [llms.txt](https://docs.testvibe.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.testvibe.com/testvibe-api/api-reference/runs/get_run_artifacts.md).

# get\_run\_artifacts

Exchange a run's artifact manifest for **short-lived signed download links** — Playwright traces, screenshots, videos, reports.

## Request

```
GET /api/v1/ops/projects/{project}/runs/{runId}/artifacts
```

| Parameter | In   | Type    | Required | Description              |
| --------- | ---- | ------- | -------- | ------------------------ |
| `project` | path | string  | yes      | The project's public id. |
| `runId`   | path | integer | yes      | The run id.              |

{% tabs %}
{% tab title="cURL" %}

```bash
curl -H "Authorization: Bearer $TESTVIBE_API_KEY" \
  "$TESTVIBE_SERVER/api/v1/ops/projects/$PROJECT/runs/214/artifacts"
```

{% endtab %}

{% tab title="CLI" %}

```bash
testvibe runs artifacts 214
```

{% endtab %}

{% tab title="MCP" %}
Tool **`get_run_artifacts`** — `{ "runId": 214 }`.
{% endtab %}
{% endtabs %}

## Response

```json
[
  {
    "kind": "trace",
    "path": "trace/locked-out-user.zip",
    "size": 482133,
    "url": "https://…blob.core.windows.net/…?sig=…"
  },
  {
    "kind": "screenshot",
    "path": "screenshots/locked-out-user.png",
    "size": 88241,
    "url": "https://…blob.core.windows.net/…?sig=…"
  }
]
```

{% hint style="warning" %}
The `url` links **expire quickly** by design. Fetch this endpoint right before downloading; don't store the URLs. An empty array means the run uploaded no artifacts (yet).
{% endhint %}

{% hint style="info" %}
Trace `.zip` files open in the Playwright trace viewer: `npx playwright show-trace trace.zip` — or just open the run in the TestVibe app.
{% endhint %}

## Errors

| HTTP            | When                         |
| --------------- | ---------------------------- |
| `404 not_found` | No such run in this project. |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.testvibe.com/testvibe-api/api-reference/runs/get_run_artifacts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
