Asset to Story
A 3-step recipe with Storyblok. We can help you get access.
Recipe · 3 steps
Asset to Story
with Storyblok
Reserve an asset, reference its CDN URL in a new story, and publish it.
- Request a signed asset upload, which creates the asset record and reserves its final CDN URL.
- Create a story whose content references the reserved asset CDN URL as an image field.
- Publish the story so the asset-bearing content goes live.
What you'll need to have ready
- space_id: Numeric ID of the Storyblok space.
- filename: The filename of the asset to be uploaded (e.g. "hero.jpg").
- contentType: MIME type of the file, such as image/jpeg.
- assetFolderId: Optional asset folder ID to place the asset in.
- componentType: Component type name to set on the story content.
- storyName: Display name of the story to create.
- storySlug: URL-safe slug segment for the story.
For your developer
Arazzo workflow storyblok:asset-to-story, 3 operations: signAssetUpload → createStory → publishStory. Specs on APIs.io.