Skip to content

Get Story Versions

https://mapi.storyblok.com/v1/spaces/:space_id/story_versions

Retrieve the versions of a story.

  • :space_id required number

    Numeric ID of a space

  • by_story_id required number

    ID of the story whose versions shall be returned.

  • by_release_id number

    ID of the release. When this is passed, the endpoint returns versions of all stories within the release and stories not associated with a particular release.

  • page number

    Default: 1. Learn more under Pagination.

  • per_page number

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

  • show_content boolean

    Enable the retrieval of the content of each story version. Disable by default.

  • story_versions object[]

    An array of objects representing a story version.

    • id number

      Numeric id of the story version

    • created_at string

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

    • user_id number

      User/numeric id of collaborator

    • user object

      Name of the author

      • id number

        The user ID

      • firstname string

        First name of collaborator

      • lastname string

        Last name of collaborator

      • alt_email string

        Email of collaborator

      • avatar string

        Avatar of collaborator usually an image

      • userid string

        User ID of collaborator

      • friendly_name string

        Friendly name of collaborator

    • story_id number

      ID of the story

    • status string

      Publication status of the version

    • release_id number

      ID of the release

    • parent_id number

      ID of the parent folder

    • content object

      This object contains the Story’s content when the show_content parameter is used

curl "https://mapi.storyblok.com/v1/spaces/288868932106293/story_versions?by_story_id=174957" \
-H "Authorization: YOUR_OAUTH_TOKEN"