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 unpublished stories from 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: 'draft',
});

Find other languge-specific snippets in the Content Delivery API authentication section.

Use these tokens to perform CRUD operations via the Management API.

This token is account-specific and can be generated in the account settings: My accountAccount settingsPersonal access tokens.S

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