Storyblok

App · 25 actions

Create, update and publish stories, and manage assets, datasources and workflow stages in Storyblok.

Actions

ActionWhat it does
Change workflow stageMove a story to another stage of its workflow, such as from Drafting to Reviewing.
Create datasourceCreate a datasource, a list of keys and values that content can choose from.
Create datasource entryAdd an entry, a key and a value, to the end of a datasource.
Create folderCreate a folder for stories.
Create storyCreate a story of a content type, as a draft or published at once.
Delete assetDelete an asset from the asset library.
Delete datasourceDelete a datasource and all its entries.
Delete datasource entryDelete an entry from a datasource.
Delete storyDelete a story or a folder.
Duplicate storyCopy a story, into the same folder or another one.
Get assetGet an asset with its address, file details, alt text and title.
Get storyGet a story with its content, status and workflow stage.
List asset foldersList the folders in a space's asset library.
List assetsList the images and files in a space's asset library.
List componentsList a space's components: its content types and the blocks they are built from, with their fields.
List datasource entriesList the entries, each a key and a value, in a datasource.
List datasourcesList a space's datasources: the lists of keys and values that content can choose from.
List spacesList the Storyblok spaces your access token can reach.
List storiesList a space's stories and folders, without their content.
List workflow stagesList the stages of a space's editorial workflows, such as Drafting and Reviewing.
Publish storyPublish a story's current draft, so your website shows it.
Unpublish storyUnpublish a story, so your website no longer shows it.
Update assetChange an asset's alt text, title, copyright or source, or move it to another folder.
Update datasource entryChange a datasource entry's name or value.
Update storyChange 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

Spacespace_idtextRequired
The Storyblok space.
Storystory_idtextRequired
The story.
Workflow stagestage_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

Spacespace_idtextRequired
The Storyblok space.
NamenametextRequired
The datasource's name.
Slugslugtext
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

Spacespace_idtextRequired
The Storyblok space.
Datasourcedatasource_idtextRequired
The datasource.
NamenametextRequired
The entry's name, its key.
ValuevaluetextRequired
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

Spacespace_idtextRequired
The Storyblok space.
NamenametextRequired
The folder's name.
Slugslugtext
The folder's part of the URL of the stories in it. Leave empty to make one from the name.
Folderfolder_idtext
The folder to create it in. Leave empty for the top level of the space.
Default content typedefault_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

Spacespace_idtextRequired
The Storyblok space.
NamenametextRequired
The story's name, shown in Storyblok's content list.
Content typecontent_typetextRequired
The content type of the story, such as a page or an article.
Slugslugtext
The last part of the story's URL, such as my-first-post. Leave empty to make one from the name.
Folderfolder_idtext
The folder to put it in. Leave empty for the top level of the space.
Content fieldsfieldsobject
The content's fields, keyed by each field's technical name in the content type, such as {"title": "Hello", "body": "..."}.
Tagstagslist
Tags to give the story.
Publish nowpublishtrue/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

Spacespace_idtextRequired
The Storyblok space.
Assetasset_idtextRequired
The asset.

Outputs

dataobject
The response from Storyblok.
Example output
{
  "data": {}
}

Delete datasource

Delete a datasource and all its entries.

Inputs

Spacespace_idtextRequired
The Storyblok space.
Datasourcedatasource_idtextRequired
The datasource.

Outputs

dataobject
The response from Storyblok.
Example output
{
  "data": {}
}

Delete datasource entry

Delete an entry from a datasource.

Inputs

Spacespace_idtextRequired
The Storyblok space.
Datasourcedatasource_idtextRequired
The datasource the entry is in, to choose the entry from.
Entryentry_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

Spacespace_idtextRequired
The Storyblok space.
Storystory_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

Spacespace_idtextRequired
The Storyblok space.
Storystory_idtextRequired
The story.
Namenametext
The copy's name.
Slugslugtext
The copy's slug. Leave empty to make one from the name.
Folderfolder_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

Spacespace_idtextRequired
The Storyblok space.
Assetasset_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

Spacespace_idtextRequired
The Storyblok space.
Storystory_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

Spacespace_idtextRequired
The Storyblok space.
Searchsearchtext
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

Spacespace_idtextRequired
The Storyblok space.
Asset folderasset_folder_idtext
Only assets in this folder.
Searchsearchtext
Only assets whose file name contains this.
Ordersort_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).
Pagepagenumber
Which page of assets to return, from 1. Use the next_page a previous step returned.At least 1.
Per pageper_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

Spacespace_idtextRequired
The Storyblok space.
Showshowtext
Only content types, or only nestable blocks. Leave empty for all.One of: content_types (Content types), nestable (Nestable blocks).
Searchsearchtext
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

Spacespace_idtextRequired
The Storyblok space.
Datasourcedatasource_idtextRequired
The datasource.
Searchsearchtext
Only entries whose name contains this.
Pagepagenumber
Which page of entries to return, from 1. Use the next_page a previous step returned.At least 1.
Per pageper_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

Spacespace_idtextRequired
The Storyblok space.
Searchsearchtext
Only datasources whose name contains this.
Pagepagenumber
Which page of datasources to return, from 1. Use the next_page a previous step returned.At least 1.
Per pageper_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

Spacespace_idtextRequired
The Storyblok space.
Searchtext_searchtext
Only stories with this text in their name, slug or content.
Folderfolder_idtext
Only what is directly inside this folder.
Tagwith_tagtext
Only stories with this tag.
Statusstatustext
Only published stories, or only stories that are not published.One of: published, draft (Not published).
Showshowtext
Only stories, or only folders. Leave empty for both.One of: stories (Stories only), folders (Folders only).
Workflow stagestage_idtext
Only stories in this workflow stage.
Ordersorttext
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.
Pagepagenumber
Which page of stories to return, from 1. Use the next_page a previous step returned.At least 1.
Per pageper_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

Spacespace_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

Spacespace_idtextRequired
The Storyblok space.
Storystory_idtextRequired
The story.
Languageslanguageslist
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

Spacespace_idtextRequired
The Storyblok space.
Storystory_idtextRequired
The story.
Languageslanguageslist
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

Spacespace_idtextRequired
The Storyblok space.
Assetasset_idtextRequired
The asset.
Alt textalttext
The alt text that describes the image.
Titletitletext
The asset's title.
Copyrightcopyrighttext
The copyright notice.
Sourcesourcetext
Where the asset comes from.
Move to foldermove_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

Spacespace_idtextRequired
The Storyblok space.
Datasourcedatasource_idtextRequired
The datasource the entry is in, to choose the entry from.
Entryentry_idtextRequired
The datasource entry.
Namenametext
A new name, the entry's key.
Valuevaluetext
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

Spacespace_idtextRequired
The Storyblok space.
Storystory_idtextRequired
The story.
Namenametext
A new name.
Slugslugtext
A new slug, the last part of the story's URL.
Folderfolder_idtext
Move the story into this folder.
Content fieldsfieldsobject
Content fields to change, keyed by each field's technical name, such as {"title": "New title"}. Fields you leave out keep their values.
Tagstagslist
The story's tags. These replace its current tags.
Publish nowpublishtrue/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"
  }
}

On this page