How to fetch the deleted topic and deleted post information | Community
Skip to main content

How to fetch the deleted topic and deleted post information

  • February 10, 2022
  • 5 replies
  • 0 views

Sandeep12

Hi Team,

I'm not able to fetch the deleted topic and  deleted post information. is there any api/sdk methods available to fetch those information.

Could you please help me for the same.

Thank you!   

5 replies

  • February 11, 2022

Hi Erica Girges,

I am not able to access the requests #10049098 and #10049052. It says "oops The page you were looking for doesn't exist" after clicking on the request numbers.

Could you please check the same and let me know.

Thank you..!!!


  • February 11, 2022
Hi Sandeep,
 
I'm currently looking into your 3 requests to access deleted/archived tickets, posts and articles.
 
For Articles, it doesn't appear we have a way to restore it from the API. You can you restore/view archived articles through the Guide Admin. Please see [this article](https://support.zendesk.com/hc/en-us/articles/4408822193434) for reference.
 
For Tickets, all deleted tickets can be viewed via [this API](https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#list-deleted-tickets). You can also restore them vie [this API](https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#restore-a-previously-deleted-ticket). 
 
For Posts/Topics, unfortunately once they are deleted we don't have a way to restore/fetch them. 
 
Hope this helps!
 
Erica - Dev Support

  • February 11, 2022
Hi Ankur!
 
Those previous posts/requests were merged into this one so I could respond to all of his questions in one Community Post as they all related to restoring/fetching deleted content.
 
Best,
 
Erica - Dev Support

Sandeep12
  • Author
  • February 15, 2022

Hi Erica Girges,

Thank you for your response.

For Tickets, all deleted tickets can be viewed via [this API](https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#list-deleted-tickets) that's fine.
Is that anyway to pass the date and filter out deleted tickets based on the time?

Thank you!


  • February 15, 2022
Hi Sandeep,
 
The [Incremental Exports API](https://developer.zendesk.com/api-reference/ticketing/ticket-management/incremental_exports/#incremental-ticket-export) will be able to help with that. You can specifically filter by a given timestamp. In the return, by default, all tickets (as well as deleted ones) are included. You can also filter for only deleted tickets or excludes_deleted as stated in the docs for how to exclude deleted tickets.
 
Hope this helps!
 
Erica - Dev Support