---
title: "Module Template Search"
method: GET
path: "/module/templates/{dataType}"
tags: ["module"]
---

# Module Template Search

`GET /module/templates/{dataType}`

Get a list of templates available for a particular data type

## Path parameters

- `dataType` string, required

## Query parameters

- `type` string

## Response `200`

An array of module templates for the provided datatype

- ModuleTemplate — Represents a module template
  - `templateId` string — The templateId
  - `type` string — Type of template (static|element|stencil)
  - `extends` Extend — A class representing one template extending another
    - `template` unknown
    - `override` unknown
    - `with` unknown
    - `escapeHtml` unknown
  - `dataType` string — The datatype of this template
  - `title` string — The title
  - `description` string — Description of the Module Template
  - `icon` string — Icon
  - `thumbnail` string — Thumbnail this is the location to a module template's thumbnail, which should be added to the installation relative to the module class file.
  - `showIn` string — A flag indicating whether the template should be excluded from the Layout Editor
  - `properties` Property[], nullable — Properties
    - `id` string — ID, saved as a widget option
    - `type` string — Type, determines the field type
    - `title` string — Title: shown in the property panel
    - `helpText` string — Help Text: shown in the property panel
    - `default` string — An optional default value
  - `isVisible` boolean — Is Visible?
  - `isEnabled` boolean — Is Enabled?
  - `propertyGroups` PropertyGroup[] — An array of additional module specific group properties
    - `id` unknown
    - `expanded` unknown
    - `title` unknown
    - `helpText` unknown
  - `stencil` Stencil — A Stencil is a template which is rendered in the server and/or client it can optionally have properties and/or elements
    - `elements` Element[]
      - `id` unknown
      - `top` unknown
      - `left` unknown
      - `width` unknown
      - `height` unknown
      - `rotation` unknown
      - `layer` unknown
      - `elementGroupId` unknown
      - `properties` string[]
    - `twig` string, nullable
    - `hbs` string, nullable
    - `head` string, nullable
    - `style` string, nullable
    - `hbsId` string, nullable
    - `width` number, double — Optional positional information if contained as part of an element group
    - `height` number, double — Optional positional information if contained as part of an element group
    - `gapBetweenHbs` number, double — Optional positional information if contained as part of an element group
    - `elementGroups` ElementGroup[] — An array of element groups
      - `id` unknown
      - `top` unknown
      - `left` unknown
      - `width` unknown
      - `height` unknown
      - `layer` unknown
      - `title` unknown
      - `slot` unknown
      - `pinSlot` unknown
  - `assets` unknown[]
    - unknown
  - `groupsWithPermissions` string — A comma separated list of groups/users with permissions to this template

## Changes

- **2026-02-25** `41c04de98ec5` — 1 info
  - added the media type `application/json` for the response with the status `200`
- **2024-06-20** `b23641df295f` — 1 info
  - added the new optional `query` request parameter `type`
- **2023-09-22** `62122b5de18b` — 1 info
  - endpoint added
- **2020-02-17** `8e1275395104` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/xibosignage/apis/xibo-api/changes/module/templates/:dataType/get.md)

---

[API](https://skmtc.dev/xibosignage/apis/xibo-api.md) · [All operations](https://skmtc.dev/xibosignage/apis/xibo-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xibosignage/xibo-api/revisions/9136e3c2cb1d/schema)
