Skip to main content

Get a responses for a specific survey

This endpoint retrieves responses for a specific survey.

Request

GET https://api.nicereply.com/surveys/<ID>/responses

By default, list of responses is sorted by created_at as DESC.

Path Parameters

ParameterData TypeDescription
IDUUIDID of the survey.

Query Parameters

Pagination is supported.

ParameterRequiredDescription
created_afterNoDate
created_beforeNoDate

Example response

200 OK
{
"data": [
{
"id": "018a88f2-c3bf-777b-ac48-f53263563fe0",
"feedback_object_id": "82f3a55d-aa55-4973-84de-b3797a9a7550",
"survey_id": "<ID>",
"customer_id": null,
"from": null,
"ticket_id": null,
"location": "",
"ip_address": "10.98.218.143",
"is_instant": false,
"status": "CLOSED",
"created_at": "2023-09-12T12:32:05+02:00",
"updated_at": "2023-09-26T10:16:40+02:00",
"answers": [
{
"id": "fc0a1886-4d6b-483e-9326-8dc2efe71480",
"question_id": "7a9ecf44-dfe1-4f7f-8f99-c612cd815033",
"question_type": "SCALE",
"scale": {
"value": 1
},
"open_ended": null,
"created_at": "2023-09-12T12:32:05+02:00",
"updated_at": "2023-09-20T15:43:05+02:00"
},
{
"id": "8821e771-1a2a-48b6-8239-a1f31ebc80ba",
"question_id": "f0f8b0f6-28e2-402c-9286-24db50120113",
"question_type": "OPEN_ENDED",
"scale": null,
"open_ended": {
"value": "It's a great product!"
},
"created_at": "2023-09-12T12:32:05+02:00",
"updated_at": "2023-09-12T12:32:05+02:00"
}
],
"tags": [
{
"id": "022b8b1d-5479-4332-a6c3-610295f9bccf",
"name": "Customer Support",
"created_at": "2023-09-26T10:16:06+02:00",
"updated_at": "2023-09-26T10:16:06+02:00"
}
]
},
{
"id": "018a74fb-2c6d-7a77-a5cd-fa437b657974",
"feedback_object_id": "82f3a55d-aa55-4973-84de-b3797a9a7550",
"survey_id": "<ID>",
"customer_id": "09c58845-b8e9-4aa5-8ca8-0ca2a7caaebb",
"from": null,
"ticket_id": "external-platform-id",
"location": "",
"ip_address": null,
"is_instant": false,
"status": "CLOSED",
"created_at": "2023-09-08T15:28:52+02:00",
"updated_at": "2023-09-08T15:38:52+02:00",
"answers": [
{
"id": "3ea9c542-f83f-4d0d-8263-cda6ce38af07",
"question_id": "7a9ecf44-dfe1-4f7f-8f99-c612cd815033",
"question_type": "SCALE",
"scale": {
"value": 3
},
"open_ended": null,
"created_at": "2023-09-08T15:28:52+02:00",
"updated_at": "2023-09-08T15:28:52+02:00"
},
{
"id": "a7340aba-639d-4673-8ae6-54d5adc7ab3e",
"question_id": "6d04f350-a7c3-4b7e-a6e8-6b129d79933f",
"question_type": "SCALE",
"scale": {
"value": 2
},
"open_ended": null,
"created_at": "2023-09-08T15:28:52+02:00",
"updated_at": "2023-09-11T14:51:15+02:00"
},
{
"id": "610aacea-58d4-42ea-913a-f3d15d0bf319",
"question_id": "f0f8b0f6-28e2-402c-9286-24db50120113",
"question_type": "OPEN_ENDED",
"scale": {
"value": "It's not a great product!"
},
"open_ended": null,
"created_at": "2023-09-08T15:28:52+02:00",
"updated_at": "2023-09-08T15:28:52+02:00"
}
],
"tags": []
}
// ...
],
"pagination": {
"total": 30,
"count": 10,
"per_page": 10,
"current_page": 1,
"total_pages": 3,
"links": {
"next": "/surveys/<ID>/responses?page=2",
"prev": null
}
}
}