Variants

List Template Variants

List all variants for a template. Refreshes signed URLs for all variants.

get/v1/template/{template_id}/variants

Request

  • Base URL: https://layerre.com (the document declares no server; this is the origin it was published from)
  • URL: https://layerre.com/v1/template/{template_id}/variants
  • Auth: HTTP bearer

Path parameters

template_idstring uuid required

Query parameters

skipinteger

Number of variants to skip

limitinteger

Maximum number of variants to return

Response

List of variants retrieved successfully

idstring uuid required
template_idstring uuid required
urlstring required

Rendered variant URL

signed_url_expirystring date-time nullable
widthinteger required

Variant width in pixels

heightinteger required

Variant height in pixels

page_numberinteger

Page index this variant was rendered from (0-based)

is_combined_pdfboolean

True when this variant is a multi-section combined PDF

combined_section_countinteger nullable

Number of variant sections merged into a combined PDF

created_atstring date-time required
updated_atstring date-time required
warningsstring[] nullable

Example response

[
  {
    "url": "https://example.com/variant.png",
    "width": 800,
    "height": 600,
    "overrides": [
      {
        "properties": {
          "width": 100,
          "height": 100,
          "color": "#FF0000",
          "text": "Hello World",
          "font_size": 16,
          "font_name": "Arial",
          "text_direction": "rtl",
          "line_spacing": 1000,
          "vertical_align": "middle",
          "img_url": "https://example.com/image.png",
          "opacity": 1
        }
      }
    ]
  }
]

Changes

No recorded changes to this operation across all 1 revision of this API.