JavaScript
import Migma from 'migma'; const migma = new Migma('YOUR_API_KEY'); const { data, error } = await migma.contacts.bulkImport({ subscribers: [ { email: '[email protected]', firstName: 'John' }, { email: '[email protected]', firstName: 'Jane' } ], projectId: 'PROJECT_ID' });
{ "success": true, "data": { "success": 123, "failed": 123, "updated": 123, "errors": [ "<string>" ] }, "error": "<string>" }
Bulk import contacts. Requires API key with AUDIENCE_WRITE.
API key authentication. Use 'Authorization: Bearer YOUR_API_KEY' where YOUR_API_KEY is obtained from the Migma dashboard under Settings → API Integration.
1
Show child attributes
Bulk import result
Was this page helpful?