V3 REFERENCE Contact Lists

contactslist/:id/importlist

Import the contacts of another contact list into the current list and apply the specified action on imported contacts. In case of conflict, the contact original subscription state is overridden. Returns the ID of the job to monitor.


curl -s -X GET \
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
https://api.mailjet.com/v3/REST/contactslist/:id/importlist

    
    
Properties
Name Description
Action Action to apply on imported contacts. Values: "addforce", "addnoforce", "unsub", "duplicate-override", "duplicate-no-override"
  • Mandatory
  • [ Type AnsiString ]
ListID ID of the list to import into the current list
  • Mandatory
  • [ Type Int64 ]

Manage the duplication of a contact list


curl -s -X POST \
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
https://api.mailjet.com/v3/REST/contactslist/:id/importlist \
-H 'Content-Type: application/json' \
-d '{"Action": ...}'
Properties
Name Description
Action Action to apply on imported contacts. Values: "addforce", "addnoforce", "unsub", "duplicate-override", "duplicate-no-override"
  • Mandatory
  • [ Type AnsiString ]
ListID ID of the list to import into the current list
  • Mandatory
  • [ Type Int64 ]