---
type: api
title: Check index templates
description: Check whether index templates exist.
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch-serverless/operation/operation-indices-exists-index-template
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch-serverless/operation/operation-indices-exists-index-template
products:
  - Elasticsearch Serverless
---

# Check index templates

Availability:

## Paths

- `HEAD` `/_index_template/{name}`

- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch-serverless/authentication#apikeyauth)

#### Path Parameters

- `name` (string Name)
  Comma-separated list of index template names used to limit the request. Wildcard (*) expressions are supported.

## Description

Check whether index templates exist.

## Required authorization

* Cluster privileges: `manage_index_templates`

## Query String Parameters

- `local` (boolean · default: false)
  If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node.
- `flat_settings` (boolean · default: false)
  If true, returns settings in flat format.
- `master_timeout` (string Duration · default: 30s)
  Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.

## Response

## Code Examples

#### Console

```console
HEAD /_index_template/{name}
```

#### curl

```curl
curl -X HEAD "/_index_template/{name}"
```

