> For the complete Lynkow documentation index in agent-friendly format, see [llms.txt](/llms.txt).

# SDK Types: Content

**Published**: 2026-11-30
**Category**: Types

> **Related services:** **ContentsService**: `lynkow.contents.getBySlug()`, `lynkow.contents.list()` | **TagsService**: `lynkow.tags.list()`

## `Author`

*Interface*

The author of a content item.
Corresponds to the user who created the content in the admin dashboard.

| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| `avatarUrl` | `string \| null` | No | Absolute URL to the author's avatar image, or `null` if no avatar is set.<br>When available, points to an image hosted on the Lynkow CDN.<br>Use `ImageVariants.avatar` (128x128) for optimized display if available elsewhere. |
| `fullName` | `string` | No | The author's display name (e.g. `'Jane Doe'`).<br>This is the user's full name as set in their account profile. |
| `id` | `string` | No | Author ID (UUID), the same for every article by this author. |


---

## `Content`

*Interface*

A full article with body, SEO metadata, structured data and relations, returned by
`contents.getBySlug()`. It extends ContentSummary with the fields lists leave out.

Extends: `ContentSummary`

| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| `alternates` | `ContentAlternate[]` | Yes | Published translations of this article in the site's enabled locales, for `hreflang` tags. Empty on a<br>fallback. Each `path` is site-relative. Optional in the type: read it with `?? []`. |
| `author` | `Author \| null` | No | The content author, or `null` if no author is assigned.<br>Corresponds to the admin user who created the content. |
| `body` | `string` | No | Article body as HTML, for `dangerouslySetInnerHTML` or `v-html`. May be empty for structured<br>content: read `customData` instead. |
| `canonicalPath` | `string` | Yes | Site-relative path search engines should index. Present only when the request carried a locale.<br>Equals `path`, except on a fallback, where it is the default-locale version. |
| `canonicalUrl` | `string \| null` | No | Absolute canonical URL, max 1000 characters: the editor's override when set, else on a fallback the<br>absolute `canonicalPath` when the site has a domain. Otherwise `null`: use `canonicalPath`, else `path`. |
| `categories` | `Category[]` | No | Categories of the article, in the article's locale. On a nested blog the first one builds `path`. |
| `createdAt` | `string` | No | ISO 8601 datetime when the content was created (e.g. `'2024-01-10T08:00:00.000+00:00'`).<br>Set automatically on initial creation and never changes. |
| `customData` | `Record<string, any> \| null` | Yes | Field values of structured content, shaped by the category's schema, with rich text fields as HTML.<br>`null` for standard content, which uses `body`. |
| `displayOrder` | `number \| null` | Yes | Manual sort position set by the editor. `null` when none is set. Present on the articles of<br>`categories.getBySlug()` and on an article from `paths.resolve()`. |
| `excerpt` | `string \| null` | No | Plain-text summary for cards and previews, written by the editor. `null` when none is set. |
| `featuredImage` | `string \| null` | No | Absolute URL to the original (full-resolution) featured image.<br>`null` if no featured image is set for this content.<br>Prefer `featuredImageVariants` for optimized, CDN-resized versions. |
| `featuredImageAlt` | `string \| null` | Yes | Alt text of the featured image for this locale, max 255 characters. `null` when none is set. |
| `featuredImageVariants` | `ImageVariants` | Yes | Resized versions of the featured image on the Lynkow CDN, as `thumbnail`, `card`, `medium`,<br>`content`, `hero` and `og`. Absent when no featured image is set. Prefer them to `featuredImage`. |
| `id` | `string` | No | Article ID (UUID). |
| `isFallback` | `boolean` | Yes | `true` when the record is served in another locale because `requestedLocale` has no translation.<br>Absent when the request carried no locale. Never `true` with `fallback: false`. |
| `jsonLdExclusions` | `string[]` | Yes | Reserved `@id` values this content opts out of. Typically used to<br>suppress auto-generated nodes (e.g. `'auto:article'`) when a custom<br>replacement has been supplied in `jsonLdGraph`. |
| `jsonLdGraph` | `JsonLdNode[]` | Yes | JSON-LD nodes set on this article. Already merged into StructuredData.graph, which you should read instead. |
| `keywords` | `string \| null` | No | Comma-separated SEO keywords (e.g. `'typescript, api, headless cms'`). Max 500 characters.<br>`null` if not set. Used for `<meta name="keywords">` tag.<br>Note: most search engines no longer use this for ranking, but it can be useful for internal search. |
| `locale` | `string` | No | BCP 47 code of the locale served: the requested one, or another when `isFallback` is `true`. |
| `metaDescription` | `string \| null` | No | Custom meta description for SEO. Max 500 characters.<br>`null` if not set: consider using `excerpt` as a fallback for `<meta name="description">`.<br>Recommended length: 150-160 characters for optimal search engine display. |
| `metaTitle` | `string \| null` | No | Custom meta title for SEO. Max 255 characters.<br>`null` if not set: use `title` as a fallback for `<title>` and `og:title`. |
| `noFollow` | `boolean` | No | When `true`, the editor asked search engines not to follow the links of this<br>content: render `<meta name="robots" content="nofollow">`. Never `null`.<br>Independent of Content.noIndex. |
| `noIndex` | `boolean` | No | When `true`, the editor asked search engines not to index this content:<br>render `<meta name="robots" content="noindex">`. Never `null`. |
| `ogDescription` | `string \| null` | No | Open Graph description used when the content is shared on social networks.<br>`null` if not set: in that case, use `metaDescription`, then `excerpt`, for `og:description`. |
| `ogImage` | `string \| null` | No | Absolute URL to the Open Graph image for social sharing.<br>`null` if not set: social platforms then use the featured image.<br>Max 1000 characters. Must be a valid URL. Recommended size: 1200x630px. |
| `ogImageAlt` | `string \| null` | Yes | Alt text of the Open Graph image for this locale, max 255 characters, for `og:image:alt`.<br>`null` when none is set. |
| `ogImageVariants` | `ImageVariants` | Yes | CDN-optimized variants of the Open Graph image at multiple preset sizes.<br>`undefined` when no OG image is set.<br>Use the `og` variant (1200x630) for social sharing meta tags. |
| `ogTitle` | `string \| null` | No | Open Graph title used when the content is shared on social networks.<br>`null` if not set: in that case, use `metaTitle`, then `title`, for `og:title`. |
| `path` | `string` | No | Site-relative URL path for links: blog prefix, category chain on a nested blog, and a locale prefix<br>for locales other than the site default, such as `'/fr/blog/mon-article'`. Prepend your base URL. |
| `publishedAt` | `string` | No | ISO 8601 datetime when the content was published (e.g. `'2024-03-15T10:30:00.000+00:00'`).<br>Set when the content transitions from `draft` to `published` status.<br>Can also be manually set by editors to backdate or schedule content. |
| `requestedLocale` | `string` | Yes | BCP 47 locale code the request asked for (e.g. `'de'`), as sent in the<br>`locale` request option or the client's configured locale.<br>Absent when the request carried no locale. |
| `slug` | `string` | No | URL slug, unique per site and locale, such as `'my-article-title'`. Pass it to `contents.getBySlug()`. |
| `status` | `"published"` | No | Publication status. Always `'published'` via the public API.<br>Draft, scheduled, and archived content is never returned by public endpoints. |
| `structuredData` | `StructuredData \| null` | No | Pre-generated Article and FAQ JSON-LD. `null` when none was generated. |
| `tags` | `Tag[]` | No | Tags associated with this content. Can be empty.<br>Tags are flat labels (no hierarchy) used for filtering and grouping content. |
| `title` | `string` | No | Article title in the served locale. |
| `twitterCard` | `"summary" \| "summary_large_image" \| "app" \| "player" \| null` | No | `<meta name="twitter:card">` value controlling the card layout when the content is<br>shared (`'summary'`, `'summary_large_image'`, `'app'` or `'player'`).<br>`null` if not set. |
| `type` | `string` | Yes | Content type, `'post'` for an article. Present only on an article from `paths.resolve()`. |
| `updatedAt` | `string` | No | ISO 8601 datetime of the last modification (e.g. `'2024-06-01T14:00:00.000+00:00'`).<br>Updated whenever the content is saved, including metadata-only changes. |


---

## `ContentAlternate`

*Interface*

One language version of the same content, used to build `hreflang` link tags.
`path` is site-relative: prepend your base URL before emitting a `<link rel="alternate">`.

| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| `current` | `boolean` | No | `true` for the entry describing the content you requested. |
| `locale` | `string` | No | BCP 47 locale code (e.g. `'en'`, `'fr'`, `'pt-BR'`).<br>Matches one of the site's enabled locales. |
| `path` | `string` | No | Site-relative path of this locale's version, without the domain. Locales other than the site<br>default are prefixed, such as `'/fr/blog/mon-article'`. |


---

## `ContentBody`

*TypeAlias*

Article body as an HTML string, converted from the editor content by the API.
It includes formatting, images, tables, code blocks and FAQ blocks.

```typescript
type ContentBody = string
```

---

## `ContentSummary`

*Interface*

An article as it appears in a list: the rows of `contents.list()` and the `contents` of
`categories.getBySlug()`. It has no `body`, `customData` or `structuredData`.
`contents.list()` rows also carry SEO fields (`metaTitle`, `ogImage`, `noIndex`, ...) and the
`author`, `categories` and `tags` relations, which this type does not declare.
Use `Content` from `contents.getBySlug()` for the full typed record.

Extends: `LocaleResolution`

| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| `canonicalPath` | `string` | Yes | Site-relative path search engines should index. Present only when the request carried a locale.<br>Equals `path`, except on a fallback, where it is the default-locale version. |
| `createdAt` | `string` | No | ISO 8601 datetime when the content was created (e.g. `'2024-01-10T08:00:00.000+00:00'`).<br>Set automatically on initial creation and never changes. |
| `displayOrder` | `number \| null` | Yes | Manual sort position set by the editor. `null` when none is set. Present on the articles of<br>`categories.getBySlug()` and on an article from `paths.resolve()`. |
| `excerpt` | `string \| null` | No | Plain-text summary for cards and previews, written by the editor. `null` when none is set. |
| `featuredImage` | `string \| null` | No | Absolute URL to the original (full-resolution) featured image.<br>`null` if no featured image is set for this content.<br>Prefer `featuredImageVariants` for optimized, CDN-resized versions. |
| `featuredImageAlt` | `string \| null` | Yes | Alt text of the featured image for this locale, max 255 characters. `null` when none is set. |
| `featuredImageVariants` | `ImageVariants` | Yes | Resized versions of the featured image on the Lynkow CDN, as `thumbnail`, `card`, `medium`,<br>`content`, `hero` and `og`. Absent when no featured image is set. Prefer them to `featuredImage`. |
| `id` | `string` | No | Article ID (UUID). |
| `isFallback` | `boolean` | Yes | `true` when the record is served in another locale because `requestedLocale` has no translation.<br>Absent when the request carried no locale. Never `true` with `fallback: false`. |
| `locale` | `string` | No | BCP 47 code of the locale served: the requested one, or another when `isFallback` is `true`. |
| `path` | `string` | No | Site-relative URL path for links: blog prefix, category chain on a nested blog, and a locale prefix<br>for locales other than the site default, such as `'/fr/blog/mon-article'`. Prepend your base URL. |
| `publishedAt` | `string` | No | ISO 8601 datetime when the content was published (e.g. `'2024-03-15T10:30:00.000+00:00'`).<br>Set when the content transitions from `draft` to `published` status.<br>Can also be manually set by editors to backdate or schedule content. |
| `requestedLocale` | `string` | Yes | BCP 47 locale code the request asked for (e.g. `'de'`), as sent in the<br>`locale` request option or the client's configured locale.<br>Absent when the request carried no locale. |
| `slug` | `string` | No | URL slug, unique per site and locale, such as `'my-article-title'`. Pass it to `contents.getBySlug()`. |
| `title` | `string` | No | Article title in the served locale. |


---

## `FaqItem`

*Interface*

A question and answer extracted from an article body, either from a FAQ block
(`'explicit'`) or from a heading followed by a paragraph (`'heading'`).
Each item can be switched on or off for the JSON-LD FAQPage schema.

| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| `answerHtml` | `string` | No | The answer rendered as an HTML string.<br>May contain inline formatting (bold, italic, links, etc.).<br>Render with `dangerouslySetInnerHTML` (React) or `v-html` (Vue). |
| `answerText` | `string` | No | The answer as plain text with all HTML tags stripped.<br>Useful for meta descriptions, search indexing, or accessibility fallbacks. |
| `enabled` | `boolean` | No | Whether this FAQ item is included in the generated JSON-LD FAQPage schema.<br>Toggled by content editors in the admin dashboard. Defaults to `true` for explicit FAQ blocks. |
| `id` | `string` | No | Deterministic identifier derived from the question text.<br>8-character MD5 hash of the normalized (lowercased, trimmed) question.<br>Stable across re-saves as long as the question text doesn't change. |
| `question` | `string` | No | The question text, as plain text (no HTML).<br>Extracted from the heading content or faqQuestion node. |
| `source` | `"heading" \| "explicit"` | No | How this FAQ was detected:<br>- `'explicit'`: from a dedicated FAQ block inserted by the content editor<br>- `'heading'`: auto-detected from a heading immediately followed by a paragraph |


---

## `StructuredData`

*Interface*

The JSON-LD structured data of an article, served as `content.structuredData`.
Emit each `jsonLd` object, or StructuredData.graph, in a `<script type="application/ld+json">`
tag through an escaping serializer such as `renderJsonLdGraph`, not a raw `JSON.stringify()`.
For `hreflang` tags use Content.alternates: the `alternates` here is a copy that can be stale.

| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| `_authorHash` | `string` | Yes | Internal change-detection hash of the resolved author. Absent on older rows. |
| `_bodyHash` | `string` | No | Internal change-detection hash of the article body. |
| `_faqSettingsHash` | `string` | Yes | Internal change-detection hash of the FAQ settings. Absent on older rows. |
| `_generatedAt` | `string` | No | ISO 8601 datetime the structured data was last (re)generated. |
| `_version` | `number` | No | Schema format version. Currently `1`.<br>Check this value to handle future schema changes gracefully.<br><br>Named with a leading underscore on the wire; there is no `version` field. |
| `alternates` | `ContentAlternate[]` | No | Language versions as captured when the structured data was generated, so it can be stale. Prefer Content.alternates. |
| `article` | `{ jsonLd: JsonLdArticle }` | No | Article-related structured data. |
| `faq` | `{ items: FaqItem[]; jsonLd: JsonLdFaqPage \| null } \| null` | No | FAQ-related structured data, or `null` when the article defines no FAQ.<br>Always null-check before reading `.items`: the API sends `faq: null`, not<br>an empty object. |
| `graph` | `object[]` | Yes | Resolved schema.org `@graph` of the article, merging site, category and article nodes.<br>Emit it as one tag with renderJsonLdGraph. Absent or empty on some older rows:<br>fall back to `faq.jsonLd` and `article.jsonLd`. |
| `locale` | `string` | No | BCP 47 locale the structured data was generated for. |


---

## `StructuredDataAlternate`

*TypeAlias*

```typescript
type StructuredDataAlternate = ContentAlternate
```

---

## `Tag`

*Interface*

A flat label on an article. Filter articles with `contents.list({ tag: slug })`.
Each language version of a tag is its own record with its own `id`: match a tag across
locales with `translationGroupId`. On a read with a locale, a tag also carries the
LocaleResolution signals `requestedLocale` and `isFallback`.

Extends: `LocaleResolution`

| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| `id` | `string` | No | Tag ID (UUID), different in each locale. |
| `isFallback` | `boolean` | Yes | `true` when the record is served in another locale because `requestedLocale` has no translation.<br>Absent when the request carried no locale. Never `true` with `fallback: false`. |
| `locale` | `string` | Yes | BCP 47 locale served, which differs from the requested one on a fallback. Absent on tags embedded in `contents.getBySlug()`. |
| `name` | `string` | No | Display name in the served locale, such as `'JavaScript'`. |
| `requestedLocale` | `string` | Yes | BCP 47 locale code the request asked for (e.g. `'de'`), as sent in the<br>`locale` request option or the client's configured locale.<br>Absent when the request carried no locale. |
| `slug` | `string` | No | URL slug, unique per site and locale and different in each locale. Pass it as the `tag` filter of `contents.list()`. |
| `translationGroupId` | `string \| null` | Yes | ID shared by every language version of the tag, for matching across locales. Sent by `tags.list()`, absent from embedded tags. |


---

## `TipTapMark`

*Interface*

A TipTap inline mark (bold, italic, link) applied to a text node.
Needed only for custom rendering: `Content.body` is already HTML.

| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| `attrs` | `Record<string, unknown>` | Yes | Mark-specific attributes. For example:<br>- `link`: `{ href: 'https://...', target: '_blank' }`<br>- `textStyle`: `{ color: '#ff0000' }`<br><br>`undefined` for simple marks like `bold` or `italic` that have no attributes. |
| `type` | `string` | No | The mark type. Common built-in types include `'bold'`, `'italic'`, `'link'`,<br>`'code'`, `'strike'`, `'underline'`. Custom mark types may also appear as plain strings. |


---

## `TipTapNode`

*Interface*

A TipTap editor node, a block or inline element of the content tree.
Needed only for custom rendering or content analysis: `Content.body` is already HTML.

| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| `attrs` | `Record<string, unknown>` | Yes | Node attributes, such as `{ level: 2 }` on a heading or `{ src, alt }` on an image. Absent when the node has none. |
| `content` | `TipTapNode[]` | Yes | Ordered child nodes forming the content tree.<br>Block-level nodes (paragraphs, headings, lists) contain other nodes.<br>Leaf nodes like `'text'` and `'horizontalRule'` have no children. |
| `marks` | `TipTapMark[]` | Yes | Inline marks applied to this text node (bold, italic, link, etc.).<br>Only meaningful on `'text'` type nodes. Multiple marks can be combined<br>(e.g. bold + italic + link). |
| `text` | `string` | Yes | Text content, present **only** on `'text'` type nodes.<br>For all other node types, the textual content is in child `content` nodes. |
| `type` | `string` | No | The node type. Determines the semantic meaning and rendering behavior.<br>Common types: `'doc'` (root), `'paragraph'`, `'heading'`, `'text'`, `'image'`,<br>`'bulletList'`, `'orderedList'`, `'listItem'`, `'blockquote'`, `'codeBlock'`,<br>`'horizontalRule'`, `'table'`/`'tableRow'`/`'tableCell'`/`'tableHeader'`,<br>`'faqBlock'`/`'faqItem'`/`'faqQuestion'`/`'faqAnswer'`.<br>Custom node types may also appear as plain strings. |