Muhammad Irfan Muhammad Irfan - 2 months ago 23
jQuery Question

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":"toma@outerworlda.com",
"priority":1,
"status":2
},
"cc_emails":"rama@freshdeska.com,diana@freshdeska.com"
}


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.

Answer

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)