Export Responses In CSV

Once the responses are collected into the survey2connect platform, be it from SMS, Email or any other channel, the data can be exported back using our RESTFul APIs.

POST https://{env}.survey2connect.com/v2/api/surveys/{sur_id}/responses/csv

Path Parameters

NameTypeDescription

env*

String

Datacenter identifier for client

sur_id*

String

id of the survey

Query Parameters

NameTypeDescription

skip

Number

Number of records to be skipped.

limit

Number

Total Number of records to be retrieved

Headers

NameTypeDescription

Authorization

String

Bearer {access_token}

Request Body

NameTypeDescription

responseIds

Array

List of ids of responses to be exported.

status

Array

Status of responses to be exported.

labels

String

Decides whether the value will be recoded value or the actual value

dateFilter

String

Filter for date

collectorIds

Array

Ids of the collectors

{
  "data": [
    [
      "Respondent Unique Id",
      "Response Status",
      "Language",
      "Collector Name",
      "Collector Unique Id",
      "Start Date",
      "End Date",
      "Time Duration",
      "IP Address",
      "Device Information",
      "Survey Version",
      "Email Address",
      "First Name",
      "Last Name",
      "Mobile",
      "External Unique ID",
      "Location Latitude",
      "Location Longitude",
      "By Ticket",
      "Ticket(s) Generated",
      "city",
      "How was your overall experience?",
      "Hi {{e://Name}}Based on your experience, how likely are you to recommend our product to friends/family?"
    ],
    [
      "6125d78482c0665cd04fb3c1",
      "Completed",
      "eng_us",
      "Web Link 1",
      "6125d759ad340a5c8f9ff31d",
      "2021-08-25 11:09:16",
      "2021-08-25 11:09:21",
      "0.07 m",
      "124.66.169.123",
      "Desktop Chrome",
      1,
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "1",
      "2"
    ],
    [
      "612c614a422b8833cf47c4fa",
      "Completed",
      "eng_us",
      "API Collector 1",
      "612b87ec422b8833cf4775a2",
      "2021-08-30 10:10:42",
      "2021-08-30 10:10:52",
      "0.15 m",
      "124.66.169.123",
      "Desktop Chrome",
      1,
      "anuj.s@survey2connect.com",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "Pune",
      "7",
      "9"
    ]
  ],
  "status": "success",
  "err": null
}

Last updated