Get a single category
const url = 'https://api.example.com/cms/category/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/category/example \ --header 'API-Key: <API-Key>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Category ID or slug
Responses
Section titled “Responses”Category
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
Example
{ "layoutTemplate": { "id": 31, "key": "opinion-article", "name": "Opinion article", "matchedBy": "article_type", "targetType": "article_type", "targetId": 14 }}Not found