fetchStory

suspend fun fetchStory(key: String, findBy: String? = null, resolveLinks: String? = null, resolveRelations: String? = null, fromRelease: Long? = null, language: String? = null, fallbackLang: String? = null, cv: Long? = null): Story?

Returns a story object for the full_slug, id or uuid if authenticated using a preview or public token.

key :full_slug :: Use the full_slug of your content entry to retrieve it. Attention: If you use field level translations and a root folder with the same name of a language code you need to prepend default to the path to retrieve the default language (Example: api.storyblok.com/v1/cdn/stories/default/de/home). :id :: Use the numeric id of your content entry to retrieve it :uuid :: You can use the uuid property to query for your content entry. To tell our API to use the uuid instead of the id append the query param find_by=uuid findBy Added if you want to query by uuid instead of using the numeric id resolveLinks The parameter resolve_links will automatically resolve internal links of the multilink field type. If the value is story the whole story object will be included. If the value is url only uuid, id, name, path, slug and url (url is a computed property which returns the "Real path" if defined to use it for navigation links) will be included. The limit of resolved links per Story is 50 when resolving with story and 100 when resolving with url. resolveRelations Resolve relationships to other Stories of a multi-option or single-option field-type. Provide the component name and the field key as comma separated string. The limit of resolved relationships is 100 Stories. Example: resolve_relations=page.author,page.categories; Read more about it in our tutorial. fromRelease Access version of specific release by release id language Add the language i18n code as query parameter to receive a localized version when using a numeric id or uuid as path parameter fallbackLang Define a custom fallback language (i18n code). By default the fallback language is the one defined in the space settings cv Defines the cache version