Detecting Page Deletes in Confluence

I am trying to figure out how to detect a page delete in Confluence.
There seems to be no REST API call to get this information.

I am referring to the documentation here : https://developer.atlassian.com/cloud/confluence/rest/v1/.

One option could be to use the trash, but there seems to be no API call to access the trash for a space.
Another option could be to use Audit logs, but again Confluence Cloud does not seem to log delete page events [Its only done in Confluence Data Server : Audit Log Events in Confluence | Confluence Data Center and Server 8.2 | Atlassian Documentation].

Is there anyway a developer can know when a page is deleted or get a list of pages that have been deleted ?

Hi @SarthakKapoor ,

I think you would need to utilise a callback mechanism that is triggered when pages are deleted. The callback mechanisms vary for different types of apps:

  • Basic auth based app: No callback mechanism so I’m not sure there is a feasible solution
  • Connect app: Register webhooks listening for page_removed and page_trashed events
  • Forge app: Register product triggers listening for avi:confluence:archived:page events
  • OAuth 2.0 (3LO) app: No callback mechanism so I’m not sure there is a feasible solution

Regards,
Dugald