Storyblok
App · 25 actions
Create, update and publish stories, and manage assets, datasources and workflow stages in Storyblok.
Actions
| Action | What it does |
|---|---|
| Change workflow stage | Move a story to another stage of its workflow, such as from Drafting to Reviewing. |
| Create datasource | Create a datasource, a list of keys and values that content can choose from. |
| Create datasource entry | Add an entry, a key and a value, to the end of a datasource. |
| Create folder | Create a folder for stories. |
| Create story | Create a story of a content type, as a draft or published at once. |
| Delete asset | Delete an asset from the asset library. |
| Delete datasource | Delete a datasource and all its entries. |
| Delete datasource entry | Delete an entry from a datasource. |
| Delete story | Delete a story or a folder. |
| Duplicate story | Copy a story, into the same folder or another one. |
| Get asset | Get an asset with its address, file details, alt text and title. |
| Get story | Get a story with its content, status and workflow stage. |
| List asset folders | List the folders in a space's asset library. |
| List assets | List the images and files in a space's asset library. |
| List components | List a space's components: its content types and the blocks they are built from, with their fields. |
| List datasource entries | List the entries, each a key and a value, in a datasource. |
| List datasources | List a space's datasources: the lists of keys and values that content can choose from. |
| List spaces | List the Storyblok spaces your access token can reach. |
| List stories | List a space's stories and folders, without their content. |
| List workflow stages | List the stages of a space's editorial workflows, such as Drafting and Reviewing. |
| Publish story | Publish a story's current draft, so your website shows it. |
| Unpublish story | Unpublish a story, so your website no longer shows it. |
| Update asset | Change an asset's alt text, title, copyright or source, or move it to another folder. |
| Update datasource entry | Change a datasource entry's name or value. |
| Update story | Change a story's name, slug, folder, tags or content fields. |
Change workflow stage
Move a story to another stage of its workflow, such as from Drafting to Reviewing.
Inputs
- Space
space_idtextRequired - The Storyblok space.
- Story
story_idtextRequired - The story.
- Workflow stage
stage_idtextRequired - The stage to move the story to.
Outputs
dataobject- The response from Storyblok.
Example output
{
"data": {
"created_at": "example",
"due_date": "example",
"id": 1,
"user_id": 1,
"workflow_id": 1,
"workflow_stage_id": 1
}
}Create datasource
Create a datasource, a list of keys and values that content can choose from.
Inputs
- Space
space_idtextRequired - The Storyblok space.
- Name
nametextRequired - The datasource's name.
- Slug
slugtext - The datasource's slug, used to read it. Leave empty to make one from the name.
Outputs
dataobject- The response from Storyblok.
Example output
{
"data": {
"created_at": "example",
"dimensions": [
{
"datasource_id": 1,
"entry_value": "example",
"id": 1,
"name": "example"
}
],
"id": 1,
"name": "example",
"slug": "example",
"updated_at": "example"
}
}Create datasource entry
Add an entry, a key and a value, to the end of a datasource.
Inputs
- Space
space_idtextRequired - The Storyblok space.
- Datasource
datasource_idtextRequired - The datasource.
- Name
nametextRequired - The entry's name, its key.
- Value
valuetextRequired - The entry's value.
Outputs
dataobject- The response from Storyblok.
Example output
{
"data": {
"datasource_id": 1,
"dimension_value": "example",
"id": 1,
"name": "example",
"position": 1,
"value": "example"
}
}Create folder
Create a folder for stories.
Inputs
- Space
space_idtextRequired - The Storyblok space.
- Name
nametextRequired - The folder's name.
- Slug
slugtext - The folder's part of the URL of the stories in it. Leave empty to make one from the name.
- Folder
folder_idtext - The folder to create it in. Leave empty for the top level of the space.
- Default content type
default_content_typetext - The content type new stories in this folder start as.
Outputs
dataobject- The response from Storyblok.
Example output
{
"data": {
"content": {},
"created_at": "example",
"default_root": "example",
"first_published_at": "example",
"full_slug": "example",
"group_id": "example",
"id": 1,
"is_folder": true,
"is_startpage": true,
"last_author": {
"friendly_name": "example",
"id": 1,
"userid": "example"
},
"last_author_id": 1,
"name": "example",
"parent_id": 1,
"path": "example",
"position": 1,
"published": true,
"published_at": "example",
"slug": "example",
"sort_by_date": "example",
"stage": {
"created_at": "example",
"due_date": "example",
"story_id": 1,
"workflow_id": 1,
"workflow_stage_id": 1
},
"tag_list": [
"example"
],
"unpublished_changes": true,
"updated_at": "example",
"uuid": "example"
}
}Create story
Create a story of a content type, as a draft or published at once.
Inputs
- Space
space_idtextRequired - The Storyblok space.
- Name
nametextRequired - The story's name, shown in Storyblok's content list.
- Content type
content_typetextRequired - The content type of the story, such as a page or an article.
- Slug
slugtext - The last part of the story's URL, such as my-first-post. Leave empty to make one from the name.
- Folder
folder_idtext - The folder to put it in. Leave empty for the top level of the space.
- Content fields
fieldsobject - The content's fields, keyed by each field's technical name in the content type, such as {"title": "Hello", "body": "..."}.
- Tags
tagslist - Tags to give the story.
- Publish now
publishtrue/false - Publish the story straight away. Otherwise it is saved as a draft.
Outputs
dataobject- The response from Storyblok.
Example output
{
"data": {
"content": {},
"created_at": "example",
"default_root": "example",
"first_published_at": "example",
"full_slug": "example",
"group_id": "example",
"id": 1,
"is_folder": true,
"is_startpage": true,
"last_author": {
"friendly_name": "example",
"id": 1,
"userid": "example"
},
"last_author_id": 1,
"name": "example",
"parent_id": 1,
"path": "example",
"position": 1,
"published": true,
"published_at": "example",
"slug": "example",
"sort_by_date": "example",
"stage": {
"created_at": "example",
"due_date": "example",
"story_id": 1,
"workflow_id": 1,
"workflow_stage_id": 1
},
"tag_list": [
"example"
],
"unpublished_changes": true,
"updated_at": "example",
"uuid": "example"
}
}Delete asset
Delete an asset from the asset library.
Inputs
- Space
space_idtextRequired - The Storyblok space.
- Asset
asset_idtextRequired - The asset.
Outputs
dataobject- The response from Storyblok.
Example output
{
"data": {}
}Delete datasource
Delete a datasource and all its entries.
Inputs
- Space
space_idtextRequired - The Storyblok space.
- Datasource
datasource_idtextRequired - The datasource.
Outputs
dataobject- The response from Storyblok.
Example output
{
"data": {}
}Delete datasource entry
Delete an entry from a datasource.
Inputs
- Space
space_idtextRequired - The Storyblok space.
- Datasource
datasource_idtextRequired - The datasource the entry is in, to choose the entry from.
- Entry
entry_idtextRequired - The datasource entry.
Outputs
dataobject- The response from Storyblok.
Example output
{
"data": {}
}Delete story
Delete a story or a folder. It goes to the space's trash, where it can be restored.
Inputs
- Space
space_idtextRequired - The Storyblok space.
- Story
story_idtextRequired - The story.
Outputs
dataobject- The response from Storyblok.
Example output
{
"data": {
"content": {},
"created_at": "example",
"default_root": "example",
"first_published_at": "example",
"full_slug": "example",
"group_id": "example",
"id": 1,
"is_folder": true,
"is_startpage": true,
"last_author": {
"friendly_name": "example",
"id": 1,
"userid": "example"
},
"last_author_id": 1,
"name": "example",
"parent_id": 1,
"path": "example",
"position": 1,
"published": true,
"published_at": "example",
"slug": "example",
"sort_by_date": "example",
"stage": {
"created_at": "example",
"due_date": "example",
"story_id": 1,
"workflow_id": 1,
"workflow_stage_id": 1
},
"tag_list": [
"example"
],
"unpublished_changes": true,
"updated_at": "example",
"uuid": "example"
}
}Duplicate story
Copy a story, into the same folder or another one. The copy is a draft.
Inputs
- Space
space_idtextRequired - The Storyblok space.
- Story
story_idtextRequired - The story.
- Name
nametext - The copy's name.
- Slug
slugtext - The copy's slug. Leave empty to make one from the name.
- Folder
folder_idtext - The folder to copy it into. Leave empty to keep it beside the original.
Outputs
dataobject- The response from Storyblok.
Example output
{
"data": {
"content": {},
"created_at": "example",
"default_root": "example",
"first_published_at": "example",
"full_slug": "example",
"group_id": "example",
"id": 1,
"is_folder": true,
"is_startpage": true,
"last_author": {
"friendly_name": "example",
"id": 1,
"userid": "example"
},
"last_author_id": 1,
"name": "example",
"parent_id": 1,
"path": "example",
"position": 1,
"published": true,
"published_at": "example",
"slug": "example",
"sort_by_date": "example",
"stage": {
"created_at": "example",
"due_date": "example",
"story_id": 1,
"workflow_id": 1,
"workflow_stage_id": 1
},
"tag_list": [
"example"
],
"unpublished_changes": true,
"updated_at": "example",
"uuid": "example"
}
}Get asset
Get an asset with its address, file details, alt text and title.
Inputs
- Space
space_idtextRequired - The Storyblok space.
- Asset
asset_idtextRequired - The asset.
Outputs
dataobject- The response from Storyblok.
Example output
{
"data": {
"alt": "example",
"asset_folder_id": 1,
"content_length": 1,
"content_type": "example",
"copyright": "example",
"created_at": "example",
"deleted_at": "example",
"expire_at": "example",
"filename": "example",
"focus": "example",
"id": 1,
"is_private": true,
"locked": true,
"publish_at": "example",
"short_filename": "example",
"source": "example",
"space_id": 1,
"title": "example",
"updated_at": "example"
}
}Get story
Get a story with its content, status and workflow stage.
Inputs
- Space
space_idtextRequired - The Storyblok space.
- Story
story_idtextRequired - The story.
Outputs
dataobject- The response from Storyblok.
Example output
{
"data": {
"content": {},
"created_at": "example",
"default_root": "example",
"first_published_at": "example",
"full_slug": "example",
"group_id": "example",
"id": 1,
"is_folder": true,
"is_startpage": true,
"last_author": {
"friendly_name": "example",
"id": 1,
"userid": "example"
},
"last_author_id": 1,
"name": "example",
"parent_id": 1,
"path": "example",
"position": 1,
"published": true,
"published_at": "example",
"slug": "example",
"sort_by_date": "example",
"stage": {
"created_at": "example",
"due_date": "example",
"story_id": 1,
"workflow_id": 1,
"workflow_stage_id": 1
},
"tag_list": [
"example"
],
"unpublished_changes": true,
"updated_at": "example",
"uuid": "example"
}
}List asset folders
List the folders in a space's asset library.
Inputs
- Space
space_idtextRequired - The Storyblok space.
- Search
searchtext - Only folders whose name contains this.
Outputs
dataobject- The response from Storyblok.
Example output
{
"data": {
"count": 1,
"items": [
{
"id": 1,
"name": "example",
"parent_id": 1,
"parent_uuid": "example",
"uuid": "example"
}
]
}
}List assets
List the images and files in a space's asset library.
Inputs
- Space
space_idtextRequired - The Storyblok space.
- Asset folder
asset_folder_idtext - Only assets in this folder.
- Search
searchtext - Only assets whose file name contains this.
- Order
sort_bytext - The order to list them in.One of:
created_at:desc(Newest first),created_at:asc(Oldest first),updated_at:desc(Recently updated first),short_filename:asc(File name, A to Z),content_length:desc(Largest first). - Page
pagenumber - Which page of assets to return, from 1. Use the next_page a previous step returned.At least 1.
- Per page
per_pagenumber - How many assets to return, up to 100. Storyblok's default is 25.From 1 to 100.
Outputs
dataobject- The response from Storyblok.
Example output
{
"data": {
"count": 1,
"items": [
{
"alt": "example",
"asset_folder_id": 1,
"content_length": 1,
"content_type": "example",
"copyright": "example",
"created_at": "example",
"deleted_at": "example",
"expire_at": "example",
"filename": "example",
"focus": "example",
"id": 1,
"is_private": true,
"locked": true,
"publish_at": "example",
"short_filename": "example",
"source": "example",
"space_id": 1,
"title": "example",
"updated_at": "example"
}
],
"next_page": 1
}
}List components
List a space's components: its content types and the blocks they are built from, with their fields.
Inputs
- Space
space_idtextRequired - The Storyblok space.
- Show
showtext - Only content types, or only nestable blocks. Leave empty for all.One of:
content_types(Content types),nestable(Nestable blocks). - Search
searchtext - Only components whose name contains this.
Outputs
dataobject- The response from Storyblok.
Example output
{
"data": {
"count": 1,
"items": [
{
"component_group_uuid": "example",
"created_at": "example",
"display_name": "example",
"id": 1,
"is_nestable": true,
"is_root": true,
"name": "example",
"real_name": "example",
"schema": {},
"updated_at": "example"
}
]
}
}List datasource entries
List the entries, each a key and a value, in a datasource.
Inputs
- Space
space_idtextRequired - The Storyblok space.
- Datasource
datasource_idtextRequired - The datasource.
- Search
searchtext - Only entries whose name contains this.
- Page
pagenumber - Which page of entries to return, from 1. Use the next_page a previous step returned.At least 1.
- Per page
per_pagenumber - How many entries to return, up to 100. Storyblok's default is 25.From 1 to 100.
Outputs
dataobject- The response from Storyblok.
Example output
{
"data": {
"count": 1,
"items": [
{
"datasource_id": 1,
"dimension_value": "example",
"id": 1,
"name": "example",
"position": 1,
"value": "example"
}
],
"next_page": 1
}
}List datasources
List a space's datasources: the lists of keys and values that content can choose from.
Inputs
- Space
space_idtextRequired - The Storyblok space.
- Search
searchtext - Only datasources whose name contains this.
- Page
pagenumber - Which page of datasources to return, from 1. Use the next_page a previous step returned.At least 1.
- Per page
per_pagenumber - How many datasources to return, up to 100. Storyblok's default is 25.From 1 to 100.
Outputs
dataobject- The response from Storyblok.
Example output
{
"data": {
"count": 1,
"items": [
{
"created_at": "example",
"dimensions": [
{
"datasource_id": 1,
"entry_value": "example",
"id": 1,
"name": "example"
}
],
"id": 1,
"name": "example",
"slug": "example",
"updated_at": "example"
}
],
"next_page": 1
}
}List spaces
List the Storyblok spaces your access token can reach.
Inputs
None.
Outputs
dataobject- The response from Storyblok.
Example output
{
"data": {
"count": 1,
"items": [
{
"created_at": "example",
"id": 1,
"name": "example",
"org_id": 1,
"owner_id": 1,
"plan": "example",
"region": "example",
"space_type": "example",
"updated_at": "example"
}
]
}
}List stories
List a space's stories and folders, without their content. Use Get story for a story's content.
Inputs
- Space
space_idtextRequired - The Storyblok space.
- Search
text_searchtext - Only stories with this text in their name, slug or content.
- Folder
folder_idtext - Only what is directly inside this folder.
- Tag
with_tagtext - Only stories with this tag.
- Status
statustext - Only published stories, or only stories that are not published.One of:
published,draft(Not published). - Show
showtext - Only stories, or only folders. Leave empty for both.One of:
stories(Stories only),folders(Folders only). - Workflow stage
stage_idtext - Only stories in this workflow stage.
- Order
sorttext - The order to list them in. Newest first unless you choose another.One of:
created_at:desc(Newest first),created_at:asc(Oldest first),updated_at:desc(Recently updated first),published_at:desc(Recently published first),name:asc(Name, A to Z),name:desc(Name, Z to A). Default:created_at:desc. - Page
pagenumber - Which page of stories to return, from 1. Use the next_page a previous step returned.At least 1.
- Per page
per_pagenumber - How many stories to return, up to 100. Storyblok's default is 25.From 1 to 100.
Outputs
dataobject- The response from Storyblok.
Example output
{
"data": {
"count": 1,
"items": [
{
"content_type": "example",
"created_at": "example",
"default_root": "example",
"first_published_at": "example",
"full_slug": "example",
"group_id": "example",
"id": 1,
"is_folder": true,
"is_startpage": true,
"last_author": {
"friendly_name": "example",
"id": 1,
"userid": "example"
},
"last_author_id": 1,
"name": "example",
"parent_id": 1,
"path": "example",
"position": 1,
"published": true,
"published_at": "example",
"slug": "example",
"sort_by_date": "example",
"stage": {
"created_at": "example",
"due_date": "example",
"story_id": 1,
"workflow_id": 1,
"workflow_stage_id": 1
},
"tag_list": [
"example"
],
"unpublished_changes": true,
"updated_at": "example",
"uuid": "example"
}
],
"next_page": 1
}
}List workflow stages
List the stages of a space's editorial workflows, such as Drafting and Reviewing.
Inputs
- Space
space_idtextRequired - The Storyblok space.
Outputs
dataobject- The response from Storyblok.
Example output
{
"data": {
"count": 1,
"items": [
{
"allow_publish": true,
"color": "example",
"id": 1,
"is_default": true,
"name": "example",
"position": 1,
"workflow_id": 1
}
]
}
}Publish story
Publish a story's current draft, so your website shows it.
Inputs
- Space
space_idtextRequired - The Storyblok space.
- Story
story_idtextRequired - The story.
- Languages
languageslist - With translations published separately: the language codes to change, such as de or es, and [default] for the default language. Leave empty for all.
Outputs
dataobject- The response from Storyblok.
Example output
{
"data": {
"content": {},
"created_at": "example",
"default_root": "example",
"first_published_at": "example",
"full_slug": "example",
"group_id": "example",
"id": 1,
"is_folder": true,
"is_startpage": true,
"last_author": {
"friendly_name": "example",
"id": 1,
"userid": "example"
},
"last_author_id": 1,
"name": "example",
"parent_id": 1,
"path": "example",
"position": 1,
"published": true,
"published_at": "example",
"slug": "example",
"sort_by_date": "example",
"stage": {
"created_at": "example",
"due_date": "example",
"story_id": 1,
"workflow_id": 1,
"workflow_stage_id": 1
},
"tag_list": [
"example"
],
"unpublished_changes": true,
"updated_at": "example",
"uuid": "example"
}
}Unpublish story
Unpublish a story, so your website no longer shows it. The story is kept as a draft.
Inputs
- Space
space_idtextRequired - The Storyblok space.
- Story
story_idtextRequired - The story.
- Languages
languageslist - With translations published separately: the language codes to change, such as de or es, and [default] for the default language. Leave empty for all.
Outputs
dataobject- The response from Storyblok.
Example output
{
"data": {}
}Update asset
Change an asset's alt text, title, copyright or source, or move it to another folder. Anything left empty stays as it is.
Inputs
- Space
space_idtextRequired - The Storyblok space.
- Asset
asset_idtextRequired - The asset.
- Alt text
alttext - The alt text that describes the image.
- Title
titletext - The asset's title.
- Copyright
copyrighttext - The copyright notice.
- Source
sourcetext - Where the asset comes from.
- Move to folder
move_to_foldertext - Move the asset into this folder.
Outputs
dataobject- The response from Storyblok.
Example output
{
"data": {
"alt": "example",
"asset_folder_id": 1,
"content_length": 1,
"content_type": "example",
"copyright": "example",
"created_at": "example",
"deleted_at": "example",
"expire_at": "example",
"filename": "example",
"focus": "example",
"id": 1,
"is_private": true,
"locked": true,
"publish_at": "example",
"short_filename": "example",
"source": "example",
"space_id": 1,
"title": "example",
"updated_at": "example"
}
}Update datasource entry
Change a datasource entry's name or value. Whatever you leave empty stays as it is.
Inputs
- Space
space_idtextRequired - The Storyblok space.
- Datasource
datasource_idtextRequired - The datasource the entry is in, to choose the entry from.
- Entry
entry_idtextRequired - The datasource entry.
- Name
nametext - A new name, the entry's key.
- Value
valuetext - A new value.
Outputs
dataobject- The response from Storyblok.
Example output
{
"data": {
"datasource_id": 1,
"dimension_value": "example",
"id": 1,
"name": "example",
"position": 1,
"value": "example"
}
}Update story
Change a story's name, slug, folder, tags or content fields. Anything left empty stays as it is.
Inputs
- Space
space_idtextRequired - The Storyblok space.
- Story
story_idtextRequired - The story.
- Name
nametext - A new name.
- Slug
slugtext - A new slug, the last part of the story's URL.
- Folder
folder_idtext - Move the story into this folder.
- Content fields
fieldsobject - Content fields to change, keyed by each field's technical name, such as {"title": "New title"}. Fields you leave out keep their values.
- Tags
tagslist - The story's tags. These replace its current tags.
- Publish now
publishtrue/false - Publish the story with the changes. Otherwise they are saved as a draft.
Outputs
dataobject- The response from Storyblok.
Example output
{
"data": {
"content": {},
"created_at": "example",
"default_root": "example",
"first_published_at": "example",
"full_slug": "example",
"group_id": "example",
"id": 1,
"is_folder": true,
"is_startpage": true,
"last_author": {
"friendly_name": "example",
"id": 1,
"userid": "example"
},
"last_author_id": 1,
"name": "example",
"parent_id": 1,
"path": "example",
"position": 1,
"published": true,
"published_at": "example",
"slug": "example",
"sort_by_date": "example",
"stage": {
"created_at": "example",
"due_date": "example",
"story_id": 1,
"workflow_id": 1,
"workflow_stage_id": 1
},
"tag_list": [
"example"
],
"unpublished_changes": true,
"updated_at": "example",
"uuid": "example"
}
}