Using personalized content when sending a bulk mailing via the API

Starting from in the 11.5 Webpower release, this feature will be available for all users.

Before you start, make sure that you have valid rest credentials for the license. Setting up these can be done via AdminREST credentials. See also: Authorizing and getting a token for the REST API.

Email personalization in bulk

We have extended the existing REST API call to support using personalized content when sending a mailing in bulk.

/api/index.php/rest/{campaignId}/contacts/send

mceclip0.pngAlso see the API documentation at https://[name of the license].webpower.eu/admin/api/swagger/.

By optionally providing extra contact data in the request, you can use that data to be merged in the mailing sendout. The extra contact data is only available and used in email personalization. Therefore, you cannot use the online version of the email.


Example

request body:

{
"mailingId": 317,
"groups": [
70
],

"overwrite": true,
"addDuplicateToGroup": true,
"contacts": [
{
"email": "mimo@tripolis.com",
"name" : "Mimo",
"lang": "nl"
},
{
"email": "margam@tripolis.com",
"name" : "Master Mimo",
"lang": "nl"
}
],
"extraContactData": [
{
"field": "DMDCompany",
"value": [
{
"Level": "A - Master ",
"Items": [
{
"Title": "ARCHITECT (M/V/X)",
"Type": "statutair",
"Deadline": "2020-08-19",
"EnrollmentLink": "HTTPS://...."
},
{
"Title": "BUSINESS ANALISTEN (M/V/X)",
"Type": "iets anders dan statutair",
"Deadline": "2020-08-28",
"EnrollmentLink": "HTTPS://...."
}
]
},
{
"Level": "B - Beginners ",
"Items": [
{
"Title": "SCHILDERS (M/V/X)",
"Type": "parttime",
"Deadline": "2022-10-05",
"EnrollmentLink": "HTTPS://...."
},
{
"Title": "BÅKKÊRS (M/V/X)",
"Type": "parttime extended",
"Deadline": "2022-10-02",
"EnrollmentLink": "HTTPS://...."
}
]
}
]
}
]
}

 

Results in the email:
Screenshot_2023-02-13_at_11.27.29.png