Features

Data APIs

Zoho Desk provides a set of APIs that facilitate interaction between your extension and your help desk portal. The APIs available are listed below:

  • Ticket Object
  • User Object
  • Portal Object
  • Department Object
  • Extension Object

 

Ticket Object

This object provides you with access to the various properties of a ticket.

It is accessible only from the desk.ticket.detail.rightpaneldesk.ticket.detail.subtab and desk.ticket.detail.lefttab widget locations.

PropertyRequestResponse
departmentIdticket.departmentId{'status':'success','ticket.departmentId':'12345678901234567'}
emailticket.email{'status':'success','ticket.email':'youremail@domainname.com'}
subjectticket.subject{'status':'success','ticket.subject':'Faulty phone charging port'}
descriptionticket.description{'status':'success','ticket.description':'Product replacement'}
statusticket.status{'status':'success','ticket.status':'Open'}
dueDateticket.dueDate{'status':'success','ticket.dueDate':'21/02/2018 12:00 PM'}
threadCountticket.threadCount{'status':'success','ticket.threadCount':'1'}
isSpamticket.isSpam{'status':'success','ticket.isSpam':'false'}
createdTimeticket.createdTime{'status':'success','ticket.createdTime':'29/01/2018 11:55 PM'}
modifiedTimeticket.modifiedTime{'status':'success','ticket.modifiedTime':'31/01/2018 11:27 AM'}
ownerticket.owner{'status':'success','ticket.owner':'Agent Name'}
idticket.id{'status':'success','ticket.id':'12345678901234567'}
accountNameticket.accountName{'status':'success','ticket.accountName':'Account Name'}
phoneticket.phone{'status':'success','ticket.phone':'9876543210'}
productNameticket.productName{'status':'success','ticket.productName':'Product Name'}
commentCountticket.commentCount{'status':'success','ticket.commentCount':'1'}
priorityticket.priority{'status':'success','ticket.priority':'High'}
channelticket.channel{'status':'success','ticket.channel':'Phone'}
classificationticket.classification{'status':'success','ticket.classification':'Problem'}
categoryticket.category{'status':'success','ticket.category':'General'}
subCategoryticket.subCategory{'status':'success','ticket.subCategory':'Sub General'}
contactNameticket.contactName{'status':'success','ticket.contactName':'Contact Name'}
customFieldticket.cf{'status':'success','ticket.cf':{"cf_counter": "12","cf_deal_id": "2288589490093"}}
contactIdticket.contactId{'status':'success','ticket.contactId':'271540000000358001'}

 

Request:

ZOHODESK.get(“ticket”."<property>").then(function(response) {

//Response - requested detail

}).catch(function(err){

//Error Handling })

 

Response:


{

"ticket"."<property>": "<Requested Value>",

"status": "success"

}

 

User Object

Listed below are the properties related to the user object: