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