---
type: api
title: Retrieve the status of detection alert migrations
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/kibana/v8/operation/operation-readalertsmigrationstatus
resource: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/kibana/v8/operation/operation-readalertsmigrationstatus
products:
  - Kibana
---

# Retrieve the status of detection alert migrations

deprecated

Authentication: required

- Server: `https://{kibana_url}`

## Paths

- `POST` `/api/detection_engine/signals/migration_status`
- `POST` `/s/{space_id}/api/detection_engine/signals/migration_status`

#### Path parameters

- `space_id` (string) — optional
  An identifier for the space. If `space_id` is not provided in the URL, the default space is used. Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

## Description

Retrieve indices that contain detection alerts of a particular age, along with migration information for each of those indices.

## Query string parameters

- `from` (string · format: date-math) — required
  Maximum age of qualifying detection alerts

## Responses

#### `200`

Successful response

`application/json`

- `indices` (object[])
  - `index` (string · format: nonempty · min length: 1)
    A string that does not contain only whitespace characters
  - `is_outdated` (boolean)
  - `migrations` (object[])
    - `id` (string · format: nonempty · min length: 1)
      A string that does not contain only whitespace characters
    - `status` (enum)
      Values: `success`, `failure`, `pending`
    - `updated` (string · format: date-time)
    - `version` (integer)
  - `signal_versions` (object[])
    - `count` (integer)
    - `version` (integer)
  - `version` (integer)
#### `400`

Invalid input data response

`application/json`

One of:
- **PlatformErrorResponse**
  - `error` (string)
  - `message` (string)
  - `statusCode` (integer)
- **SiemErrorResponse**
  - `message` (string)
  - `status_code` (integer)
#### `401`

Unsuccessful authentication response

`application/json`

- `error` (string)
- `message` (string)
- `statusCode` (integer)
#### `500`

Internal server error response

`application/json`

- `message` (string)
- `status_code` (integer)
## Code examples

#### Console

```console
POST kbn:/api/detection_engine/signals/migration_status?from=FROM
```

#### curl

```curl
curl -X POST "${KIBANA_URL}/api/detection_engine/signals/migration_status?from=${FROM}" \
  -H "Authorization: ApiKey ${API_KEY}"
```

## Response examples

#### 200

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "indices": [
    {
      "index": "string",
      "is_outdated": false,
      "migrations": [
        {
          "id": "string",
          "status": "success",
          "updated": "string",
          "version": 0
        }
      ],
      "signal_versions": [
        {
          "count": 0,
          "version": 0
        }
      ],
      "version": 0
    }
  ]
}
```

#### 400

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "error": "string",
  "message": "string",
  "statusCode": 0
}
```

#### 401

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "error": "string",
  "message": "string",
  "statusCode": 0
}
```

#### 500

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "message": "string",
  "status_code": 0
}
```

