Import multiple contacts at once. Supports up to 10,000 contacts per request.
Features:
- Bulk import up to 10,000 contacts per request
- Choose conflict resolution strategy (skip or update)
- Support for all contact fields including custom properties
- Tags are automatically parsed and created
- Returns detailed results (created, updated, skipped, errors)
- Email validation included
- Transaction-based for data integrity
Use Cases:
- CSV import (after client-side parsing)
- Migration from other platforms
- Batch contact creation
- Syncing contacts from external systems
Best Practices:
- Always validate emails before sending
- Use batches of 1,000 for optimal performance
- Set
on_conflict: "update"to overwrite existing contacts - Set
on_conflict: "skip"to preserve existing data (default)
Security
ApiKeyAuth
- US Data Centerhttps://api.mailerlogic.net/api/v1/contacts/import
- EU Data Center (coming soon)https://eu-api.mailerlogic.net/api/v1/contacts/import
- Basic import with required fields
- Import with all fields and custom properties
curl -i -X POST \
https://api.mailerlogic.net/api/v1/contacts/import \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
-d '{
"contacts": [
{
"email": "jane@example.com",
"first_name": "Jane",
"last_name": "Doe"
},
{
"email": "john@example.com",
"first_name": "John",
"last_name": "Smith"
}
],
"on_conflict": "skip"
}'Response
- All contacts imported successfully
- Some contacts failed validation
- Import with updates
{ "success": true, "data": { "created": 100, "updated": 0, "skipped": 0, "errors": [] } }