Send Email Survey

You can refer to the Zonka Feedback Send Email Survey API documentation here and learn more from the sample request and responses provided.

Basic Email Survey

To send out a quick Email Survey using API you need just the required parameters to be passed. If any of the optional parameters are not passed the default email template that has been saved for the particular survey will be sent. If any of the Optional parameters are passed the sections of the email corresponding to the parameters passed will be overwritten.

The below are the required parameters for an email survey

The below is a list of non-mandatory variables to customize the content of an email survey

Embed a Survey Question

Zonka Feedback supports two types of email survey templates: with a Button or with an Embedded Question.

To embed a Survey question in your email survey, set the embedField as 'True'.

Additionally you can add gradient to your NPS and CES question options by using the variable below.

Please note that you should have a single-choice question as the first question in your survey if you want to send an email survey with an Embedded question.

Embed a Survey Button

To embed a Survey button in your email survey, set the embedField as 'False'.

Customizing Email

You can customize the email survey with some additional parameters such as a customized subject, message, and other parameters mentioned in the table below.

You can pass values for the components to customize the email look and feel along with the required parameters. Read how to find the hex code for your desired colors here.

Schedule Email

You can schedule the email survey to be sent later as well by sending a value for the scheduleDateTime parameter. With this, you can set up the exact date and time when the survey email should be sent from the Zonka Feedback to the recipient.

Reminder Email

At times, people don't respond to the survey invitation email and so they need to be nudged again to take the survey. When reminded, many of them complete the survey. Thus, reminder emails help improve the completion rate.

You can set up reminders for email surveys by providing values for these additional parameters.

Send to Contact Lists

Zonka Feedback supports two types of Contact Lists and Segments: Dynamic and Static. You can send email surveys to multiple recipients by adding them to these contact lists and specifying the list name in the Send Email Survey API.

You can fetch a list of Contact Lists in your account using the GET Contact Lists API

Send Additional Data

You can pass additional data as post parameters in the Send Email Survey API. You will be able to send Survey, Contact, and Hidden variables. To pass these variables you will need to use the attributes parameter.

Using Custom Variables via API

Occasionally, just by looking at where a respondent viewed the survey link, you will know certain details about them before they ever answer your survey. Custom variables let you send data through the survey web link and APIs, which may then be shown inside the survey and on any reports the survey generates. Please read more about supported variables here.

Zonka Feedback supports three types of custom variables -

  1. Survey Variables

  2. Contact Variables

  3. Hidden Variables

attributes
 {
      "flight_number": "EK 234",
      "flight_date": "10-10-2022",
      "flight_destination": "Barcelona",
      "contact_email":"carpenterj@xyz.com"
 }

Set up Email Survey Throttling

By default, Survey Throttling is set to 30 days for your Zonka Feedback account. That means emails will not be delivered to a recipient for the next 30 days if sent today. This setting can be changed or switched off from the Web App. While sending Email Surveys via API you can set this setting to be ignored.

Getting Help

If you need any help regarding the APIs please reach out to us at hello@zonkafeedback.com.

Last updated