Is there an API endpoint for recently edited posts

Yes, if the Data Explorer plugin is installed on your site, writing a query to return recently edited posts would be the easiest way of dealing with this. You can also call Data Explorer queries via the API if you like: Run Data Explorer queries with the Discourse API.

3 Likes