---
title: "Import Preview Route"
method: POST
path: "/api/v1/customers/import/preview"
tags: ["customers"]
---

# Import Preview Route

`POST /api/v1/customers/import/preview`

Match uploaded emails against the PostHog pool and preview the import.

## Headers

- `authorization` string, nullable — Bearer <token>

## Request body

- EmailMatchRequest — Emails parsed from an uploaded CSV, to match against the PostHog pool.
  - `emails` string[], required

## Response `200`

Successful Response

- EnvelopeEmailMatchPreview
  - `data` EmailMatchPreview, required — Result of matching uploaded emails against the workspace's PostHog pool. `matched_emails` is the de-duplicated set of emails confirmed present in PostHog and not already imported; the confirm step imports exactly these, so PostHog is only queried once per flow (at preview time).
    - `total_emails` integer, required
    - `invalid` integer, required
    - `dropped` integer, required
    - `matched_pool` integer, required
    - `already_imported` integer, required
    - `to_import` integer, required
    - `unmatched` integer, required
    - `matched_emails` string[], required
    - `sample_unmatched` string[], required
  - `meta` Meta
    - `request_id` string
    - `timestamp` string, date-time
    - `total` integer, nullable
    - `truncated` boolean, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/minro/apis/minro-cs-platform.md) · [All operations](https://skmtc.dev/minro/apis/minro-cs-platform/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/minro/minro-cs-platform/revisions/eb854265cf29/schema)
