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

NameTypeDescription

env*

String

Datacenter identifier for client

Headers

NameTypeDescription

Authorization

String

Bearer {access_token}

Request Body

NameTypeDescription

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
}

Last updated