Get Template Info

GET https://api.presshub.io/v1/template/:template_id

Returns an individual template data.

Path Params
:template_id
string
required
Template ID. Examples: basic, basic_video, basic_audio. See Get Templates to get full list of available templates.
Response Format
{
  "data": {
    "info": {
      "template_id": "basic",
      "name": "Basic template",
      "description": "test template",
      "preview_image": null,
      "large_image": null,
      "preview_archive": null
    },
    "template": {
      "version": "1.0",
      "title": "Your Article Title",
      "subtitle": "Your Article Subtitle",
      "canonicalURL": "http://example.com/your-article-ul.html",
      "keywords": [
        "Keyword1",
        "Keyword2",
        "Keyword3"
      ],
      "maturityRating": null,
      "language": "en",
      "thumbnail": "https://example.com/article-thumbnail.jpg",
      "template": "basic",
      "components": [
        {
          "map": "byline",
          "value": "By Author Name",
          "options": []
        },
        {
          "map": "featured_image",
          "value": "URL",
          "options": {
            "Caption": "Image caption",
            "Photographer": "Photo by Name"
          }
        },
        {
          "map": "body",
          "value": "<p>HTML content</p>",
          "options": []
        }
      ]
    }
  }
}