---
title: "Create Export Job for Email Preview Test Screenshots"
method: POST
path: "/v2/preview/tests/{test_id}/exports"
tags: ["Email Preview"]
---

# Create Export Job for Email Preview Test Screenshots

`POST /v2/preview/tests/{test_id}/exports`

## Request

- Base URL: `https://api.mailgun.net`
- URL: `https://api.mailgun.net/v2/preview/tests/{test_id}/exports`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/mailgun/apis/email-preview-api/docs/v2/preview/tests/:test_id/exports/post.ts> (a function with typed inputs; its response is checked against the schema)

Initiates an export job that collects screenshots for a specified Email Preview Test. Provide the list of client IDs whose screenshots you want to export. The job status can be monitored using the job ID returned in the response.

## Path parameters

- `test_id` string, required

## Request body

- GithubComMailgunEmailpreviewClientsPreviewCreateZipExport
  - `clients` string[], required
  - `test_id` string, required

## Response `200`

A 200 response

- GithubComMailgunEmailpreviewQueueTrackingQueueTracking
  - `job_id` string, required
  - `test_id` string, required
  - `clients` string[], required
  - `job_status` string, required
  - `zip_url` string
  - `failed_clients` string[]
  - `error` GithubComMailgunEmailpreviewQueueTrackingAPIError
    - `code` string, required
    - `message` string, required

## Other responses

- `400`: A 400 response
- `401`: A 401 response
- `500`: A 500 response
- `default`: A default response

---

[API](https://skmtc.dev/mailgun/apis/email-preview-api.md) - [All operations](https://skmtc.dev/mailgun/apis/email-preview-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mailgun/apis/email-preview-api/revisions/c8a18f02bc8b?raw)
