The Story Object
The following object represents a story (a content entry). The schema of a story is defined in the Blok Library within Storyblok. The story type (content type) determines the content structure of a story via the definition of fields. This structure is represented in the content
property of the story object, whereas the other properties are generic and included in all Story Objects.
Properties
-
name
stringThe complete name provided for the story
-
created_at
stringCreation date (Format:
yyyy-MM-dd'T'HH:mm:ssZ
) -
published_at
stringLatest publishing date (Format:
yyyy-MM-dd'T'HH:mm:ssZ
) -
id
numberThe numeric ID
-
uuid
stringGenerated UUID string
-
content
objectAn object containing the field data associated with the specific story type's specific content structure. Also includes a
component
property with the story type's technical name. -
slug
stringThe slug specific for the story
-
full_slug
stringThe full slug of the story, combining the parent folder(s) and the designated story slug
-
sort_by_date
stringDate defined in the story's entry configuration (Format:
YYYY-mm-dd
) -
position
numberNumeric representation of the story's position in the folder
-
tag_list
string[]Array of tag names
-
is_startpage
booleantrue
if the story is defined as root for the folder -
parent_id
numberID of the parent folder
-
meta_data
objectObject to store non-editable data that is exclusively maintained with the Management API
-
group_id
stringGroup ID (UUID string), shared between stories defined as alternates
-
first_published_at
stringFirst publishing date (Format:
yyyy-MM-dd'T'HH:mm:ssZ
) -
release_id
numberID of the current release (can be requested with the
from_release
API parameter) -
lang
stringLanguage code of the current language (can be requested with the
language
API parameter) -
path
stringValue of the real path defined in the story's entry configuration (usually, this value is only required for Storyblok's Visual Editor)
-
alternates
object[]An array containing objects that provide basic data of the stories defined as alternates of the current story
-
id
numberThe numeric ID
-
name
stringThe complete name provided for the story
-
slug
stringThe slug specific for the story
-
published
booleantrue
if a story has been published at least once (even if it is currently in draft) -
full_slug
stringThe full slug of the story, combining the parent folder(s) and the designated story slug
-
is_folder
booleantrue
if the instance constitutes a folder
-
-
default_full_slug
stringContains the complete slug of the default language (if the app Translatable Slugs is installed)
-
translated_slugs
object[]Array of translated slug objects (if the app Translatable Slugs is installed)
-
path
stringValue of the translated slug
-
name
stringThe complete name provided for the story
-
lang
stringLanguage code of the current language (can be requested with the
language
API parameter) -
published
booleantrue
if a story has been published at least once (even if it is currently in draft)
-
{
"story": {
"name": "My third post",
"created_at": "2024-02-08T16:26:24.425Z",
"published_at": "2024-02-08T16:27:05.705Z",
"id": 440448565,
"uuid": "e656e146-f4ed-44a2-8017-013e5a9d9395",
"content": {
"_uid": "cfe0ff0b-3211-4bb7-8128-66e6ad262a56",
"component": "page"
},
"slug": "my-third-post",
"full_slug": "posts/my-third-post",
"sort_by_date": null,
"position": 0,
"tag_list": [],
"is_startpage": false,
"parent_id": 440448337,
"meta_data": null,
"group_id": "b913a671-f1e9-436a-bc5d-2795d2740198",
"first_published_at": "2024-02-08T16:27:05.705Z",
"release_id": null,
"lang": "default",
"path": null,
"alternates": [
{
"id": 440452827,
"name": "Mein dritter Beitrag",
"slug": "mein-dritter-beitrag",
"published": true,
"full_slug": "beitraege/mein-dritter-beitrag",
"is_folder": false,
"parent_id": 440452826
}
],
"default_full_slug": "posts/my-third-post",
"translated_slugs": [
{
"path": "posts/my-third-post",
"name": null,
"lang": "fr",
"published": null
},
{
"path": "posts/mein-dritter-beitrag",
"name": "Mein dritter Beitrag",
"lang": "de",
"published": true
}
]
}
}