import_contacts
Bulk 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).
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 |