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 namepublished_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 IDuuidstringStory UUIDcontentobjectAn object containing the field data associated with a content type’s specific structure. Also includes acomponentproperty with the content type’s technical name.slugstringStoryfull_slugstringStory full slug, combining the parent folder(s) and the story slugsort_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 namesis_startpagebooleantrueif the story is defined as folder rootparent_idnumberParent folder IDmeta_dataobject | nullObject to store non-editable data that is exclusively maintained with the Management APIgroup_idstringGroup ID (UUID string), shared between stories defined as alternatesrelease_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 IDnamestringStory nameslugstringStory slugpublishedbooleantrueif the story is currently publishedfull_slugstringStory full slug, combining the parent folder(s) and the story slugis_folderbooleantrueif the instance constitutes a folderparent_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 slugnamestringTranslated namelangstringLanguage code of story variantpublishedbooleantrueif 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