capabilities.work

Component to Story

A 3-step recipe with Storyblok. We can help you get access.

Recipe · 3 steps

Component to Story

Create a component, create a story using it, and publish the story.

  1. Create the component definition that establishes the content schema the new story will use.
  2. Create a story whose content uses the component just defined, identifying the component by name in the content object.
  3. Publish the newly created story so its content becomes available through the Content Delivery API with the public token.
What you'll need to have ready
  • space_id: Numeric ID of the Storyblok space to operate in.
  • componentName: Technical name identifier for the new component (e.g. "hero").
  • componentSchema: Field definitions map for the component.
  • isRoot: Set to true to allow the component to be used as a story root.
  • storyName: Display name of the story to create.
  • storySlug: URL-safe slug segment for the story.
For your developer

Arazzo workflow storyblok:component-to-story, 3 operations: createComponent → createStory → publishStory. Specs on APIs.io.