SurveysIdResponses
List survey responses
Newest first. Each response carries its answers with the current question text.
Authorization
BearerAuth AuthorizationBearer <token>
Use an API key from the Produktly dashboard → Settings → API keys.
In: header
Path Parameters
id*integer
Range
0 < valueQuery Parameters
limit?integer
Range
0 < value <= 100Default
50offset?|
Range
0 <= valueDefault
0startDate?string
endDate?string
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/surveys/1/responses"{ "data": [ { "id": 0, "createdAt": "2019-08-24T14:15:22Z", "email": "string", "userId": "string", "language": "string", "device": "string", "url": "string", "askedQuestionIds": [ "string" ], "answers": [ { "questionId": "string", "question": "string", "type": "string", "value": "string", "values": [ "string" ], "otherText": "string" } ] } ], "pagination": { "total": 0, "limit": 0, "offset": 0 }}Update a survey PATCH
Only the fields you send are changed. settings are merged over stored settings, and settings.questions replaces the whole list: keep existing question ids so stored responses still line up. active: false unpublishes. Editing a live survey needs the publish scope.
Get survey results GET
Per-question results: counts for choice, rating and NPS questions (with the NPS score), latest answers for text questions. reached counts respondents shown each question, fewer than the total on a branching survey.