---
title: "Get index template"
method: GET
path: "/es/_index_template/{name}"
tags: ["Index"]
---

# Get index template

`GET /es/_index_template/{name}`

## Path parameters

- `name` string, required

## Response `200`

OK

- MetaIndexTemplate
  - `created_at` string
  - `index_patterns` string[]
  - `priority` integer — highest priority is chosen
  - `template` MetaTemplateTemplate
    - `mappings` MetaMappings
      - `properties` object
    - `settings` MetaIndexSettings
      - `analysis` MetaIndexAnalysis
        - `analyzer` object
        - `char_filter` object
        - `filter` object — compatibility with es, alias for TokenFilter
        - `token_filter` object
        - `tokenizer` object
      - `number_of_replicas` integer
      - `number_of_shards` integer
  - `updated_at` string

## Other responses

- `400` — Bad Request

## Changes

- **2022-08-06** `64901d9f1a5b` — 2 info
  - added the optional property `template/mappings/properties/additionalProperties/fields` to the response with the `200` status
  - added the optional property `template/mappings/properties/additionalProperties/time_zone` to the response with the `200` status
- **2022-06-24** `b796c7453ce7` — 2 warning
  - removed the optional property `template/mappings/properties/additionalProperties/fields` from the response with the `200` status
  - removed the optional property `template/mappings/properties/additionalProperties/time_zone` from the response with the `200` status

[Change history](https://skmtc.dev/zincsearch/apis/zinc-search-engine-api/changes/es/_index_template/:name/get.md)

---

[API](https://skmtc.dev/zincsearch/apis/zinc-search-engine-api.md) · [All operations](https://skmtc.dev/zincsearch/apis/zinc-search-engine-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/zincsearch/zinc-search-engine-api/revisions/c7ce1991bb9a/schema)
