Import contacts
import_contactsBulk import contacts from CSV data (min column: email), optionally straight into audiences and/or with tags. This is the tool for cross-app flows; e.g. pulling people out of Gmail, a CRM, or a spreadsheet and landing them in a Send16 audience in one call. Set updateExisting for upsert semantics (safe to re-run). Requires consentConfirmed: true, so confirm with the user that everyone on the list opted in before calling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Tag NAMES to apply to all imported contacts; matched case-insensitively, created if missing | |
| apiKey | No | Send16 API key (overrides SEND16_API_KEY env var) | |
| csvData | Yes | CSV string with headers. Required column: "email". Optional: "firstName", "lastName" | |
| audienceIds | No | Add all imported contacts to these audience IDs (see list_audiences / create_audience) | |
| updateExisting | No | Whether to update contacts that already exist | |
| consentConfirmed | No | Required, must be true. Set it only after the user has confirmed every person on this list opted in to hear from them. Never set it for bought, rented or scraped lists. If you haven't asked, ask first. |