Skip to content

Get publication details

GET
/cms/publication/{publication_id}
curl --request GET \
--url https://api.example.com/cms/publication/1 \
--header 'API-Key: <API-Key>'
publication_id
required
integer

Publication

Media typeapplication/json
Publication

API representation of a publication

object
id

Publication ID

integer format: int64
layoutTemplate
One of:
PageTemplateMatch

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
id

Layout ID of the template

integer format: int64
key

Stable key of the template; null when not set

string
nullable
name

Template name

string
matchedBy

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

string
Allowed values: article_type category parent_category publication author keyword
targetType

What the template is used for

string
Allowed values: article_type category publication author keyword
targetId

ID of the content type, category, publication, author or keyword

integer format: int64
name

Name

string
slug

Slug

string
shortened_domain

Shortened domain

string
stylesheetClass

Stylesheet class

string
locale

Locale

string
domain

Domain

string
articleUrlPrefix

Article URL prefix

string

Example

{
"layoutTemplate": {
"id": 31,
"key": "opinion-article",
"name": "Opinion article",
"matchedBy": "article_type",
"targetType": "article_type",
"targetId": 14
}
}