BlogUrlMode
TypeAlias
How this site builds blog URLs, as reported by every endpoint that returns a path. Exactly two values exist on the wire:
'flat': URLs use the slug only, e.g./blog/my-article'nested': URLs include the category chain, e.g./blog/tech/my-article
Configured in the site's SEO settings; 'flat' when unset.
type BlogUrlMode = "flat" | "nested"CategoriesListResponse
Interface
Response from categories.list().
Returns all categories (flat list, not paginated) with their content counts.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | How blog content URLs are constructed for this site:<br>- |
|
| No | Flat array of all categories with their published content count.<br>Not paginated: all categories come in one response. |
|
| No | The locale the read aims at, such as |
CategoryDetailResponse
Interface
Response from categories.getBySlug().
Contains the full category details along with its paginated content list.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Full category details: path, description, image, displayOrder, and the<br>schema fields for structured categories. Carries no |
|
| No | One page of the category's published articles, set by the |
|
| No | The locale the read aims at, such as |
CategoryResolveResponse
Interface
Path resolution response when the resolved path matches a category.
Returned by paths.resolve() when the given URL corresponds to a category listing.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | The site's blog URL mode, |
|
| No | The category, without the |
|
| No | The category's published articles. |
|
| No | Locale of the path, such as |
|
| No | Discriminator field. Always |
CategoryTreeResponse
Interface
Response from categories.tree().
Returns categories organized in a parent-child hierarchy.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | How blog content URLs are constructed for this site:<br>- |
|
| No | The locale the read aims at, such as |
|
| No | Root-level category nodes, each containing nested |
ConsentLogResponse
Interface
Response from cookies.logConsent().
Records the user's cookie consent preferences for GDPR compliance.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Confirmation message, |
ContentResolveResponse
Interface
Path resolution response when the resolved path matches a content article.
Returned by paths.resolve() when the given URL corresponds to a published article.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | The site's blog URL mode, |
|
| No | Full content object for the matched article, including body, SEO fields,<br>categories, tags, author, and customData. When the request carries a<br>locale, it also carries the LocaleResolution signals<br>( |
|
| No | Locale of the path, such as |
|
| No | Discriminator field. Always |
ContentsListResponse
Interface
Response from contents.list().
Returns content summaries (without body) for performance.
Use contents.getBySlug() to fetch the full content with body and relations.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Array of content summaries for the current page.<br>Each row omits the full |
|
| No | Pagination metadata for navigating through the result set. |
FormSubmitResponse
Interface
Response from forms.submit(), unwrapped from the API's { data } envelope.
The API answers a stored submission with 201 and this body, and nothing
else: there is no pending or double opt-in state for a form submission, and
no submission id on the wire. A rejected submission (validation, spam
protection, rate limit) throws a LynkowError instead of resolving.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Human-readable confirmation suitable for display to the user: the form's<br>configured |
|
| Yes | The form's configured |
|
| No | Always |
GlobalBlockResponse
Interface
Response from globals.getBySlug(): one global block with its data resolved.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | The global block. Its |
PagesListResponse
Interface
Response from pages.list().
Returns page summaries (without resolved data) in a single non-paginated response.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Array of page summaries. Does not include the resolved |
PaginatedResponse
Interface
Generic paginated response wrapping any item type. Used internally by the SDK; most endpoints return a concrete typed response instead.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Array of items for the current page. Empty array when no results match. |
|
| No | Pagination metadata describing total count, page position, and navigation flags. |
PaginationMeta
Interface
Pagination metadata of a paginated list. Pages are counted from 1. To know whether more
pages exist, compare currentPage with lastPage.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Current page number, counted from 1. A page past |
|
| No | Number of the first page. Always |
|
| Yes | Never sent by the API, so always |
|
| Yes | Never sent by the API, so always |
|
| No | Number of the last page: |
|
| No | Page size applied: the request's |
|
| No | Number of items matching the query across all pages. |
PathsListResponse
Interface
Response from paths.list(): the site's public URLs, for static generation and sitemaps.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No |
|
|
| No | The locale the paths were built for (e.g. |
|
| No | The paths of published articles and blog categories (root categories only in flat<br>mode), then the commerce pages with |
ProductCategoryResolveRecordResponse
Interface
paths.resolve() result for a visible product category page, record variant, returned to
a client with a valid publishable key.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Locale the page is served in, such as |
|
| No | The product category record: the same projection the category single read<br>( |
|
| No | The category page's structured data: its JSON-LD graph. Never a stock quantity. |
|
| No | Discriminator field. Always |
ProductCategoryResolveResponse
Interface
paths.resolve() result for a visible product category page,
/{productCategoryPrefix}/{slug}, pointer variant, returned to a client without a
publishable key.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Locale the page is served in, such as |
|
| No | Pointer to the product category: its wire id, slug and canonical path. |
|
| No | Discriminator field. Always |
ProductCollectionResolveRecordResponse
Interface
paths.resolve() result for a product collection page, record variant, returned to a
client with a valid publishable key.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Locale the page is served in, such as |
|
| No | The product collection record: the same projection the collection single read<br>( |
|
| No | The collection page's structured data: its JSON-LD graph. Never a stock quantity. |
|
| No | Discriminator field. Always |
ProductCollectionResolveResponse
Interface
paths.resolve() result for a product collection page, /{productCollectionPrefix}/{slug},
pointer variant, returned to a client without a publishable key.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Locale the page is served in, such as |
|
| No | Pointer to the product collection: its wire id, slug and canonical path. |
|
| No | Discriminator field. Always |
ProductResolveRecordResponse
Interface
paths.resolve() result for a product page, record variant, returned to a client with a
valid publishable key. The path rules are those of ProductResolveResponse.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Locale the page is served in, such as |
|
| No | The product record: the same projection |
|
| No | The product page's structured data: its JSON-LD graph. Never a stock quantity. |
|
| No | Discriminator field. Always |
ProductResolveResponse
Interface
paths.resolve() result for a product page, pointer variant, returned to a client
without a publishable key. The path must be exactly the product's URL:
/{productPrefix}/{slug}, or /{productCategoryPrefix}/{categorySlug}/{slug} when
products are nested under their category.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Locale the page is served in, such as |
|
| No | Pointer to the product: its wire id, slug and canonical path. |
|
| No | Discriminator field. Always |
ResolvedCommercePage
Interface
The pointer to a commerce page that paths.resolve() returns to a client without a
publishable key: the page's id, slug and path. Read the record with products.getBySlug()
or the product category and collection reads, which need a publishable key. The
LocaleResolution fields are present when the request carried a locale or the page
is served from a translation or a fallback.
Extends: LocaleResolution
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Prefixed public id: |
|
| Yes |
|
|
| Yes | BCP 47 locale code of the record actually served (e.g. |
|
| No | Canonical public URL path of the page, the one the sitemap lists. |
|
| Yes | BCP 47 locale code the request asked for (e.g. |
|
| No | The entity's slug, as |
ResolveRedirectResponse
Interface
Result of paths.resolve() or pages.getByPath() when nothing lives at the path but a
redirect covers it: the same answer paths.matchRedirect() gives for that path. The
redirect is a rule set in the admin, or an automatic locale redirect (301,
preserveQueryString: true), such as the default locale's prefixed URL to its
unprefixed one, always straight to the final URL. Send the visitor to redirect.target
with redirect.statusCode. Detect it with isRedirectResponse().
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | The redirect to follow: |
|
| No | Always |
ResolveResponse
TypeAlias
Result of paths.resolve(): narrow it on type. 'content' is an article, 'category'
a blog category, 'product', 'product_category' and 'product_collection' a commerce
page, 'redirect' a path that a redirect covers. A commerce hit is the record plus a
top-level structuredData for a client with a publishable key, else a pointer
{ id, slug, path }: check 'structuredData' in resolved.
type ResolveResponse = ContentResolveResponse | CategoryResolveResponse | ProductResolveResponse | ProductResolveRecordResponse | ProductCategoryResolveResponse | ProductCategoryResolveRecordResponse | ProductCollectionResolveResponse | ProductCollectionResolveRecordResponse | ResolveRedirectResponseReviewsListMeta
Interface
meta block of ReviewsListResponse: the standard pagination cursors
plus two aggregates over the site's approved reviews.
The aggregates apply the list's language rule (one review per translation group with a
request locale, every language for a product read without one, else the default
locale on a multi-language site) and ignore every other filter, the product itself and
the rating range included: they describe
the reviews a visitor can reach in that language, as a schema.org aggregateRating
needs. total is the count that reflects all your filters.
Extends: PaginationMeta
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Mean rating, as a number rounded to two decimals, over the approved reviews the language<br>rule serves. |
|
| No | Current page number, counted from 1. A page past |
|
| No | Number of the first page. Always |
|
| Yes | Never sent by the API, so always |
|
| Yes | Never sent by the API, so always |
|
| No | Number of the last page: |
|
| No | Page size applied: the request's |
|
| No | Number of items matching the query across all pages. |
|
| No | Count of the approved reviews the language rule serves (see above), one<br>per translation group when the request carries a locale. |
ReviewsListResponse
Interface
Response from reviews.list().
Only approved reviews are returned through the public API.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Array of approved reviews for the current page.<br>Reviews with status other than |
|
| No | Pagination metadata, plus the two site-wide review aggregates the endpoint<br>adds alongside it. |
ReviewSubmitResponse
Interface
Response from reviews.submit().
The status field depends on the site's review moderation settings.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | UUID of the created review. |
|
| No | Human-readable message suitable for display to the user.<br>Content varies based on whether the review was auto-approved or queued for moderation. |
|
| No |
|
SiteConfigResponse
Interface
Response from globals.siteConfig(): the site's identity and every published global
block, in one request.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Top-level data wrapper. |
TagsListResponse
Interface
Response from tags.list(): one page of tags, 20 per page unless limit says otherwise
(at most 100).
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Tags for the current page in the current locale.<br>Empty array when no tags match (or when paging past the last page). |
|
| No | Pagination metadata describing total count, page position, and navigation<br>flags. See PaginationMeta. |