---
type: api
title: Get the migration reindexing status
description: Get the status of a migration reindex attempt for a data stream or index.
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/elasticsearch/v8/operation/operation-indices-get-migrate-reindex-status
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/elasticsearch/v8/operation/operation-indices-get-migrate-reindex-status
products:
  - Elasticsearch
---

# Get the migration reindexing status

Availability: Preview since 8.18

## Paths

- `GET` `/_migration/reindex/{index}/_status`

#### Path parameters

- `index` (union string | string[]) — required
  The index or data stream name.

## Description

Get the status of a migration reindex attempt for a data stream or index.

## Authentication

- Api key: `Authorization: <value>`
  Elasticsearch APIs support key-based authentication.
  You must create an API key and use the encoded value in the request header.
  For example:
  
  
  ```
  curl -X GET "${ES_URL}/_cat/indices?v=true" \
    -H "Authorization: ApiKey ${API_KEY}"
  ```
  
  To get API keys, use the `/_security/api_key` APIs.
- Basic: `Authorization: Basic <credentials>`
- Bearer: `Authorization: Bearer <token>`
  Elasticsearch APIs support the use of bearer tokens in the `Authorization` HTTP header to authenticate with the API.
  For examples, refer to [Token-based authentication services](https://www.elastic.co/guide/en/elasticsearch/reference/current/token-authentication-services.html)

## Response

`application/json`

- `start_time` (union)
- `start_time_millis` (number)
- `complete` (boolean)
- `total_indices_in_data_stream` (number)
- `total_indices_requiring_upgrade` (number)
- `successes` (number)
- `in_progress` (object[])
  - `index` (string)
  - `total_doc_count` (number)
  - `reindexed_doc_count` (number)
- `pending` (number)
- `errors` (object[])
  - `index` (string)
  - `message` (string)
- `exception` (string)
## Code examples

#### Console

```console
GET /_migration/reindex/my-data-stream/_status
```

#### JavaScript

```javascript
const response = await client.indices.getMigrateReindexStatus({
  index: "my-data-stream",
});
```

#### Python

```python
resp = client.indices.get_migrate_reindex_status(
    index="my-data-stream",
)
```

#### curl

```curl
curl -X GET "$ELASTICSEARCH_URL/_migration/reindex/my-data-stream/_status" \
  -H "Authorization: ApiKey $ELASTIC_API_KEY"
```

#### Java

```java
client.indices().getMigrateReindexStatus(g -> g
    .index("my-data-stream")
);
```

#### C#

```c#
var response = await client.Indices.GetMigrateReindexStatusAsync(indices: new[] { "my-data-stream" });
```

#### PHP

```php
$requestFactory = Psr17FactoryDiscovery::findRequestFactory();
$request = $requestFactory->createRequest(
    "GET",
    "/_migration/reindex/my-data-stream/_status",
);
$resp = $client->sendRequest($request);
```

#### Ruby

```ruby
response = client.indices.get_migrate_reindex_status(
  index: "my-data-stream"
)
```

