SurveySensum is a SAAS application, using the application anyone can create multiple surveys. These surveys can be shared to the customers through multiple channels like WhatsApp, Email, SMS. Once customers receive the survey, they click on the survey link (survey link which is shared via different channels), once user fills the survey on web application the response is captured SurveySensum platform. All the responses and the reporting can be viewed in SurveySensum reporting module. Below is the flow when user is manually sharing the survey form the platform.
Feedback collection flow:
API integration is essential when you need to automate survey distribution in real-time after a transaction or key customer interaction. This ensures timely feedback collection without manual intervention.
Customer Onboarding – Trigger a survey after a user completes the signup process.
Customer Query Resolution – Send a feedback survey once a support ticket is closed.
Account Closure – Collect insights when a customer closes their account.
In these scenarios, SurveySensum provides a REST API to seamlessly communicate with the survey share module, allowing businesses to trigger surveys programmatically after a transaction or event. This ensures that feedback is gathered at the right moment for better insights and improved customer experience.
Prerequisites for API integrations:
1. The survey should already be there in the SurveySensum. You can build the survey using the build module of SurveySensum, the SurveyGuid is required in the API call. Survey GUID can be copied from the platform URL as following screenshot:
a. Login to your SurveySensum account and go to your Account Settings.
b. On the settings page, go to Integration and Apps, Created Apps and then click 'Create Your App'
c. Enter the app name and a short description of your app and click on Create New App.
d. Once you create an app, an Access token will be visible on the screen with all permissions.
e. You can change permissions if you want to. But make sure to re-generate your Access token to apply those new permissions.
Request API: {{baseUrl}}/v2/Share/shareSurvey
Request Headers:
Authorization: Bearer {token}
Content-type: application/json
Note: Token can be generated by logging in to SurveySensum platform-> Setting-> Integrations & Apps-> Created Apps, here you can create a new app for getting an Auth token
Query Parameters | ||
Name | Type | Optional |
surveyGuid | string | No |
shareId | string | Yes |
Request body:
{
"channelType": "Email",
"contactInfo": [
{
"key": "Contact prop descriptor Code",
"value": "Contact prop value"
}
],
"metadata": [
{
"key": "Metadata prop descriptor code",
"value": "Metadata value"
}
],
"delayMinutes": 0
}
Example curl :
curl -X POST " {{baseUrl}}/v2/Share/shareSurvey?surveyGuid=919a168f-2b97-45b8-b7ce-f45e85c6154e" -H "accept: text/plain" -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI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o\":[{\"key\":\"vz_c_email\",\"value\":\"gabriella.gonzalles@akulaku.com\"}]}"