Survey results
Results summary
GET
/surveys/{id}/responses/summaryNeedsanalytics.viewTotals, NPS (% promoters − % detractors, −100…100), a weekly trend and per-question results.
Authorization
secretKeyheader
AuthorizationBearer <sk_…>A secret API key from Settings → API keys. It acts with its creator's role.
Path Parameters
id*integerThe survey's id.
Range
1 <= valueQuery Parameters
days?integerTime window in days.
Default
30Value in
73090environment?stringWhich environment's responses.
Default
"production"Value in
"production""staging"Response Body
OK
application/json- response
survey*summary*Shell
curl -X GET 'https://app.cueston.com/api/surveys/1/responses/summary'Example Response
JSON
{
"survey": {
"id": 42,
"name": "Quarterly NPS"
},
"summary": {
"range": {
"from": "2026-10-26T09:30:00Z",
"to": "2026-10-26T09:30:00Z"
},
"environment": "production",
"totals": {
"impressions": 1840,
"viewers": 0,
"responses": 0,
"completed": 0,
"partial": 0,
"responseRate": 0
},
"nps": {
"questionId": "string",
"score": 0,
"promoters": 0,
"passives": 0,
"detractors": 0,
"total": 3
},
"trend": [
{}
],
"questions": [
{}
]
}
}