Is there a way to query previews made to updates of already published Posts via the WP API? For example, I am making updates to a post that has already been published, I click the preview button, and it takes me a url similar to
http://example.com/my-post/?preview_id=219&preview_nonce=ff84df100b&preview=true&_thumbnail_id=245
Is there a way access that content via the API?
I am working on a headless WP project and need a way display the preview in our custom front end. I can display posts that are in Draft status, as well as posts that have been published, by hitting the API. It is this last case of published posts that have additional updates that I cannot seem to figure out.
Any help is appreciated, thanks!
1 Answer
Figured it out. There is a revisions endpoint that you can query that will return the latest autosaved update.