Actions25
- Post Actions
- Topic Actions
- Upload Actions
Post → Get Revision (Latest)
AI-generatedSummary
Retrieves the most recent revision of a Discourse post using either a post ID or URL.
Inputs
- postId (required) — A post ID or URL. Supports ID mode (e.g., 456) or URL mode (e.g., https://forum.example.com/p/456).
- simplify — Whether to return a simplified version of the response instead of the raw API data. Defaults to true.
Output shape
A single record containing the post revision data.
If simplify is true, the data is simplified via the simplifyPostRevision helper; otherwise, the raw response is returned.
Examples
Example 1: Fetch the latest revision for a specific post by ID.
Post ID: 123, Simplify: true
Example 2: Fetch the latest revision using a post URL.
Post URL: https://community.example.com/t/example-topic/456/12, Simplify: true