Skip to content

Access Tokens

Storyblok offers a rich set of APIs and services for delivering and managing content and assets. Tokens protect access to these services.

Use read-only access tokens to view the content and assets in a specific space. To manage per-space tokens and generate new ones, select the space and open SettingsAccess Tokens.

The following types of tokens are available:


The following snippet uses the @storyblok/js SDK to fetch published stories via the Content Delivery API:

import { apiPlugin, storyblokInit } from '@storyblok/js';
const { storyblokApi } = storyblokInit({
accessToken: 'YOUR_ACCESS_TOKEN',
use: [apiPlugin],
});
// Use a public or preview access token
const { data } = await storyblokApi.get('cdn/stories', {
version: 'published',
});

For other languge-specific snippets, visit the Content Delivery API authentication page.

Use these tokens to perform CRUD (create, read, update, delete) operations via the Management API. Learn more about personal and OAuth tokens in the Management API authentication page.

This token is account-specific. To manage existing tokens or generate new ones, open your Account settings: My accountAccount settingsPersonal access tokens.

This token is tied to a single space. Obtain it via the OAuth2 authentication flow and is tied to a single space.