Get Ticket Details

Prev
Get: https://{{env}}-api.xebo.ai/v3/api/tickets/{{ticket_id}}

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

Headers

"Content-Type": "application/json"

Authorization

type: Bearer type
token: <access token> granted from login API
Or
x-api-key: <api key copied from the platform>
Content-Type: application/json

Path Parameters

Path Paremeters

{{ticket_id}}: Unique Ticket ID

Request Sample

cURL

curl --location 'https://az2-api.xebo.ai/v3/api/tickets/f69a3fbe-3db3-4eb4-a864-f72956f4f82b' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.'

JavaScript

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://az2-api.xebo.ai/v3/api/tickets/f69a3fbe-3db3-4eb4-a864-f72956f4f82b");
xhr.setRequestHeader("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2");
xhr.send();

Responses

{
  "data": {
    "_id": "a3176c53-a0e0-4814-8595-51725feff9bb",
    "priority": "medium",
    "assignee": {
      "_id": "a9b85d2d-2478-4133-af6b-c195cf3fca3d",
      "name": "Mounikaran",
      "email": "mounikaran.r+az2@xebo.ai"
    },
    "name": "T00000004",
    "created_at": "2024-08-21T17:51:22.560Z",
    "survey_title": "Ticketing",
    "status": "Open",
    "tags": [
      {
        "key": "Star Rating - Row 1",
        "value": "4",
        "type": "question"
      },

      {
        "key": "Emoji Rating - Row 1",
        "value": "3",
        "type": "question"
      }

    ]

  }

}
{
    "success": false,
    "code": 400,
    "status": "Bad Request",
    "error": "VALIDATION_ERROR",
    "message": "Invalid Responses",
    "data": {
        "errors": {
            "name": [
                "Invalid Responses"
            ]
        }
    }
}
{
  "success": false,
  "code": 500,
  "status": "Internal Server Error",
  "error": "SERVER_ERROR",
  "message": "Error in processing your request"
}

Ask a human

Can't Find What You're Looking For?

Email Support       Chat With Us      Ticket Generate