Contact import endpoint now supports JSON body

You can now create contact import jobs using a complete JSON definition for your contact attributes.

In order to achieve this you can pass the JSON payload in the contact import API via fileUrl or jsonBody . Just add a json file in the fileUrl parameter or JSON formatted data in the jsonBody parameter.

1curl --request POST \
22 --url https://api.sendinblue.com/v3/contacts/import \
33 --header 'Accept: application/json' \
44 --header 'Content-Type: application/json' \
55--data '
66{ "listIds": [
77 67
88 ],
99 "emailBlacklist": false,
1010 "smsBlacklist": false,
1111 "updateExistingContacts": true,
1212 "emptyContactsAttributes": false,
1313 "notifyUrl": "http://mywebhook.com",
1414 "jsonBody": [{
1515 "email": "smith@domain.com",
1616 "attributes": {
1717 "LNAME": "smith",
1818 "FNAME": "andreas",
1919 "COUNTRY": "NE"
2020 }},{
2121 "email": "jackson@domain.com",
2222 "attributes": {
2323 "LNAME": "jackson",
2424 "FNAME": "Mark",
2525 "COUNTRY": "DE",
2626 "BIRTHDAY": "11/02/1989",
2727 "PREFERED_COLOR": "BLACK"
2828 }}],
2929}
3030'