Create Contact Import
Import contacts from an uploaded CSV file. The file is stored and processed in the background; poll GET /v1/contacts/imports/{id} for status and counts. Requires API key with audience:write.
Authorizations
API key authentication. Use 'Authorization: Bearer YOUR_API_KEY' where YOUR_API_KEY is obtained from the Migma dashboard under Settings → Developers → API Keys.
Body
CSV file to import
Project ID
JSON string mapping subscriber fields to CSV header names. Only email is required. Supported keys: email, firstName, lastName, name, phone, country, language, and customFields (an object mapping each custom field key to its CSV header). Example: {"email":"Email","firstName":"First Name","customFields":{"plan":"Plan"}}.
How to handle rows whose email already exists.
skip, upsert CSV field delimiter.
Tag names to apply to every imported contact, as a JSON array (e.g. ["newsletter"]) or a comma-separated string. Tags are created if they do not exist.