Send Email Survey
Last updated
Last updated
You can refer to the Zonka Feedback Send Email Survey API documentation here and learn more from the sample request and responses provided.
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
surveyId
string
Survey Id of the survey to be sent
email
string
Email address of the recipient to which the email is to be sent
The below is a list of non-mandatory variables to customize the content of an email survey
name
string
Name of the recipient
subject
string
Subject of the email
message
string
Content for message body of the email
signature
string
Signature content at the end of the email
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'.
embedField
boolean
Enables you to select if the first question in your survey should be embedded in the email. Set as true
to embed.
Additionally you can add gradient to your NPS and CES question options by using the variable below.
embedFieldButtonGradient
boolean
Gradient for NPS and CES button. Set as true
if you want to set gradient
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.
To embed a Survey button in your email survey, set the embedField as 'False'.
embedField
boolean
Set it as false
if a Start Survey button should be included.
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.
heading
string
Content of heading text
headingColor
string
Color of the heading text. Enter color Hex code
buttonText
string
Content of the button
buttonTextColor
string
Color of the button bext. Enter color Hex code
buttonColor
string
Color of the Start Survey button. Enter color Hex code
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.
scheduleDateTime
date
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.
reminder
string
Set as true
if you want to send a reminder to recipients who do not fill the survey.
reminderMaxCount
string
Numbers of reminders you want to send if the recipient does not respond to the original survey email.
reminderSendAfter
string
Reminder to be sent how many days after the original survey email is sent
reminderMessage
string
Specify the Reminder Email message
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.
Parameter
Value
Description
list
array
Specify the Contact List names to which the email is to be sent
You can fetch a list of Contact Lists in your account using the GET Contact Lists API
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.
attributes
object with key-value pair
Key-value pair of survey attributes.
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 -
Survey Variables
Contact Variables
Hidden Variables
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.
ignoreThrottling
boolean
Set as true
if you want to ignore your survey throttling settings, false
if not.
If you need any help regarding the APIs please reach out to us at hello@zonkafeedback.com.
Specify a future Date and Time for which the email survey is to be scheduled, in the format of