Get Archived Ticket List

GET {{baseUrl}}/api/v1/tickets/archivedTickets?departmentId=<long>

This API gets the archived tickets list in given department.

OAuth Scope

  • Desk.search.READ
  • Desk.tickets.READ

Request Params

KeyDatatypeRequiredDescription
fromstringIndex number, starting from which the tickets must be fetched
limitstringNumber of tickets to fetch
departmentIdstringID of the department from which the tickets must be fetched
viewTypestringView Type - Supported Values 1 for Compact view , 2 for Classic view ,4 for Table View. If view type is not specified, Classic View will be the default view
includestringKey that returns additional information related to a ticket. Values allowed are: contacts, products,departments,team,isRead and assignee. All six values can be passed by separating them with a comma in the API request.

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{&quot;data&quot;:[{&quot;ticketNumber&quot;:&quot;836&quot;,&quot;sentiment&quot;:null,&quot;subCategory&quot;:null,&quot;statusType&quot;:&quot;Closed&quot;,&quot;subject&quot;:&quot;Subject updated by bulk update&quot;,&quot;isArchived&quot;:true,&quot;dueDate&quot;:&quot;2017-02-16T05:04:01.000Z&quot;,&quot;departmentId&quot;:&quot;5853000000006907&quot;,&quot;channel&quot;:&quot;Email&quot;,&quot;onholdTime&quot;:null,&quot;source&quot;:{&quot;appName&quot;:null,&quot;extId&quot;:null,&quot;permalink&quot;:null,&quot;type&quot;:&quot;SYSTEM&quot;,&quot;appPhotoURL&quot;:null},&quot;closedTime&quot;:&quot;2017-02-20T10:21:02.000Z&quot;,&quot;responseDueDate&quot;:null,&quot;createdTime&quot;:&quot;2017-02-15T08:23:11.000Z&quot;,&quot;id&quot;:&quot;5853000001102037&quot;,&quot;email&quot;:&quot;carol@zylker.com&quot;,&quot;channelCode&quot;:null,&quot;customerResponseTime&quot;:&quot;2017-02-15T08:23:11.000Z&quot;,&quot;productId&quot;:null,&quot;contactId&quot;:&quot;5853000000273060&quot;,&quot;threadCount&quot;:&quot;6&quot;,&quot;lastThread&quot;:{&quot;channel&quot;:&quot;EMAIL&quot;,&quot;isDraft&quot;:true,&quot;isForward&quot;:false,&quot;direction&quot;:&quot;out&quot;},&quot;priority&quot;:null,&quot;layoutId&quot;:&quot;5853000001987014&quot;,&quot;assigneeId&quot;:&quot;5853000000281047&quot;,&quot;commentCount&quot;:&quot;1&quot;,&quot;phone&quot;:&quot;123421412125&quot;,&quot;webUrl&quot;:&quot;https://desk.zoho.com/support/arunasales/ShowHomePage.do#Cases/dv/5853000001102037&quot;,&quot;teamId&quot;:null,&quot;isSpam&quot;:false,&quot;category&quot;:null,&quot;status&quot;:&quot;Closed&quot;}]}