The Story Object
The following object represents a story. A story’s schema is defined in the Block Library within Storyblok. The content type determines the content structure of a story via the definition of fields. This specific structure is found in the content property of the story object, whereas the other properties are generic and included in all story objects.
Properties
Section titled “Properties”-
namestringStory name -
published_atstringLatest publication timestamp (Timestamps follow the ISO 8601 standard in UTC)
-
first_published_atstringFirst publication timestamp (Timestamps follow the ISO 8601 standard in UTC) -
created_atstringCreation timestamp (Timestamps follow the ISO 8601 standard in UTC)
-
updated_atstringLatest update timestamp (Timestamps follow the ISO 8601 standard in UTC)
-
idnumberStory ID -
uuidstringStory UUID -
contentobjectAn object containing the field data associated with a content type’s specific structure. Also includes acomponentproperty with the content type’s technical name. -
slugstringStory -
full_slugstringStory full slug, combining the parent folder(s) and the story slug -
sort_by_datestring | nullDate defined in the story’s entry configuration (Format:YYYY-mm-dd) -
positionnumberNumeric representation of the story’s position in the folder. Users can change this property in the Content tab. -
tag_listarray[string]Array of tag names -
is_startpagebooleantrueif the story is defined as folder root -
parent_idnumberParent folder ID -
meta_dataobject | nullObject to store non-editable data that is exclusively maintained with the Management API -
group_idstringGroup ID (UUID string), shared between stories defined as alternates -
release_idnumber | nullCurrent release ID (if requested via thefrom_releaseparameter) -
langstringLanguage code of the current language version (if requested via thelanguageparameter) -
pathstring | nullReal path defined in the story’s entry configuration (see Visual Editor)
-
alternatesarray[object]An array containing objects that provide basic data of the stories defined as alternates of the current story.
Show child properties
-
idnumberStory ID -
namestringStory name -
slugstringStory slug -
publishedbooleantrueif the story is currently published -
full_slugstringStory full slug, combining the parent folder(s) and the story slug -
is_folderbooleantrueif the instance constitutes a folder -
parent_idnumberID of the parent folder
-
-
default_full_slugstring | nullContains the complete slug of the default language (if the Translatable Slugs app is installed) -
translated_slugsarray[object] | nullArray of translated slug objects (if the Translatable Slugs app is installed)
Show child properties
-
pathstringTranslated slug -
namestringTranslated name -
langstringLanguage code of story variant -
publishedbooleantrueif story variant is currently published
-
{ "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 } ] }}Was this page helpful?
This site uses reCAPTCHA and Google's Privacy Policy (opens in a new window) . Terms of Service (opens in a new window) apply.
Get in touch with the Storyblok community