Get publication details
const url = 'https://api.example.com/cms/publication/1';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/publication/1 \ --header 'API-Key: <API-Key>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”Publication
API representation of a publication
object
Publication 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
Slug
Shortened domain
Stylesheet class
Locale
Domain
Article URL prefix
Example
{ "layoutTemplate": { "id": 31, "key": "opinion-article", "name": "Opinion article", "matchedBy": "article_type", "targetType": "article_type", "targetId": 14 }}