Survey results
Export responses as CSV
GET
/surveys/{id}/responses/exportNeedsanalytics.exportOne row per response, one column per question; at most 50,000 rows. 30 exports an hour per workspace.
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"group?stringNPS group.
Value in
"promoter""passive""detractor"status?stringCompleted or partial.
Value in
"completed""partial"q?stringSearch text answers.
Response Body
CSV file (UTF-8 with BOM)
response?stringtext/csvShell
curl -X GET 'https://app.cueston.com/api/surveys/1/responses/export'Example Response
JSON
"string"