curl --request GET \
--url https://app.msportal.ai/api/public/v1/surveys/{id}/stats \
--header 'Authorization: Bearer <token>'{
"data": {
"surveyId": "<string>",
"totalInvites": 123,
"completedResponses": 123,
"responseRate": 123,
"averageSentiment": 123,
"questionStats": [
{
"questionId": "<string>",
"questionText": "<string>",
"answerType": "short_text",
"responseCount": 123,
"averageValue": 123,
"optionCounts": {}
}
]
}
}Retrieve aggregated statistics for a specific survey including response rate and per-question metrics.
curl --request GET \
--url https://app.msportal.ai/api/public/v1/surveys/{id}/stats \
--header 'Authorization: Bearer <token>'{
"data": {
"surveyId": "<string>",
"totalInvites": 123,
"completedResponses": 123,
"responseRate": 123,
"averageSentiment": 123,
"questionStats": [
{
"questionId": "<string>",
"questionText": "<string>",
"answerType": "short_text",
"responseCount": 123,
"averageValue": 123,
"optionCounts": {}
}
]
}
}