Import contacts

Synchronize your own list with Cakemail by importing to your active, unsubscribed or delete contacts.

Using the SDK

from cakemail.models import ImportContacts, ImportContactData

api.contact.import_contacts(
    list_id=<list ID>,
    import_contacts=ImportContacts(
        import_to='active',
        contacts=[ImportContactData(email='<contact email address>')]
    )
)
<?php

$api->contact->importContacts([
    'list_id' => <list ID>,
    'contacts' => new \Cakemail\Lib\Model\ImportContacts(
        'import_to' => 'active',
        'contacts' => [
            new \Cakemail\Lib\Model\ImportContactData(
                'email' => '<contact email address>'
            )
        ]
    )
]);
Language
Authentication
OAuth2
Click Try It! to start a request and see the response here!