📓
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. Campaigns

Generate Survey links

When the clients are not comfortable sharing the customers’ PII data with S2C, they can export unique survey links from S2C platform using the APIs. At a time, a maximum of 500 survey links can be ge

POST https://{env}.survey2connect.com/v2/api/survey-campaigns/external

Path Parameters

Name
Type
Description

env*

String

Datacenter identifier for client

Headers

Name
Type
Description

Authorization

String

Bearer {access_token}

Request Body

Name
Type
Description

collector_token*

String

Corresponding API collector unique token id (provided by platform)

contacts*

Array

An array of contacts to which surveys are to be triggered.

{
  "msg": "Request data is correct",
  "data": [
    {
      "extUniqueId": "234567",
      "message": "We are conducting a survey and your input would be appreciated. Open the link below to start the survey. Thank you for your participation! https://s2ccx.com/dYD07Un"
    },
    {
      "extUniqueId": "123456",
      "message": "We are conducting a survey and your input would be appreciated. Open the link below to start the survey. Thank you for your participation! https://s2ccx.com/fjx4cMn"
    }
  ],
  "rejected_list": [],
  "accepted": 2,
  "rejected": 0
}
{
  "error": {
    "name": "bad request",
    "message": "Invalid medium"
  }
}
{
  "error": {
    "name": "unauthorized",
    "message": "Collector token is missing "
  }
}
{
  "error": {
    "name": "internal server error",
    "message": "We couldn’t process your request"
  }
}
PreviousCreate Survey CampaignNextSurveys

Last updated 3 years ago

Was this helpful?