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

The value of environment {{env}} variable depends upon your datacenter. Refer to the Environment page for more details.

"Content-Type": "application/json"
type: Api Key  
Key: x-api-key 
token: value from portal 

Path Parameters

{{ticket_id}}: Unique Ticket ID

Request Sample

curl --location --request GET 'https://az1.survey2connect.com/v2/api/tickets/:ticket_id' \' \ 

--header 'Authorization: Bearer eyJraWQiOiJzM3E1OWF2cFdIcXVKa0I0MjRpcFpqQVN0dXAzQzFkZEhVM3k2TjNZSXRjPSIsImFs' \ 

var myHeaders = new Headers(); 
myHeaders.append("Authorization", "Bearer eyJraWQiOiJzM3E1OWF2cFdIcXVKa0I0MjRpcFpqQVN0dXAzQzFkZEhVM3k2TjNZSXRjPSIsImFs”); 
myHeaders.append("Content-Type", "application/json"); 
    
var requestOptions = { 
  method: GET, 
  headers: myHeaders, 
  redirect: 'follow' 
}; 
  
fetch("https://az1.survey2connect.com/v2/api/tickets/:ticket_id/span>", requestOptions) 
  .then(response => response.text()) 
  .then(result => console.log(result)) 
  .catch(error => console.log('error', error));   

Responses

{ 
    "data":  { 
            "_id": "64897f4f45992536a59677af", 
            "priority": "High",             
             "assignee": { 
                "_id": "611ba3570f7a4124613c2386", 
                "email": "Test", 
                "name": "test@abc.com", 
            },
            "name": "T00181", 
            "created_at": "2023-06-14 14:20:23", 
            "survey_title": "Tickets"
            "modified_at": "2023-06-14 14:20:23", 
            "status": "Open", 
            "tags": [
               {
                       "key":"eng_us", 
                       "value": "1",
                       "type" : "question"
               }
            ],
            "follow_up_details":[
                {
                   "key": "abc", 
                   "value": ""
                }  
             ]
       }
}
{ 
    "error": { 
        "name": "Unauthorized", 
        "message": "The authorization token was not provided." 
    } 
}   
{   
    "error": {   
         "name": "Internal Server Error",   
         "message": "We were not able to process your request"   
    }   
}  

Note: Please do not share your tokens in publicly accessible areas or to anyone. Also, this token generated is valid for 24 hours only. After its expiry, you can regenerate the access token from the same API endpoint by passing the username and password or from the refresh token API with the help of refresh token.

Get All Tickets

POST : https://{{env}}.survey2connect.com/v2/api/tickets The value of environment {{env}} variable depends upon your datacenter. Refer to the Environment page for more…

Ask a human

Can't Find What You're Looking For?