Get Templates

GET https://api.presshub.io/v1/templates

Returns a 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": []
          }
        ]
      }
    }
  ]
}