Skip to main content
GET
/
api
/
public
/
v1
/
surveys
/
{id}
/
stats
Get survey statistics
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": {}
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Use your API key as a Bearer token. API keys can be generated in Settings → Integrations → API Access.

Path Parameters

id
string<uuid>
required

Survey ID

Response

Survey statistics

data
object
required