Presshub Template

You will find detailed information about each parameter that you pass in Publish Article, Preview Article, Update Article endpoint calls. See also Get Template Info to see full JSON-structured template example.

Params
version
string
required
Presshub API version. Current version is 1.0.
title
string
required
Article title. Basic HTML tags allowed <em>, <strong>, <b>, <i>.
canonicalURL
URL
required
Article canonical URL (absolute URL). This should link to the original article.
template
string
required
Template ID to use. See Get Templates for all available templates.
components
array
required
Template components that describe template mapping. Each template has it is own mapping schema, such as category, featured_image, body etc. See below for component params.
subtitle
string
optional
Article subtitle. It is recommended to use subtitles for better article display. Basic HTML tags allowed <em>, <strong>, <b>, <i>.
keywords
array
optional
Article tags. It is recommended to add 3-5 article keywords, so users can search and find your articles more easily on each service.
maturityRating
string
optional
Indicates the viewing audience for the content. The types of audiences or ratings are KIDS, MATURE, and GENERAL. Note that a Mature rating indicates explicit content that is appropriate for a specific audience only. Default value: null. Currently supported by Apple News only.
language
string
optional
Article language. Currently only en supported. Support for other languages is currently in development.
thumbnail
URL
optional
Absolute URL to article thumbnail.
Component Params
map
string
required
Template field name.
value
string
required
Template field value. Basically Get Templates and Get Template Info will return the schema and it will indicate what kind of data it expects. body field supports full HTML.
options
array
optional
Template field options. Options will vary depending on the mapping field.