---
title: "Create Mailing List Import"
method: POST
path: "/print-mail/v1/mailing_list_imports"
tags: ["Mailing List Imports"]
---

# Create Mailing List Import

`POST /print-mail/v1/mailing_list_imports`

Create a new mailing list import.

Initiates the import process for a contact list file. The import enters the
`validating` status while contacts are processed and verified.

## Headers

- `idempotency-key` string

## Request body

- MailingListImportCreate — Parameters for creating a new mailing list import.
  - `description` string — An optional string describing this resource. Will be visible in the API and the dashboard.
  - `metadata` object — See the section on Metadata.
  - `file` union, required — The CSV file for this import.
    - string, uri
    - string, byte
  - `fileType` 'csv', required — Type of file supported for mailing list imports.
  - `receiverMergeVariableMapping` object — Optional mapping of columns for receiver merge variables.
  - `senderMergeVariableMapping` object — Optional mapping of columns for sender merge variables.
  - `receiverAddressMapping` object, required — Mapping of columns for receiver addresses.
  - `senderAddressMapping` object — Optional mapping of columns for sender addresses. If this is present, then all receivers should have a corresponding sender.

## Response `201`

The newly created mailing list import in `validating` status.

- MailingListImportResponse — Read-only view of a MailingListImport
  - `id` string, required — A unique ID prefixed with mailing_list_import_
  - `description` string — An optional string describing this resource. Will be visible in the API and the dashboard.
  - `metadata` object — See the section on Metadata.
  - `live` boolean, required — `true` if this is a live mode resource else `false`.
  - `createdAt` string, date-time, required — The UTC time at which this resource was created.
  - `updatedAt` string, date-time, required — The UTC time at which this resource was last updated.
  - `status` 'validating' | 'completed' | 'changes_required', required — Status of the mailing list import process.
  - `reportURL` string, uri — A temporary URL to download the processing report, available once the import is completed.
  - `errors` MailingListImportProcessError[], required — A list of processing errors encountered, if any. Present when status is 'changes_required'.
    - `type` 'no_valid_contacts_error' | 'multiple_countries_error' | 'invalid_contact_count_error' | 'internal_service_error', required — Type of error encountered during import processing.
    - `message` string, required — A human-readable message describing the error.
  - `notes` Note[], required — Additional notes about the import process.
    - `type` 'truncated_test_file' | 'skipped_invalid_contacts', required — Type of note attached to the import process.
    - `message` string, required — A human-readable message describing the note.
  - `validRowCount` integer, required — Number of valid rows processed from the file.
  - `invalidRowCount` integer, required — Number of invalid rows found in the file.
  - `receiverStatusCount` VerificationStatusCount, required — Count of contact verification statuses.
    - `verifiedCount` integer, required — Number of contacts that were verified without changes.
    - `correctedCount` integer, required — Number of contacts that were corrected during verification.
    - `failedCount` integer, required — Number of contacts that failed verification.
  - `senderStatusCount` VerificationStatusCount — Count of contact verification statuses.
    - `verifiedCount` integer, required — Number of contacts that were verified without changes.
    - `correctedCount` integer, required — Number of contacts that were corrected during verification.
    - `failedCount` integer, required — Number of contacts that failed verification.
  - `organization` string, required — The organization that owns this import.
  - `file` MailingListImportResponseFile, required — The file object your controller returns: all the mappings plus a signed URL.
    - `fileType` 'csv', required — Type of file supported for mailing list imports.
    - `receiverAddressMapping` object, required — Mapping of columns for receiver addresses. Contact fields to file columns. Possible Contact fields: - description - firstName - lastName - email - phoneNumber - companyName - addressLine1 - addressLine2 - jobTitle - city - postalOrZip - provinceOrState - countryCode
    - `receiverMergeVariableMapping` object — Optional mapping of columns for receiver merge variables.
    - `senderAddressMapping` object — Optional mapping of columns for sender addresses.
    - `senderMergeVariableMapping` object — Optional mapping of columns for sender merge variables.
    - `url` string, uri, required — The signed URL your controller generates.

## Other responses

- `400` — The newly created mailing list import in `validating` status.
- `401` — The newly created mailing list import in `validating` status.
- `404` — The newly created mailing list import in `validating` status.
- `422` — The newly created mailing list import in `validating` status.
- `429` — The newly created mailing list import in `validating` status.
- `500` — The newly created mailing list import in `validating` status.

---

[API](https://skmtc.net/postgrid/apis/postgrid-address-verification-api.md) · [All operations](https://skmtc.net/postgrid/apis/postgrid-address-verification-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/postgrid/postgrid-address-verification-api/versions/537d2bbc624a/schema)
