---
title: "Get current index name"
method: GET
path: "/api/v2/indexing/current"
tags: ["IndexV2"]
---

# Get current index name

`GET /api/v2/indexing/current`

## Request

- Base URL: `https://indexing-dev.hawksearch.net`
- URL: `https://indexing-dev.hawksearch.net/api/v2/indexing/current`
- Auth: none declared. Required headers: `X-HawkSearch-ApiKey`
- TypeScript: <https://skmtc.dev/hawksearch/apis/hawksearch-elasticsearch-indexingapi/docs/api/v2/indexing/current/get.ts> (a function with typed inputs; its response is checked against the schema)

This method will return the name of the index that is currently being used for search. If there is no “current index,” an error will be returned.

## Headers

- `X-HawkSearch-ApiKey` string, required

## Response `200`

OK

- object

---

[API](https://skmtc.dev/hawksearch/apis/hawksearch-elasticsearch-indexingapi.md) - [All operations](https://skmtc.dev/hawksearch/apis/hawksearch-elasticsearch-indexingapi/llms.txt) - [OpenAPI document](https://skmtc.dev/hawksearch/apis/hawksearch-elasticsearch-indexingapi/revisions/24cba7bf3468?raw)
