REST API integration
Storyblok REST API integration for Draftbit
Fetch Storyblok stories and links
What is Storyblok?
Storyblok's Content Delivery API lets apps and websites fetch published stories, links, datasource entries, and assets with a public access token.
Use Storyblok with Draftbit
- Built-in endpoints: List stories, Get story, List links, List datasource entries.
- Bind any Storyblok endpoint to a screen, list, form, or AI agent action.
- Authentication is configured once per app — secrets stay on the server.
- Add custom request and response transforms without forking Storyblok's client library.
More ways to connect Storyblok
Prefer GraphQL? Connect to the Storyblok GraphQL integration instead.
Example
storyblok-example.ts // Example: fetch from Storyblok
// Storyblok doesn't require an auth header for this endpoint —
// some providers authenticate via a query param or app-level token.
// Check Storyblok's docs for auth requirements on protected endpoints.
const response = await fetch("https://api.storyblok.com/v2/cdn/stories");
const data = await response.json();Use cases
- Drive a blog, news feed, or content section from a headless CMS
- Let non-engineers publish app content without a release
- Localize copy and assets without code changes
Authentication
Add any required auth headers when you connect Storyblok in Draftbit. Secrets stay on the server side.
Use Storyblok in a Draftbit app today
Start free, connect Storyblok in minutes, and ship with AI agents that know how to use it.
Frequently asked questions
What is the Storyblok REST integration?
Storyblok's Content Delivery API lets apps and websites fetch published stories, links, datasource entries, and assets with a public access token.
How do I connect Storyblok to a Draftbit app?
Go to Integrations and then REST APIs in your Draftbit app and pick Storyblok from the catalog. Fill in any base URL variables, such as a project ID or host, and the endpoints are available across your screens and to the AI agents while you build. The preconfigured calls need no auth header.
Does Storyblok require authentication?
The preconfigured Storyblok endpoints do not need an auth header. Some providers authenticate with a query parameter or an app-level token, and others are public read-only APIs, so check the Storyblok docs before you call a protected endpoint. The preconfigured endpoints include List stories, Get story, List links, List datasource entries.
What can I build with Storyblok and Draftbit?
Most teams use Storyblok as a headless CMS for a mobile or web app. You might use Storyblok to drive a blog, news feed, or content section from a headless CMS, or to let non-engineers publish app content without a release.