---
title: "Get V1 migration status"
method: GET
path: "/api/experimental/migration/v1"
tags: ["migration"]
---

# Get V1 migration status

`GET /api/experimental/migration/v1`

## Request

- Base URL: `https://opencode.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://opencode.ai/api/experimental/migration/v1`
- Auth: none required

Return the progress of the V1 to V2 session history migration.

## Response `200`

Success

- union
  - object
    - `status` 'required' | 'completed', required
  - object
    - `status` 'running', required
    - `progress` object, required
      - `label` string, required
      - `numerator` integer, nullable
      - `denominator` integer, nullable
  - object
    - `status` 'error', required
    - `error` string, required

## Other responses

- `400`: InvalidRequestError
- `401`: UnauthorizedError

---

[API](https://skmtc.dev/kaaass/apis/opencode.md) - [All operations](https://skmtc.dev/kaaass/apis/opencode/llms.txt) - [OpenAPI document](https://skmtc.dev/kaaass/apis/opencode/revisions/4e083d954707?raw)
