---
updatedAt: 2026-10-21T12:12:00.000Z
agentTools:
  projectIndex: https://developers.katalon.com/llms.txt
---

# Export and download a test run

A successful request to this endpoint exports and downloads a test run summary file in the specified format (`PDF`, `CSV`, `XSLX`, `ZIP`, or `HAR`).

## Request

This request uses the GET method, which is used to retrieve and export the details of a specific test run or execution from the specified resource.

For basic authorization, replace this with your actual username and password (or API key) in the header request in the `username:password` or `username:api_key` format. Your user creds are combined to form a Base64 encoded string.

Provide the following required query parameters:

* `id`: the alphanumeric ID of the test run or execution. This is required.
* `fileType`: The file type you wish to download the test run or execution report as. You may choose either CSV, PDF, XSLX, ZIP, or HAR.

## Response

If authorized, the API response provides a download link of the test run or execution report formatted in the `fileType` selected. If you have not provided the `fileType`, the default is in CSV.

For more information, see [Download report files using REST API](https://docs.katalon.com/docs/analyze/reports/view-test-reports/view-test-reports-in-katalon-testops/view-test-run-results/download-test-report-files#download-report-files-using-rest-api).

## Try it!

1. Enter the test run ID and select the file type below.
2. Select the language in **Language**.
3. Enter your user name or API credentials.
4. Review your API call and click **Try it**!

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "x-stoplight": {
    "id": "5qnzx749ssg4b"
  },
  "info": {
    "title": "Katalon TestOps API reference",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://testops.katalon.io",
      "description": "Generated server url"
    }
  ],
  "security": [
    {
      "basicScheme": []
    }
  ],
  "tags": [
    {
      "name": "Test Run"
    }
  ],
  "paths": {
    "/api/v1/executions/{id}/export": {
      "get": {
        "tags": [
          "Test Run"
        ],
        "summary": "Export and download a test run",
        "operationId": "download_5",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "fileType",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "PDF",
                "CSV",
                "XLSX",
                "ZIP",
                "HAR"
              ],
              "default": "CSV"
            },
            "description": "The format for the summary file."
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "description": "A successful request to this endpoint exports and downloads a test run summary file in the specified format (`PDF`, `CSV`, `XSLX`, `ZIP`, or `HAR`)."
      }
    }
  },
  "components": {
    "securitySchemes": {
      "basicScheme": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```