---
title: "List template versions for a template"
method: GET
path: "/v1/template/{id}"
tags: ["Templates"]
---

# List template versions for a template

`GET /v1/template/{id}`

## Path parameters

- `id` string, required

## Query parameters

- `count` integer
- `max_version` integer

## Response `200`

OK

- ListOfTemplates
  - `data` ImageTemplateBase[]
    - union
      - object
        - `template_type` 'html_css', required
        - `css` string, nullable — CSS used to style your templated images. You cannot use handlebars inside of the CSS; if you want to define variables for your CSS, it should be inlined in your HTML.
        - `html` string, nullable — HTML to render for your template. Use handlebars to place variables that will be substituted in the final rendered image.
        - `google_fonts` string, nullable
        - `id` string
        - `version` integer
        - `name` string, nullable — The name of the template, used to identify it in your account.
        - `description` string, nullable — A description of the template.
        - `created_at` string, date-time
        - `updated_at` string, date-time
        - `device_scale` number, double, nullable
        - `viewport_height` integer, nullable
        - `viewport_width` integer, nullable
        - `disable_twemoji` boolean, nullable
        - `max_wait_ms` integer, nullable
        - `ms_delay` integer, nullable
        - `render_when_ready` boolean, nullable
        - `render_count` integer
        - `color_scheme` unknown
        - `timezone` string, nullable
        - `viewport_mobile` boolean, nullable
        - `viewport_landscape` boolean, nullable
        - `viewport_touch` boolean, nullable
        - `media_type` unknown
        - `proxy_id` string, nullable
        - `jumbo_max_height` integer, nullable
        - `jumbo_max_width` integer, nullable
        - `transparent_background` boolean, nullable
        - `storage_destination_id` string, nullable
      - object
        - `template_type` 'blocks', required
        - `block_counts` object — The number of each block type used in this template.
        - `variables` TemplateVariable[]
          - `mode` 'Required' | 'Ignore' | 'Fallback'
          - `key` string — The template key used to assign this variable's value.
          - `fallback_value` unknown
          - `kind_hint` 'UNKNOWN' | 'String' | 'Boolean' | 'Integer' | 'Float' | 'Color' | 'Size' | 'Object' | 'Collection'
          - `helper_kind` 'UNKNOWN' | 'None' | 'If' | 'Unless' | 'With' | 'Each'
        - `id` string
        - `version` integer
        - `name` string, nullable — The name of the template, used to identify it in your account.
        - `description` string, nullable — A description of the template.
        - `created_at` string, date-time
        - `updated_at` string, date-time
        - `device_scale` number, double, nullable
        - `viewport_height` integer, nullable
        - `viewport_width` integer, nullable
        - `disable_twemoji` boolean, nullable
        - `max_wait_ms` integer, nullable
        - `ms_delay` integer, nullable
        - `render_when_ready` boolean, nullable
        - `render_count` integer
        - `color_scheme` unknown
        - `timezone` string, nullable
        - `viewport_mobile` boolean, nullable
        - `viewport_landscape` boolean, nullable
        - `viewport_touch` boolean, nullable
        - `media_type` unknown
        - `proxy_id` string, nullable
        - `jumbo_max_height` integer, nullable
        - `jumbo_max_width` integer, nullable
        - `transparent_background` boolean, nullable
        - `storage_destination_id` string, nullable
  - `pagination` PaginationInfo
    - `next_page_start` integer, nullable, required

## Other responses

- `400` — Bad Request
- `429` — Too Many Requests

---

[API](https://skmtc.dev/htmlcsstoimage/apis/html-css-to-image-api.md) · [All operations](https://skmtc.dev/htmlcsstoimage/apis/html-css-to-image-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/htmlcsstoimage/html-css-to-image-api/revisions/07d679e7b124/schema)
