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
Parameter | Value | Description |
---|---|---|
| string | Survey Id of the survey to be sent |
| 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
Parameter | Value | Description |
---|---|---|
| string | Name of the recipient |
| string | Subject of the email |
| string | Content for message body of the email |
| 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'.
Parameter | Datatype | Description |
---|---|---|
| boolean | Enables you to select if the first question in your survey should be embedded in the email. Set as |
Additionally you can add gradient to your NPS and CES question options by using the variable below.
Parameter | Value | Description |
---|---|---|
| boolean | Gradient for NPS and CES button. Set as |
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'.
Parameter | Datatype | Description |
---|---|---|
| boolean | Set it as |
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.
Parameter | Value | Description |
---|---|---|
| string | Content of heading text |
| string | Color of the heading text. Enter color Hex code |
| string | Content of the button |
| string | Color of the button bext. Enter color Hex code |
| 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.
Parameter | Value | Description |
---|---|---|
| date | Specify a future Date and Time for which the email survey is to be scheduled, in the format of YYYY-MM-DDThh:mm:ssTZ |
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.
Parameter | Value | Description |
---|---|---|
| string | Set as |
| string | Numbers of reminders you want to send if the recipient does not respond to the original survey email. |
| string | Reminder to be sent how many days after the original survey email is sent |
| 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 |
| 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.
Parameter | Value | Description |
---|---|---|
| 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.
Parameter | Value | Description |
---|---|---|
| boolean | Set as |
If you need any help regarding the APIs please reach out to us at hello@zonkafeedback.com.