Obtain Sb API Key
Register at Storyblok
- Register at Storyblok for free.
- Create an empty space.
Obtain your API Key
- Go to Settings -> API Key Tab
- Create a new Preview Token.
- Copy
.env.example
to.env
- Add token to your
env
file:
.env
SB_CLIENT_ACCESS_TOKEN=<your access token>
Storyblok Management API
Notice:
If you don't plan to create stories in frontend skip this.
If you plan to create stories with Storyblok from client side we luckily have Storybloks Management API. To get it work you have to create an oAuthToken
in your storyblok space.
- Create an oAuthToken
- Get your Space ID
After you have obtained your created oAuthToken add it to the .env
file.
.env
SB_SPACE_ID=<your space id>
SB_MANAGEMENT_OAUTH_TOKEN=<your oauth token>