---
title: "Get information on all templates"
method: GET
path: "/templates"
tags: ["templates"]
---

# Get information on all templates

`GET /templates`

## Query parameters

- `pattern` string
- `fields` string[]
- `script-format` string, required
- `offset` integer
- `limit` integer

## Response `200`

List of templates

- Templates — List of templates
  - `templates` Template[]
    - `link` Link — URI of resource.
      - `rel` string, required
      - `href` string, url, required
    - `id` string — Template ID
    - `type` string — Template type, one of 'stream' or 'batch'
    - `script` string — TICKscript content
    - `vars` object — Set of variables from the TICKscript with their type and default value.
    - `dot` string — Graphviz DOT syntax representation of the template DAG
    - `error` unknown
    - `created` string, dateTime — Date template was first created
    - `modified` string, dateTime — Date template was last modified

## Other responses

- `default` — A processing or an unexpected error.

---

[API](https://skmtc.net/influxdata/apis/kapacitor.md) · [All operations](https://skmtc.net/influxdata/apis/kapacitor/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/influxdata/kapacitor/versions/796853de0228/schema)
