Skip to content

Get Story Versions (Legacy)

Terminal window
https://mapi.storyblok.com/v1/spaces/:space_id/stories/:story_id/versions

This allows you to retrieve the versions of a story and the corresponding author information. You can also filter the results based on pagination using the page parameter. This can be done with a GET request on the story version you wish to retrieve.

  • :space_id required number

    Numeric ID of a space

  • :story_id required number

    The numeric id of the story

  • page number

    Default: 1. Learn more under Pagination.

  • per_page number

    Default: 25. Max: 100. Learn more under Pagination.

  • versions version[]

    An array of version objects with each object representing a version and details about the change >

    • id number

      Numeric id of the story version >

    • event string

      The type of version change in the story >

    • created_at string

      Creation date (Format: yyy-MM-dd'T'HH:mm:ssZ) >

    • author_id number

      ID of the author >

    • author string

      Name of the author >

    • item_id number

      The story ID >

    • is_draft boolean

      Boolean value, if false mans story is published >

Example Request

curl "https://mapi.storyblok.com/v1/spaces/606/stories/123/versions" \
-H "Authorization: YOUR_OAUTH_TOKEN"

Example Request with Pagination

curl "https://mapi.storyblok.com/v1/spaces/606/stories/123/versions?page=2" \
-H "Authorization: YOUR_OAUTH_TOKEN"