📓
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?

Authorization

Login

POST https://{{env}}.survey2connect.com/v2/oauth/token

Survey2connect provides simple and powerful access to your survey data using Survey2connect RESTful Web APIs. We support various integrations using RESTful APIs. For establishing any API connection, API consumer needs to initiate an Authentication request. The Authentication services checks for the credentials provided and then returns an auth token upon successful authentication. The API consumer then passes this token along with subsequent requests in order to obtain required data from Survey2connect solution.

Request Body

Name
Type
Description

email

string

email id of a valid S2C account

password

string

password of the S2C account

{
    "data": {
         "access_token": <access token>,
         "token_type": "Bearer",
         "expires_in": 86400,
         "refresh_token": <refresh token>,
         "created_at": 1620129612332
    }
}
{
    "error": {
         "name": "Bad Request",
         "message": "Missing email"
    }
}
{
    "error": {
         "name": "Unauthorized",
         "message": "Invalid Credentials"
    }
}

PreviousEnvironmentsNextGenerate Token

Last updated 3 years ago

Was this helpful?