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

# SDK Types: Pages

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

> **Related services:** **PagesService**: `lynkow.pages.getByPath()`, `lynkow.pages.getBySlug()`, `lynkow.pages.getJsonLd()`, `lynkow.pages.list()` | **BlocksService**: `lynkow.globals.getBySlug()`, `lynkow.globals.global()`, `lynkow.globals.siteConfig()`

## `Alternate`

*Interface*

One language version of the same page, for `hreflang` link tags and language switchers.

| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| `current` | `boolean` | No | `true` for the version being served, to highlight the active language. |
| `locale` | `string` | No | BCP 47 locale code of this version (e.g. `'en'`, `'fr'`, `'de'`).<br>Matches one of the site's enabled locales. |
| `path` | `string` | No | Site-relative public path of this locale's version, such as `'/fr/about'`. Prepend your base URL. |


---

## `GlobalBlock`

*Interface*

A global block: a reusable piece of data shared by every page, such as a header, footer or
navigation. Fetch all of them with `blocks.siteConfig()`, or one with `blocks.getBySlug()`.

Extends: `LocaleResolution`

| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| `_warnings` | `string[]` | Yes | Non-fatal problems met while resolving `data`, such as a deleted referenced item. Absent when none. |
| `canonicalPath` | `string \| null` | Yes | Always `null`: a global block has no public URL of its own. Present only on `globals.getBySlug()`<br>with a locale. |
| `data` | `Record<string, unknown>` | No | Resolved block data, shaped by the block's schema in the admin. References to other content are<br>already resolved, and rich text fields are HTML strings. |
| `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 code of the record actually served (e.g. `'en'`, `'fr'`).<br>Equals `requestedLocale` unless `isFallback` is `true`. |
| `name` | `string` | No | Display name set in the admin. Use `slug` for lookups. |
| `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 | Block identifier, unique per site, such as `'header'`. Pass it to `blocks.getBySlug()`;<br>it is also the key in the `globals` record of `blocks.siteConfig()`. |


---

## `LegalDocument`

*Interface*

A legal document such as a privacy policy: a page tagged `'legal'`, returned by the
deprecated `legal` service. Use `pages.getBySlug()` for the full page with alternates and warnings.

| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| `data` | `Record<string, unknown>` | No | Resolved page data, shaped by the page's schema in the admin. Rich text fields are HTML strings. |
| `id` | `string` | No | Document ID (UUID). |
| `locale` | `string` | No | BCP 47 locale of this version. |
| `name` | `string` | No | Display name in the served locale, such as `'Privacy Policy'`. |
| `seo` | `{ description?: string \| null; ogImage?: string \| null; title?: string \| null } \| null` | Yes | SEO metadata. `null` when none is configured. |
| `slug` | `string` | No | URL slug, unique per site and locale, such as `'privacy-policy'`. |
| `updatedAt` | `string` | No | ISO 8601 datetime of the last update, to show as "last revised". |


---

## `Page`

*Interface*

A full page, returned by `pages.getBySlug()`: a PageSummary plus its resolved data,
SEO settings and language versions.

Extends: `PageSummary`

| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| `_warnings` | `string[]` | Yes | Non-fatal problems met while resolving `data`, such as a deleted referenced item. Absent when none.<br>For debugging: do not show them to visitors. |
| `alternates` | `Alternate[]` | No | Language versions of the page, including the served one with `current: true`, for `hreflang` tags.<br>Empty on a fallback. |
| `canonicalPath` | `string` | Yes | Site-relative path search engines should index. Present only when the request carried a locale.<br>Equals `publicPath`, except on a fallback, where it is the default-locale version. |
| `canonicalUrl` | `string` | Yes | Absolute form of `canonicalPath`. Present only on a fallback whose SEO settings set no canonical<br>URL, when the site has a domain. PageSeo.canonicalUrl is the editor's own override. |
| `data` | `Record<string, unknown>` | No | Resolved data keyed by the names defined in the page's schema. A value can be a list of<br>ContentSummary, a Content, a list of Category, a Form or any JSON value. |
| `id` | `string` | No | Page 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 locale served. |
| `name` | `string` | No | Page name as shown in the admin, which can differ from the SEO title. Max 255 characters. |
| `path` | `string \| null` | No | Stored path, usually the same in every locale, such as `'/about'`. `null` when none is stored. Link to `publicPath` instead. |
| `publicPath` | `string` | No | Public URL path for links, such as `'/about'`. A locale other than the site default is prefixed, such<br>as `'/fr/a-propos'`. Falls back to the slug when no path is stored. Prepend your base URL. |
| `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. |
| `seo` | `PageSeo \| null` | No | Page SEO settings. `null` when none are configured. |
| `slug` | `string` | No | URL slug, unique per site and locale, max 255 characters. Pass it to `pages.getBySlug()`. |
| `structuredData` | `{ graph: object[] }` | Yes | Resolved JSON-LD for the page, ready to render. |
| `tags` | `string[]` | No | Tags set on the page in the admin, such as `'legal'`. Empty array when none. Filter on one<br>with the `tag` option of `pages.list()`. |
| `updatedAt` | `string \| null` | No | ISO 8601 datetime of the last save. `null` when the page was never modified after creation. |


---

## `PageSeo`

*Interface*

SEO settings of a page: meta tags, Open Graph, Twitter Card and robots directives.
Every field is optional, and your frontend renders the ones that are set into `<meta>` tags.

| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| `canonicalUrl` | `string` | Yes | Override canonical URL for this page. Absolute URL.<br>`undefined` means the page's own URL is canonical.<br>Use when the same content is accessible at multiple URLs to avoid duplicate content penalties. |
| `keywords` | `string[]` | Yes | Array of keyword strings for `<meta name="keywords">`.<br>`undefined` means no keywords are set.<br>Note: most search engines no longer use this for ranking. |
| `metaDescription` | `string` | Yes | `<meta name="description">` value.<br>`undefined` means no meta description is set.<br>Recommended length: 150-160 characters for optimal search engine display. |
| `metaTitle` | `string` | Yes | Custom `<title>` and `<meta property="og:title">` value.<br>`undefined` means use the page name as fallback.<br>Recommended length: 50-60 characters for optimal search engine display. |
| `noIndex` | `boolean` | Yes | When `true`, adds `<meta name="robots" content="noindex">` to prevent search engine indexing.<br>`undefined` or `false` means the page is indexable.<br>Use for staging pages, internal tools, or pages that should not appear in search results. |
| `ogDescription` | `string` | Yes | `<meta property="og:description">` value.<br>`undefined` means fall back to `metaDescription`. |
| `ogImage` | `SeoImage \| null` | Yes | Image for Open Graph sharing previews.<br>`null` means explicitly no image; `undefined` means not configured.<br>Recommended size: 1200x630px. |
| `ogSiteName` | `string` | Yes | `<meta property="og:site_name">` value.<br>`undefined` means use the site's name from site settings. |
| `ogTitle` | `string` | Yes | `<meta property="og:title">` value.<br>`undefined` means fall back to `metaTitle`, then the page name. |
| `ogUrl` | `string` | Yes | `<meta property="og:url">` value. Absolute URL.<br>`undefined` means use the canonical URL or the page's own URL. |
| `twitterCard` | `"summary" \| "summary_large_image" \| "app" \| "player"` | Yes | `<meta name="twitter:card">` layout: `'summary'`, `'summary_large_image'`, `'app'` or `'player'`. |
| `twitterDescription` | `string` | Yes | `<meta name="twitter:description">` value.<br>`undefined` means fall back to `ogDescription`, then `metaDescription`. |
| `twitterImage` | `SeoImage \| null` | Yes | Image for Twitter Card previews.<br>`null` means explicitly no image; `undefined` means fall back to `ogImage`.<br>Recommended size: 1200x628px for `summary_large_image`, 144x144px for `summary`. |
| `twitterTitle` | `string` | Yes | `<meta name="twitter:title">` value.<br>`undefined` means fall back to `ogTitle`, then `metaTitle`, then the page name. |


---

## `PageSummary`

*Interface*

A page as it appears in `pages.list()`: identity and routing only.
Use Page from `pages.getBySlug()` for the resolved data, SEO settings and alternates.

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 `publicPath`, except on a fallback, where it is the default-locale version. |
| `canonicalUrl` | `string` | Yes | Absolute form of `canonicalPath`. Present only on a fallback whose SEO settings set no canonical<br>URL, when the site has a domain. PageSeo.canonicalUrl is the editor's own override. |
| `id` | `string` | No | Page 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 locale served. |
| `name` | `string` | No | Page name as shown in the admin, which can differ from the SEO title. Max 255 characters. |
| `path` | `string \| null` | No | Stored path, usually the same in every locale, such as `'/about'`. `null` when none is stored. Link to `publicPath` instead. |
| `publicPath` | `string` | No | Public URL path for links, such as `'/about'`. A locale other than the site default is prefixed, such<br>as `'/fr/a-propos'`. Falls back to the slug when no path is stored. Prepend your base URL. |
| `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, max 255 characters. Pass it to `pages.getBySlug()`. |
| `tags` | `string[]` | No | Tags set on the page in the admin, such as `'legal'`. Empty array when none. Filter on one<br>with the `tag` option of `pages.list()`. |
| `updatedAt` | `string \| null` | No | ISO 8601 datetime of the last save. `null` when the page was never modified after creation. |