---
title: "Get Migration — API Reference"
canonical: "https://repull.dev/docs/api/migrations/get"
description: "GET /v1/migrations/:workspaceId — read a migration's state and the counts of listings, reservations and messages imported so far."
updated: "2026-11-30T00:48:58.694Z"
commit: "18314c12fefb59a7545ef7607c0893919de20aa9"
---

# Get a migration

Migrations · `GET /v1/migrations/:workspaceId`

Get a migration

`GET /v1/migrations/:workspaceId`

> **Note:**
>
> state: awaiting\_connection → importing → imported, then cut\_over. failed when the last import errored; deactivated after DELETE.

#### Request

**curl**

```bash
curl https://api.repull.dev/v1/migrations/1204 \
  -H "Authorization: Bearer $REPULL_API_KEY"
```

**TypeScript**

```typescript
import { Repull } from '@repull/sdk'

const repull = new Repull({ apiKey: process.env.REPULL_API_KEY! })

const { data: migration } = await repull.migrations.get(1204)
```

**Python**

```python
import os
from repull import AuthenticatedClient
from repull.api.migrate import get_migration

client = AuthenticatedClient(
    base_url="https://api.repull.dev",
    token=os.environ["REPULL_API_KEY"],
)

migration = get_migration.sync(client=client, workspace_id=1204)
```

**Go**

```go
import (
	"context"
	"os"

	"github.com/ivannikolovbg/repull-go/repull"
)

client, err := repull.NewClientWithResponses(
	repull.DefaultBaseURL,
	repull.WithBearer(os.Getenv("REPULL_API_KEY")),
)
ctx := context.Background()

resp, err := client.GetMigrationWithResponse(ctx, 1204)
```

**Ruby**

```ruby
config = Repull::Configuration.new
config.access_token = ENV.fetch('REPULL_API_KEY')
config.host = 'api.repull.dev'

client = Repull::ApiClient.new(config)

api = Repull::MigrateApi.new(client)
migration = api.get_migration(1204)
```

**PHP**

```php
$config = Repull\Configuration::getDefaultConfiguration()
    ->setAccessToken(getenv('REPULL_API_KEY'));
$http = new GuzzleHttp\Client();

$api = new Repull\Api\MigrateApi($http, $config);
$migration = $api->getMigration(1204);
```

**C#**

```csharp
using Repull.SDK;

var client = RepullClientFactory.Create(
    Environment.GetEnvironmentVariable("REPULL_API_KEY")!);

var migration = await client.V1.Migrations[1204].GetAsync();
```

#### Response

```
{
  "data": {
    "workspaceId": "1204", "name": "Seaside Rentals", "externalRef": "acct_8812", "state": "imported", "cutoverAt": null,
    "connections": [ { "id": "812", "provider": "guesty", "status": "active",
      "import": { "status": "completed", "finishedAt": "2026-09-24T18:06:47Z", "results": [ { "entityType": "listings", "processed": 48, "errors": 0 } ] } } ],
    "counts": { "listings": 48, "reservations": 1312, "upcomingReservations": 211, "guests": 1040, "conversations": 886 }
  }
}
```
