Preview an unpublished layout
const url = 'https://api.example.com/cms/layout/1/preview/example';const options = {method: 'GET', headers: {'API-Key': '<API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.example.com/cms/layout/1/preview/example \ --header 'API-Key: <API-Key>'Returns an unsaved draft layout, resolved against live content. Preview keys are generated by the CMS editor and expire after 15 minutes.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”Resolved draft layout
A published page builder layout, resolved for rendering: rows → columns → blocks on a 12-column grid. Linked presets are already inlined and list blocks carry their content in data. Render each block by its type and variant; unknown variants should fall back to the block’s default variant (see GET /cms/pagebuilder/blocks).
object
Layout ID
Layout name
Stable key set in the editor (GET /cms/layout/key/{key}); null when not set
What the layout is for
Published version ID (0 for previews of unpublished drafts)
Text direction of the layout: the layout’s own setting, else the site default (Page Builder settings). Columns flow in this direction. Sites entirely in one direction can ignore it; mixed-language sites should set dir on the layout’s wrapper.
Version of the layout document format
Rows, top to bottom
A row of a page builder layout
object
Row ID, unique within the layout
Row presentation settings
object
Background style; absent = default
Span the full viewport width
Space above the row, as a size of the frontend’s spacing scale; absent = frontend default
Space below the row; absent = frontend default
Space inside the row (within its background), at the top; absent = frontend default
Space inside the row, at the bottom; absent = frontend default
Space before the row on the inline-start side (left in LTR, right in RTL: margin-inline-start); absent = frontend default
Space on the inline-end side (margin-inline-end); absent = frontend default
Space inside the row on the inline-start side (padding-inline-start); absent = frontend default
Space inside the row on the inline-end side (padding-inline-end); absent = frontend default
Whether a row, column or block is shown on each breakpoint. Hidden items are still sent; render them hidden at that breakpoint (e.g. with CSS) so one cached response serves every device.
object
Desktop
Tablet
Mobile
Set when the row comes from a linked preset (already inlined)
Columns, in source order (see order for per-breakpoint reordering)
A column of a row, on a 12-column grid
object
Column ID, unique within the layout
Width out of 12 for each breakpoint, already resolved (mobile-first inheritance: unset widths are filled in)
object
Desktop
Tablet
Mobile
Display order within the row per breakpoint (like CSS order); only breakpoints that reorder are present
object
Whether a row, column or block is shown on each breakpoint. Hidden items are still sent; render them hidden at that breakpoint (e.g. with CSS) so one cached response serves every device.
object
Desktop
Tablet
Mobile
Blocks, top to bottom
A block of a page builder layout. Block types: content_list, tabs, rich_text, image, embed, cta, ad_slot, newsletter_signup, social_links, messaging_zone, html, page_header, poll, form, custom, and on article templates article_body, author_box, article_tags, comments (see GET /cms/pagebuilder/blocks for the ones enabled on this deployment and their settings). A block whose type is disabled or not allowed on this layout is sent as {id, type, disabled: true} only and should not be rendered.
object
Block ID, unique within the layout. Blocks inlined from a preset get IDs prefixed with the referencing ID (e.g. r2/b1).
Block type
Only present (true) when the block must not be rendered: its type is disabled or not allowed on this layout. Other fields are then omitted.
Desktop display variant (same as responsive.lg.variant)
Desktop variant options (same as responsive.lg.variantOptions)
object
Block settings; depends on type. variant, variantOptions and limit are not repeated here (see responsive).
object
object
external: items are provided by the frontend (see stream)
Kind=external: name of the list the frontend provides, e.g. “main”
Kind=section: dynamic section name of the page
Kind=section: page owning the section, when not the page being rendered
Kind=query: content filter (same format as a page section’s “Configure filter”)
object
Kind=mostread|mostcommented
Kind=mostread
Items of the source skipped before this block (already applied to data)
Whether items shown higher on the page were skipped (already applied to data)
Block settings; depends on type. variant, variantOptions and limit are not repeated here (see responsive).
object
Ad unit / slot name known to the frontend
Sizes per breakpoint in Google Publisher Tag format: [width, height] pairs and/or "fluid". A breakpoint without sizes uses the next larger one’s; no sizes at all: the frontend’s defaults for the unit
object
Block settings; depends on type. variant, variantOptions and limit are not repeated here (see responsive).
object
Subscribe with POST /cms/channel/{channelId}/subscribe
Block settings; depends on type. variant, variantOptions and limit are not repeated here (see responsive).
object
object
Block settings; depends on type. variant, variantOptions and limit are not repeated here (see responsive).
object
Render <div data-wb-zone-key="{zoneKey}"></div>; the messaging script fills it
Block settings; depends on type. variant, variantOptions and limit are not repeated here (see responsive).
object
Raw HTML to insert as-is (may contain scripts)
No settings; the tabs are in children
object
Render data.html (rendered like an article body), not settings.html (editor markup)
object
Editor markup
Block settings; depends on type. variant, variantOptions and limit are not repeated here (see responsive).
object
Http(s) URL, site path or mailto
Block settings; depends on type. variant, variantOptions and limit are not repeated here (see responsive).
object
Article embed shortcode body, e.g. “embed source=youtube id=XYZ”
What the editor pasted
Block settings; depends on type. variant, variantOptions and limit are not repeated here (see responsive).
object
Http(s) URL, site path or mailto
No settings: render the title of the category, publication, author or keyword the template shows (by layout.kind); what to show is in variantOptions
object
Block settings; depends on type. variant, variantOptions and limit are not repeated here (see responsive).
object
object
Kind=poll: the poll
Kind=section: linkables section whose first poll is shown
Kind=section: page owning the section, when not the page being rendered
Block settings; depends on type. variant, variantOptions and limit are not repeated here (see responsive).
object
No settings: the component is the variant, its fields are in variantOptions (images and content resolved in optionData). Render nothing for an unknown variant
object
Article templates: render the article (from GET /cms/content/{id}) here. Missing booleans mean true
object
Byline and date
Sharing toolbar
Article templates: the article’s authors. Missing booleans mean true
object
Article templates: the article’s keywords, as links
object
Article templates: the comments widget; nothing when the article has comments off
object
Behind a “Show comments” button
Display per breakpoint (desktop-first: tablet inherits desktop, mobile inherits tablet, unless changed in the editor)
object
How a block is displayed at one breakpoint, after desktop-first inheritance and fallbacks are applied
object
Display variant key, as configured in Page Builder settings
Presentation options of the variant (fields are defined per variant in GET /cms/pagebuilder/blocks)
object
Number of items to show at this breakpoint (list blocks); slice data to this length
How a block is displayed at one breakpoint, after desktop-first inheritance and fallbacks are applied
object
Display variant key, as configured in Page Builder settings
Presentation options of the variant (fields are defined per variant in GET /cms/pagebuilder/blocks)
object
Number of items to show at this breakpoint (list blocks); slice data to this length
How a block is displayed at one breakpoint, after desktop-first inheritance and fallbacks are applied
object
Display variant key, as configured in Page Builder settings
Presentation options of the variant (fields are defined per variant in GET /cms/pagebuilder/blocks)
object
Number of items to show at this breakpoint (list blocks); slice data to this length
Whether a row, column or block is shown on each breakpoint. Hidden items are still sent; render them hidden at that breakpoint (e.g. with CSS) so one cached response serves every device.
object
Desktop
Tablet
Mobile
Set when the block comes from a linked preset (already inlined)
External list blocks only (settings.source.kind: "external"): the slice of the named list to show, instead of data. Show items offset … offset + responsive[bp].limit - 1 of the list (0-based); items is offset + the largest limit.
object
Images and content picked in image / content display options (variantOptions hold their IDs), keyed by ID across every breakpoint. Missing IDs were deleted or unpublished. Only present when such options are filled in.
object
object
API representation of an attachment (images, video, files)
object
Attachment ID
Name
Description
Type (image|video|file)
Public URL
Width in pixels
Height in pixels
Focal point as “x% y%”
Transforms (list of available image transforms)
object
Width in pixels
Height in pixels
URL of the transformed image
Additional urls per transform
object
Search title
Search description
Social title
API representation of a video
object
Video ID
Title
URL
Duration in seconds
Episode number
Status
Show ID
Show name
Show URL
Brief
Thumbnail URL
ThumbnailPlay URL
Filename/URL
Publish date
Views
Publish flag
Formats
API representation of a video format
object
Format
Filename/URL
CDN path
MIME type
Duration in seconds
object
API representation of an article/content item (v3)
object
Object PHP class name
Article ID
Signature
Absolute URL
Short URL
Slug
API representation of a content type
object
Content Type ID
Name
Slug
Editor
Views count
Comments count
Average rating by customers
Total ratings count
Preview limit
Excluded from search engine flag
Title
First published date
Last update date
Categories
API representation of a category
object
Category ID
The page builder template to render a category, publication, article, author or keyword with (the layoutTemplate field of their views). For category, author, keyword and article pages, prefer their /layout endpoint (e.g. GET /cms/category/{category_id}/layout), which returns the object and this template already filled in one call. Otherwise fetch the layout with GET /cms/layout/key/{key}, or GET /cms/layout/{id} when key is null.
object
Layout ID of the template
Stable key of the template; null when not set
Template name
Why this template applies, most specific first: the content type (article templates only), the category itself, a parent category, or the publication; for author and keyword templates, the author or keyword itself
What the template is used for
ID of the content type, category, publication, author or keyword
Category name
Seo name
Signature
Slug
Type ID or object
Parent category ID
Parent object
Image URL
Cover URL
Logo URL
Paid flag
PHP class name of the object
Absolute URL
CSS code
Template name
Tagline
Link parameter
Description
Meta description
IPTC Media Topic code
Order
Page ID
Articles count
Allow comments flag
Access type of the category (e.g., public, restricted)
Status
Content length
Summary
Introduction
Premium flag
Free flag
Credits
Authors
API representation of an author
object
Author ID
The page builder template to render a category, publication, article, author or keyword with (the layoutTemplate field of their views). For category, author, keyword and article pages, prefer their /layout endpoint (e.g. GET /cms/category/{category_id}/layout), which returns the object and this template already filled in one call. Otherwise fetch the layout with GET /cms/layout/key/{key}, or GET /cms/layout/{id} when key is null.
object
Layout ID of the template
Stable key of the template; null when not set
Template name
Why this template applies, most specific first: the content type (article templates only), the category itself, a parent category, or the publication; for author and keyword templates, the author or keyword itself
What the template is used for
ID of the content type, category, publication, author or keyword
URL to the author page
Author name
Image URL
Available image transformations in different sizes
object
Width in pixels
Height in pixels
URL to the transformed image
Cover image URL
Author email
Department
Editorial name (slug)
Short biography
Full description (HTML)
Name in latin characters
Country code or name
Google+ profile (legacy)
Twitter handle (without @)
Facebook username
LinkedIn profile
Instagram handle
Class name of the object
If this author was replaced, id of replacement
Source, if present
API representation of a sponsor
object
Sponsor ID
URL to the sponsor page
Sponsor name
Image URL
Attachments
API representation of an attachment (images, video, files)
object
Attachment ID
Name
Description
Type (image|video|file)
Public URL
Width in pixels
Height in pixels
Focal point as “x% y%”
Transforms (list of available image transforms)
object
Width in pixels
Height in pixels
URL of the transformed image
Additional urls per transform
object
Search title
Search description
Social title
API representation of a video
object
Video ID
Title
URL
Duration in seconds
Episode number
Status
Show ID
Show name
Show URL
Brief
Thumbnail URL
ThumbnailPlay URL
Filename/URL
Publish date
Views
Publish flag
Formats
API representation of a video format
object
Format
Filename/URL
CDN path
MIME type
Duration in seconds
Inline attachments
API representation of an attachment (images, video, files)
object
Attachment ID
Name
Description
Type (image|video|file)
Public URL
Width in pixels
Height in pixels
Focal point as “x% y%”
Transforms (list of available image transforms)
object
Width in pixels
Height in pixels
URL of the transformed image
Additional urls per transform
object
Search title
Search description
Social title
API representation of a video
object
Video ID
Title
URL
Duration in seconds
Episode number
Status
Show ID
Show name
Show URL
Brief
Thumbnail URL
ThumbnailPlay URL
Filename/URL
Publish date
Views
Publish flag
Formats
API representation of a video format
object
Format
Filename/URL
CDN path
MIME type
Duration in seconds
Files
API representation of an attachment (images, video, files)
object
Attachment ID
Name
Description
Type (image|video|file)
Public URL
Width in pixels
Height in pixels
Focal point as “x% y%”
Transforms (list of available image transforms)
object
Width in pixels
Height in pixels
URL of the transformed image
Additional urls per transform
object
Search title
Search description
Social title
API representation of a video
object
Video ID
Title
URL
Duration in seconds
Episode number
Status
Show ID
Show name
Show URL
Brief
Thumbnail URL
ThumbnailPlay URL
Filename/URL
Publish date
Views
Publish flag
Formats
API representation of a video format
object
Format
Filename/URL
CDN path
MIME type
Duration in seconds
Videos
API representation of an attachment (images, video, files)
object
Attachment ID
Name
Description
Type (image|video|file)
Public URL
Width in pixels
Height in pixels
Focal point as “x% y%”
Transforms (list of available image transforms)
object
Width in pixels
Height in pixels
URL of the transformed image
Additional urls per transform
object
Search title
Search description
Social title
API representation of a video
object
Video ID
Title
URL
Duration in seconds
Episode number
Status
Show ID
Show name
Show URL
Brief
Thumbnail URL
ThumbnailPlay URL
Filename/URL
Publish date
Views
Publish flag
Formats
API representation of a video format
object
Format
Filename/URL
CDN path
MIME type
Duration in seconds
Keywords
API representation of a keyword
object
Keyword ID
The page builder template to render a category, publication, article, author or keyword with (the layoutTemplate field of their views). For category, author, keyword and article pages, prefer their /layout endpoint (e.g. GET /cms/category/{category_id}/layout), which returns the object and this template already filled in one call. Otherwise fetch the layout with GET /cms/layout/key/{key}, or GET /cms/layout/{id} when key is null.
object
Layout ID of the template
Stable key of the template; null when not set
Template name
Why this template applies, most specific first: the content type (article templates only), the category itself, a parent category, or the publication; for author and keyword templates, the author or keyword itself
What the template is used for
ID of the content type, category, publication, author or keyword
Name
URL
Slug
Description
Articles count
If this keyword was replaced, id of replacement
Display name
Translations
Collection id
Image URL
Elements (youtube, liveblogs, polls, quiz)
object
Live blogs in the article
API representation of a liveblog
object
LiveBlog ID
Title
Start date
End date
Websocket room name
Preview messages
API representation of a liveblog message
object
Message ID
Timestamp
Text
Title
Minute
Additional minute value
Type id
Image letter/character
Highlight flag
HTML content
User display name
User thumbnail URL
Polls in the article
API representation of a poll
object
Poll ID
Timestamp
Question
Choices
Votes
Slug
API representation of a poll category
object
Category ID
Name
Image
Results
object
Number of votes
Percentage of total votes
Message
Only logged in
End date
Voted (only true when voting)
Voted choice (only valid when voting)
Closed
Quizzes in the article
API representation of a quiz
object
Quiz ID
Name
Timestamp
Image
Cover picture
Description
Share
Template
Allow form
Introduction message
Thankyou message
Terms
Status
Questions
API representation of a quiz question
object
Question ID
Title
Result text
Image
Choices
API representation of a quiz answer
object
Answer ID
Answer text
Letter
Image
Correct
Points
Votes
Results
API representation of a quiz result
object
Result ID
Result
Image
Letter
Result text
Share
Twitter share
Minimum
Maximum
Votes
YouTube video IDs in the article
SEO object
object
Search title
Search description
Social title
Social description
Social image URL
Time to read (seconds)
Access control enabled
Access allowed
Status
Cached flag
List blocks only: number of items in data (or in the stream slice), the largest limit across breakpoints
API representation of an article/content item (v3)
object
Object PHP class name
Article ID
Signature
Absolute URL
Short URL
Slug
API representation of a content type
object
Content Type ID
Name
Slug
Editor
Views count
Comments count
Average rating by customers
Total ratings count
Preview limit
Excluded from search engine flag
Title
First published date
Last update date
Categories
API representation of a category
object
Category ID
The page builder template to render a category, publication, article, author or keyword with (the layoutTemplate field of their views). For category, author, keyword and article pages, prefer their /layout endpoint (e.g. GET /cms/category/{category_id}/layout), which returns the object and this template already filled in one call. Otherwise fetch the layout with GET /cms/layout/key/{key}, or GET /cms/layout/{id} when key is null.
object
Layout ID of the template
Stable key of the template; null when not set
Template name
Why this template applies, most specific first: the content type (article templates only), the category itself, a parent category, or the publication; for author and keyword templates, the author or keyword itself
What the template is used for
ID of the content type, category, publication, author or keyword
Category name
Seo name
Signature
Slug
Type ID or object
Parent category ID
Parent object
Image URL
Cover URL
Logo URL
Paid flag
PHP class name of the object
Absolute URL
CSS code
Template name
Tagline
Link parameter
Description
Meta description
IPTC Media Topic code
Order
Page ID
Articles count
Allow comments flag
Access type of the category (e.g., public, restricted)
Status
Content length
Summary
Introduction
Premium flag
Free flag
Credits
Authors
API representation of an author
object
Author ID
The page builder template to render a category, publication, article, author or keyword with (the layoutTemplate field of their views). For category, author, keyword and article pages, prefer their /layout endpoint (e.g. GET /cms/category/{category_id}/layout), which returns the object and this template already filled in one call. Otherwise fetch the layout with GET /cms/layout/key/{key}, or GET /cms/layout/{id} when key is null.
object
Layout ID of the template
Stable key of the template; null when not set
Template name
Why this template applies, most specific first: the content type (article templates only), the category itself, a parent category, or the publication; for author and keyword templates, the author or keyword itself
What the template is used for
ID of the content type, category, publication, author or keyword
URL to the author page
Author name
Image URL
Available image transformations in different sizes
object
Width in pixels
Height in pixels
URL to the transformed image
Cover image URL
Author email
Department
Editorial name (slug)
Short biography
Full description (HTML)
Name in latin characters
Country code or name
Google+ profile (legacy)
Twitter handle (without @)
Facebook username
LinkedIn profile
Instagram handle
Class name of the object
If this author was replaced, id of replacement
Source, if present
API representation of a sponsor
object
Sponsor ID
URL to the sponsor page
Sponsor name
Image URL
Attachments
API representation of an attachment (images, video, files)
object
Attachment ID
Name
Description
Type (image|video|file)
Public URL
Width in pixels
Height in pixels
Focal point as “x% y%”
Transforms (list of available image transforms)
object
Width in pixels
Height in pixels
URL of the transformed image
Additional urls per transform
object
Search title
Search description
Social title
API representation of a video
object
Video ID
Title
URL
Duration in seconds
Episode number
Status
Show ID
Show name
Show URL
Brief
Thumbnail URL
ThumbnailPlay URL
Filename/URL
Publish date
Views
Publish flag
Formats
API representation of a video format
object
Format
Filename/URL
CDN path
MIME type
Duration in seconds
Inline attachments
API representation of an attachment (images, video, files)
object
Attachment ID
Name
Description
Type (image|video|file)
Public URL
Width in pixels
Height in pixels
Focal point as “x% y%”
Transforms (list of available image transforms)
object
Width in pixels
Height in pixels
URL of the transformed image
Additional urls per transform
object
Search title
Search description
Social title
API representation of a video
object
Video ID
Title
URL
Duration in seconds
Episode number
Status
Show ID
Show name
Show URL
Brief
Thumbnail URL
ThumbnailPlay URL
Filename/URL
Publish date
Views
Publish flag
Formats
API representation of a video format
object
Format
Filename/URL
CDN path
MIME type
Duration in seconds
Files
API representation of an attachment (images, video, files)
object
Attachment ID
Name
Description
Type (image|video|file)
Public URL
Width in pixels
Height in pixels
Focal point as “x% y%”
Transforms (list of available image transforms)
object
Width in pixels
Height in pixels
URL of the transformed image
Additional urls per transform
object
Search title
Search description
Social title
API representation of a video
object
Video ID
Title
URL
Duration in seconds
Episode number
Status
Show ID
Show name
Show URL
Brief
Thumbnail URL
ThumbnailPlay URL
Filename/URL
Publish date
Views
Publish flag
Formats
API representation of a video format
object
Format
Filename/URL
CDN path
MIME type
Duration in seconds
Videos
API representation of an attachment (images, video, files)
object
Attachment ID
Name
Description
Type (image|video|file)
Public URL
Width in pixels
Height in pixels
Focal point as “x% y%”
Transforms (list of available image transforms)
object
Width in pixels
Height in pixels
URL of the transformed image
Additional urls per transform
object
Search title
Search description
Social title
API representation of a video
object
Video ID
Title
URL
Duration in seconds
Episode number
Status
Show ID
Show name
Show URL
Brief
Thumbnail URL
ThumbnailPlay URL
Filename/URL
Publish date
Views
Publish flag
Formats
API representation of a video format
object
Format
Filename/URL
CDN path
MIME type
Duration in seconds
Keywords
API representation of a keyword
object
Keyword ID
The page builder template to render a category, publication, article, author or keyword with (the layoutTemplate field of their views). For category, author, keyword and article pages, prefer their /layout endpoint (e.g. GET /cms/category/{category_id}/layout), which returns the object and this template already filled in one call. Otherwise fetch the layout with GET /cms/layout/key/{key}, or GET /cms/layout/{id} when key is null.
object
Layout ID of the template
Stable key of the template; null when not set
Template name
Why this template applies, most specific first: the content type (article templates only), the category itself, a parent category, or the publication; for author and keyword templates, the author or keyword itself
What the template is used for
ID of the content type, category, publication, author or keyword
Name
URL
Slug
Description
Articles count
If this keyword was replaced, id of replacement
Display name
Translations
Collection id
Image URL
Elements (youtube, liveblogs, polls, quiz)
object
Live blogs in the article
API representation of a liveblog
object
LiveBlog ID
Title
Start date
End date
Websocket room name
Preview messages
API representation of a liveblog message
object
Message ID
Timestamp
Text
Title
Minute
Additional minute value
Type id
Image letter/character
Highlight flag
HTML content
User display name
User thumbnail URL
Polls in the article
API representation of a poll
object
Poll ID
Timestamp
Question
Choices
Votes
Slug
API representation of a poll category
object
Category ID
Name
Image
Results
object
Number of votes
Percentage of total votes
Message
Only logged in
End date
Voted (only true when voting)
Voted choice (only valid when voting)
Closed
Quizzes in the article
API representation of a quiz
object
Quiz ID
Name
Timestamp
Image
Cover picture
Description
Share
Template
Allow form
Introduction message
Thankyou message
Terms
Status
Questions
API representation of a quiz question
object
Question ID
Title
Result text
Image
Choices
API representation of a quiz answer
object
Answer ID
Answer text
Letter
Image
Correct
Points
Votes
Results
API representation of a quiz result
object
Result ID
Result
Image
Letter
Result text
Share
Twitter share
Minimum
Maximum
Votes
YouTube video IDs in the article
SEO object
object
Search title
Search description
Social title
Social description
Social image URL
Time to read (seconds)
Access control enabled
Access allowed
Status
Cached flag
API representation of a category
object
Category ID
The page builder template to render a category, publication, article, author or keyword with (the layoutTemplate field of their views). For category, author, keyword and article pages, prefer their /layout endpoint (e.g. GET /cms/category/{category_id}/layout), which returns the object and this template already filled in one call. Otherwise fetch the layout with GET /cms/layout/key/{key}, or GET /cms/layout/{id} when key is null.
object
Layout ID of the template
Stable key of the template; null when not set
Template name
Why this template applies, most specific first: the content type (article templates only), the category itself, a parent category, or the publication; for author and keyword templates, the author or keyword itself
What the template is used for
ID of the content type, category, publication, author or keyword
Category name
Seo name
Signature
Slug
Type ID or object
Parent category ID
Parent object
Image URL
Cover URL
Logo URL
Paid flag
PHP class name of the object
Absolute URL
CSS code
Template name
Tagline
Link parameter
Description
Meta description
IPTC Media Topic code
Order
Page ID
Articles count
Allow comments flag
Access type of the category (e.g., public, restricted)
Status
API representation of an author
object
Author ID
The page builder template to render a category, publication, article, author or keyword with (the layoutTemplate field of their views). For category, author, keyword and article pages, prefer their /layout endpoint (e.g. GET /cms/category/{category_id}/layout), which returns the object and this template already filled in one call. Otherwise fetch the layout with GET /cms/layout/key/{key}, or GET /cms/layout/{id} when key is null.
object
Layout ID of the template
Stable key of the template; null when not set
Template name
Why this template applies, most specific first: the content type (article templates only), the category itself, a parent category, or the publication; for author and keyword templates, the author or keyword itself
What the template is used for
ID of the content type, category, publication, author or keyword
URL to the author page
Author name
Image URL
Available image transformations in different sizes
object
Width in pixels
Height in pixels
URL to the transformed image
Cover image URL
Author email
Department
Editorial name (slug)
Short biography
Full description (HTML)
Name in latin characters
Country code or name
Google+ profile (legacy)
Twitter handle (without @)
Facebook username
LinkedIn profile
Instagram handle
Class name of the object
If this author was replaced, id of replacement
object
object
Article API v3 image: url, url_
object
object
API representation of a poll
object
Poll ID
Timestamp
Question
Choices
Votes
Slug
API representation of a poll category
object
Category ID
Name
Image
Results
object
Number of votes
Percentage of total votes
Message
Only logged in
End date
Voted (only true when voting)
Voted choice (only valid when voting)
Closed
API representation of a form
object
Form ID
Form name
Fields
object
Captcha enabled
Allow anonymous submissions
External lists the frontend must provide (blocks with source.kind: "external"), by name, with the number of items needed so every external block is filled: fetch that many items (e.g. the category being rendered) and give each external block its slice (block.stream). Empty object when the layout has no external lists.
object
object
Items to fetch for this list (largest offset + limit of its blocks)
Example
{ "id": 12, "name": "Homepage", "key": "category-template", "kind": "front", "versionId": 57, "direction": "ltr", "schemaVersion": 1, "rows": [ { "id": "r1", "settings": { "background": "muted" }, "visibility": { "lg": true, "md": true, "xs": false }, "presetId": 7, "columns": [ { "id": "c1", "span": { "lg": 8, "md": 8, "xs": 12 }, "order": { "xs": 2 }, "visibility": { "lg": true, "md": true, "xs": false }, "blocks": [ { "id": "b1", "type": "content_list", "variant": "lead_grid", "variantOptions": { "leadBadge": "TOP STORY", "showByline": false }, "settings": { "source": { "kind": "section", "section": "top_stories" }, "header": { "title": "Top stories", "link": { "type": "category", "value": 12 } }, "dedupe": true }, "responsive": { "lg": { "variant": "lead_grid", "variantOptions": { "leadBadge": "TOP STORY", "showByline": false }, "limit": 7 }, "md": { "variant": "lead_grid", "variantOptions": { "leadBadge": "TOP STORY", "showByline": false }, "limit": 7 }, "xs": { "variant": "compact_byline", "variantOptions": [], "limit": 4 } }, "visibility": { "lg": true, "md": true, "xs": true }, "limit": 7, "data": [ { "id": 101, "title": "Example story" } ] } ] } ] } ], "streams": { "main": { "items": 20 } }}Invalid or expired preview key