Search code examples
jqueryjsonlogoutfreshdesk

Create Ticket using Freshdesk api, response is always { "logout": "success" }


Well, I have tried every thing mentioned in Freshdesk api (http://freshdesk.com/api#create_ticket) to create new ticket but with no success,

Here is what I am doing in RESTClient to create ticket:

Mehtod: POST URL:https://milliontech.freshdesk.com/helpdesk/tickets.json

Headers: Content-type:application/json Authorization:(Basic Authorization using APIKEY:X)

Request Body:

{
  "helpdesk_ticket":{
      "description":"I am not able to create this ticket... bla bla bla",
      "subject":"Urgenta",
      "email":"[email protected]",
      "priority":1,
      "status":2
  },
  "cc_emails":"[email protected],[email protected]"
}

And this is the response:

{
    "logout": "success"
}

I have also tried with curl command to create new ticket but ended up in the similar result.


Solution

  • To avoid this response

    {
        "logout": "success"
    }
    

    and create ticket successfully

    Just clear your browser's cache every time you create new ticket (If you are using RESTClient in Mozilla or Chrome)