Pull or quote content from within the revision history

Is there a way to view or access revision history other than within the popup?

For example, we built some code to call the Discourse API and pull the HTML of a topic into our product. Could something similar be done to pull HTML content from a specific revision? Additional considerations, we’d need a way to view the data/content in order to determine which revision to use.

These are the available endpoints for you to use:

  • /posts/<post_id>/revisions/latest.json [1]
  • /posts/<post_id>/revisions/<revision_id>.json

This should help! :slight_smile:

A guide that can help you to determine the API used might also be useful for you:

  1. ↩︎

1 Like