Actions25
- Post Actions
- Topic Actions
- Upload Actions
Post → Get Revision (Version)
AI-generatedSummary
Fetch a specific revision version of a Discourse post using its post ID or URL. Returns formatted revision details or the raw API response based on the simplify option.
Inputs
- postId (required) — The ID or full URL of the post to retrieve a revision for.
- version (required) — The specific revision version number to fetch (minimum value: 1).
- simplify — Whether to return a simplified version of the post revision data instead of the raw Discourse API response.
Output shape
a single record
When simplify is set to true, returns a cleaned object containing key revision fields. When set to false, returns the complete raw revision payload from the Discourse API.
Examples
Example 1: Fetch version 2 of a post by ID
Post ID or URL: 456, Version: 2, Simplify: true
Example 2: Fetch raw revision details for a post specified by URL
Post ID or URL: https://forum.example.com/p/456, Version: 3, Simplify: false