How to access an edited version of a story from a release?
Appending the query parameter from_release=YOUR_RELEASE_ID
will allow you to access the content of one or multiple stories depending on your API request.
The release ID can be found in the URL when a story included in a specific release is viewed in the Visual Editor:
/me/spaces/SPACE_ID/stories/BRANCH_ID/RELEASE_ID/index/STORY_ID
/me/spaces/1234/stories/0/138/index/41232
Getting the release ID programmatically
To decide if you should append the from_release
query parameter you can look for the parameter _storyblok_release=YOUR_RELEASE_ID
which is appended to the URL of a preview environment configured in the Visual Editor. You can use the value of this parameter dynamically instead of hardcoding the release ID.