QuestionPro is a tool for online survey software and insights solutions. Insights derived from open-ended survey responses and feedback ratings help businesses understand customer needs, employee satisfaction, and market trends, enabling data-driven decision-making to improve products and services.
Get QuestionPro API Key
Log in to QuestionPro: Access your QuestionPro account.
Navigate to the integrations and select API to generate your API key and generate your authentication keys
Configure QuestionPro API GET Request
We are accessing the survey responses endpoint in order to structure the GET request.
https://api.questionpro.{{env}}/a/api/v2/surveys/{{survey-id}}/responses?page=1&perPage=100
curl --location 'https://api.questionpro.{{env}}/a/api/v2/surveys/{{survey-id}}/responses?page=1&perPage=100' \
--header 'api-key: {{api-key}}'
Replace YOUR_API_KEY
and YOUR_SURVEY_ID
with actual values.
POST responses to Dimension
When your survey receives a response, post the data to the following endpoint:
https://tracker.dimensionlabs.io/track?platform=universal&v=10.1.1-rest&type=incoming&apiKey=API_KEY_HERE
Make sure to set the ‘Content-Type’ header to ‘application/json’ and to replace API_KEY_HERE
with your api key.
You must send the data with the following fields:
- text – string – (required)
- userId – string – (required) – should be the SAME userId for both incoming and outgoing messages this is NOT the bot’s user ID
To review all optional fields see our API reference.
The data to POST should pass the following data:
{
"text": "Hi, bot",
"userId": "+14155551234",
"platformJson": {
"whateverJson": "any JSON specific to your platform can be stored here"
}
}
Sample cURL
curl -X POST -H "Content-Type: application/json"
-d '{"text":"Hi, bot","userId":"+14155551234","platformJson":{"whateverJson":"any JSON specific to your platform can be stored here"}}'
'https://tracker.dimensionlabs.io/track?platform=sms&v=11.1.0-rest&type=incoming&apiKey=API_KEY'
Notice, you must replace the placeholder API_KEY_HERE
above with your api key.