All templates

Content

Publish Storyblok Stories by Prefix

Publish up to 50 matching stories from one Storyblok space and report which story IDs were confirmed.

Use in Open Flow
Publish Storyblok Stories by Prefix workflow in Open FlowPublish Storyblok Stories by Prefix workflow in Open Flow

Publish up to 50 matching stories from one Storyblok space and report which story IDs were confirmed.

Setup

  1. In Choose the Storyblok space and prefix, enter your Storyblok space ID and region. The default slug prefix is release. Use the prefix for the exact stories you intend to publish. Storyblok Management API regions
  2. Configure a STORYBLOK_MANAGEMENT_TOKEN Secret Variable with a personal access token that can publish in that space. Select the same variable in List the first 50 matching stories and Publish one story. The token is sent in the Authorization header.
  3. Run the workflow manually. It publishes to the configured space during this run. Inspect Return the publication summary for the result.

Behavior

The workflow makes one Storyblok Management API list request using starts_with and a 50-story page size. It publishes the returned IDs in that order, one at a time, with a 400 ms pause before each publish. An empty list makes no publish requests. The prefix is a slug filter within the space. List stories · Publish a story

The summary lists planned, confirmed and unattempted IDs. If Storyblok rejects a publish or the result is indeterminate, the workflow stops at that ID and reports it in stopped. It makes a single publish attempt per story in a run. Check that story in Storyblok before starting another run. A fresh run can publish the same stories again. Earlier confirmed publications take effect independently. The Open Flow HTTP capability accepts response bodies up to 1 MiB.

In n8n

Enter the same space, region and prefix in Choose the Storyblok space and prefix. Bind the same HTTP Header Auth credential in List the first 50 matching stories and Publish one story. Use the header name Authorization and the personal access token as its value. The final Return the publication summary item contains planned and confirmed IDs and the point where publishing stopped. Run manually.

Inspiration & credits

Adapted from Get all the stories starting with release and publish them in Zie619/n8n-workflows. Attribution: Zie619 / n8n-workflows.

The collection’s MIT notice is pinned at a later revision. This is the collection notice at that revision; it does not establish a separate original template author’s license. Our changes are listed above; see repository licensing.

MIT License

Copyright (c) 2025 Zie619

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

The source node defaults to a single page of 50 stories. This workflow preserves that effective limit.