đź““
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. Tickets

Get Tickets

Use this API to get the list of all the templates of a particular type

POST https://{{env}}.survey2connect.com/v2/api/tickets

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

skip

Number

Number of records to be skipped

limit

Number

Total number of records to be returned

type*

Number

Type of template 1-> SMS, 2-> Email, 3-> Whatsapp

searchstr

String

Search a template on basis of template name

{
  "data": [
    {
      "_id": "6166b537339e0a157b15f64b",
      "priority": "Medium",
      "assignee": {
        "_id": "606aff62b39f7f554849e91f",
        "name": "az2test ",
        "email": "az2test@mailinator.com"
      },
      "name": "T00010",
      "created_at": "2021-10-13 13:30:15",
      "action": "Action with Followup",
      "survey_title": "Ticket Fetch Test",
      "updated_at": "2021-10-13 13:32:55",
      "status": "Open",
      "resolution": "Issue resolved.\n",
      "root_cause": "Late delivery",
      "root_cause_msg": "Product was delivered late.",
      "href": "https://{env}.s2cbeta.com/v1/api/tickets/6166b537339e0a157b15f64b",
      "comments": [
        {
          "text": "Issue is resolved for now please review it",
          "posted": "2021-10-13 13:32:55"
        }
      ],
      "follow_up_details": [
        {
          "key": "What is your name?",
          "value": "Ayush Bahuguna"
        }
      ]
    },
    {
      "_id": "613b03f732903e0e26e2826d",
      "priority": "High",
      "assignee": {
        "_id": "606aff62b39f7f554849e91f",
        "name": "az2test ",
        "email": "az2test@mailinator.com"
      },
      "name": "T00001",
      "created_at": "2021-09-10 10:06:31",
      "rule": "Rule ",
      "survey_title": "Ticket check",
      "updated_at": "2021-10-08 15:47:49",
      "status": "Open",
      "href": "https://{env}.s2cbeta.com/v1/api/tickets/613b03f732903e0e26e2826d",
      "follow_up_details": []
    }
  ],
  "length": 2,
  "status": "success",
  "error": null
}
{
  "error": {
    "name": "unauthorized",
    "message": "The authorization token was not provided"
  }
}
{
  "error": {
    "name": "internal server error",
    "message": "We couldn’t process your request"
  }
}
{
  "error": {
    "name": "bad request",
    "message": "Template type is required"
  }
}
PreviousGet TicketNextTemplates

Last updated 3 years ago

Was this helpful?