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.

"Content-Type": "application/json"
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

{{ticket_id}}: Unique Ticket ID

Request Sample

curl --location 'https://az2-api.xebo.ai/v3/api/tickets/f69a3fbe-3db3-4eb4-a864-f72956f4f82b' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.'
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"
}

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.

Ask a human

Can't Find What You're Looking For?