---
title: "Create an export of test run artifacts"
method: POST
path: "/report/runArtifacts/testRun/{test_run_id}"
tags: ["Reporting"]
---

# Create an export of test run artifacts

`POST /report/runArtifacts/testRun/{test_run_id}`

Initiate an asynchronous export of specified test run artifacts, such as screenshots or HAR logs. This endpoint returns an export ID. Use the export ID with the [get export](https://api.help.mabl.com/reference/gettestrunartifactexport) endpoint to retrieve the download URL.

## Path parameters

- `test_run_id` string, required

## Request body

- TestRunArtifactExport
  - `id` string — Export ID
  - `created_time` integer — Export request time (epoch milliseconds)
  - `last_updated_time` integer — Export last updated time (epoch milliseconds)
  - `workspace_id` string — Workspace ID
  - `status` 'queued' | 'running' | 'completed' | 'failed' | 'terminated' — Export status
  - `test_run_id` string — ID of the test run exported
  - `artifact_types` string[], required — Requested export artifact types
  - `export_signed_url` string — Signed download URL (populated when status is completed)

## Response `201`

Export request created

- TestRunArtifactExport
  - `id` string — Export ID
  - `created_time` integer — Export request time (epoch milliseconds)
  - `last_updated_time` integer — Export last updated time (epoch milliseconds)
  - `workspace_id` string — Workspace ID
  - `status` 'queued' | 'running' | 'completed' | 'failed' | 'terminated' — Export status
  - `test_run_id` string — ID of the test run exported
  - `artifact_types` string[], required — Requested export artifact types
  - `export_signed_url` string — Signed download URL (populated when status is completed)

## Other responses

- `400` — Invalid or missing parameter
- `401` — User not authenticated
- `403` — User not authorized
- `404` — Unknown error
- `default` — Unknown error

---

[API](https://skmtc.net/mabl/apis/mabl-api.md) · [All operations](https://skmtc.net/mabl/apis/mabl-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mabl/mabl-api/revisions/d0fc0114da66/schema)
