> For the complete documentation index, see [llms.txt](https://docs.warpstream.com/warpstream/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.warpstream.com/warpstream/reference/api-reference/orbit-auto-migration/status.md).

# Status

```
POST /api/v1/orbit_topic_auto_migration_status
```

Returns the current migration state for every auto-migration topic in the cluster. This is the same data shown in the **Migration** tab of the WarpStream console. Read-only: accepts **admin**, **app**, **agent**, and **read-only** API keys scoped to the target virtual cluster.

### Request

| Parameter            | Type   | Required | Default | Description                                                         |
| -------------------- | ------ | -------- | ------- | ------------------------------------------------------------------- |
| `virtual_cluster_id` | string | Yes      | —       | Target virtual cluster, e.g. `vci_...`. Must be a well-formed VCID. |

#### Example

```bash
curl -X POST https://api.warpstream.com/api/v1/orbit_topic_auto_migration_status \
  -H "Authorization: Bearer <api-key>" -H "Content-Type: application/json" \
  -d '{ "virtual_cluster_id": "vci_..." }'
```

### Response

A `topics` array; each entry describes one topic:

| Field                | Type   | Description                                                               |
| -------------------- | ------ | ------------------------------------------------------------------------- |
| `name`               | string | Topic name.                                                               |
| `migration_state`    | string | One of `PROXY`, `MIGRATING`, `COMPLETE`                                   |
| `total_offset_lag`   | int    | Aggregate offset lag across partitions (zero once the topic is complete). |
| `time_lag_nanos`     | int    | Time lag in nanoseconds (max across partitions).                          |
| `initiated_at_unix`  | int    | Unix timestamp of the most recent initiation.                             |
| `completed_at_unix`  | int    | Unix timestamp when the topic reached `COMPLETE` state, if applicable.    |
| `has_lag`            | bool   | Whether the topic currently has measurable lag.                           |
| `migration_attempts` | int    | Number of times migration has been initiated for this topic.              |

```json
{
  "topics": [
    {
      "name": "orders-eu",
      "migration_state": "MIGRATING",
      "total_offset_lag": 1280,
      "time_lag_nanos": 4200000000,
      "initiated_at_unix": 1733155200,
      "completed_at_unix": 0,
      "has_lag": true,
      "migration_attempts": 1
    }
  ]
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.warpstream.com/warpstream/reference/api-reference/orbit-auto-migration/status.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
