đź““
Survey2connect
  • Introduction
    • Authentication
    • Environments
  • Authorization
    • Generate Token
    • Refresh Token
  • Responses
    • Create Response
    • Response Availability
    • Export Responses In CSV
    • Export Responses In JSON
    • Export Responses In SPSS
  • Campaigns
    • Create Survey Campaign
    • Generate Survey links
  • Surveys
    • Get Surveys
  • Tickets
    • Get Ticket
    • Get Tickets
  • Templates
    • Get Template
    • Get Templates
    • Create Template
    • Update Template
    • Delete Template
Powered by GitBook
On this page

Was this helpful?

  1. Responses

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

Name
Type
Description

env*

String

Datacenter identifier for client

sur_id*

String

id of the survey

Query Parameters

Name
Type
Description

skip

Number

Number of records to be skipped.

limit

Number

Total Number of records to be retrieved

Headers

Name
Type
Description

Authorization

String

Bearer {access_token}

Request Body

Name
Type
Description

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
}
{
  "error": {
    "name": "bad request",
    "message": "Invalid URL parameters (surveyId)"
  }
}
{
  "error": {
    "name": "unauthorized",
    "message": "The authorization token was not provided"
  }
}
{
  "error": {
    "name": "forbidden",
    "message": "The user does not have permission to access the resource."
  }
}
{
  "error": {
    "name": "internal server error",
    "message": "We couldn’t process your request"
  }
}
PreviousResponse AvailabilityNextExport Responses In JSON

Last updated 3 years ago

Was this helpful?