---
title: "Api/Migrations — Documentation"
canonical: "https://repull.dev/docs/api/migrations"
description: "The Migrations API: import a workspace from another channel manager or PMS, check reservations, then cut over. List, get, import and report endpoints."
updated: "2026-11-30T00:48:58.694Z"
commit: "18314c12fefb59a7545ef7607c0893919de20aa9"
---

# Migrations

Repull Migrate — every property manager you move gets a workspace of their own. Start one with POST /v1/connect and purpose: "migrate", then track it here. Read the workspace's data with the regular endpoints plus the X-Workspace-Id header.

List migrations

`GET /v1/migrations`

#### Request

**curl**

```bash
curl https://api.repull.dev/v1/migrations?limit=25 \
  -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, pagination } = await repull.migrations.list({ limit: 25 })
```

**Python**

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

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

page = list_migrations.sync(client=client, limit=25)
```

**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()

limit := 25
resp, err := client.ListMigrationsWithResponse(ctx, &repull.ListMigrationsParams{Limit: &limit})
```

**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)
page = api.list_migrations(limit: 25)
```

**PHP**

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

$api = new Repull\Api\MigrateApi($http, $config);
$page = $api->listMigrations(25);
```

**C#**

```csharp
using Repull.SDK;

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

var page = await client.V1.Migrations.GetAsync(c => c.QueryParameters.Limit = 25);
```

#### Response

```
{
  "data": [ { "workspaceId": "1204", "name": "Seaside Rentals", "state": "imported", "counts": { "listings": 48, "reservations": 1312 } } ],
  "pagination": { "nextCursor": null, "hasMore": false, "total": 1 }
}
```

**Query Parameters**

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | `integer` | No | Page size, 1–100. Default: `25`. |
| `cursor` | `string` | No | \`pagination.nextCursor\` from the previous page. |

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 }
  }
}
```

Get the migration report

`GET /v1/migrations/:workspaceId/report`

#### Request

**curl**

```bash
curl https://api.repull.dev/v1/migrations/1204/report \
  -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: report } = await repull.migrations.report(1204)
```

**Python**

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

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

report = get_migration_report.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.GetMigrationReportWithResponse(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)
report = api.get_migration_report(1204)
```

**PHP**

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

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

**C#**

```csharp
using Repull.SDK;

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

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

#### Response

```
{
  "data": {
    "workspaceId": "1204",
    "issues": [ { "severity": "warning", "entity": "reservations", "code": "reservation_missing_guest_contact",
      "message": "Upcoming reservations with neither a guest email nor a phone number.", "count": 3, "sampleIds": [215906, 215911, 215940] } ],
    "capabilities": { "guesty": { "read": { "listings": { "level": "full" } } } }
  }
}
```

Get channel links

`GET /v1/migrations/:workspaceId/channel-map`

> **Note:**
>
> Read live from the source system on every call.

#### Request

**curl**

```bash
curl https://api.repull.dev/v1/migrations/1204/channel-map \
  -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: map } = await repull.migrations.channelMap(1204)
```

**Python**

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

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

channel_map = get_migration_channel_map.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.GetMigrationChannelMapWithResponse(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)
channel_map = api.get_migration_channel_map(1204)
```

**PHP**

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

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

**C#**

```csharp
using Repull.SDK;

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

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

#### Response

```
{
  "data": { "workspaceId": "1204", "sources": [ { "provider": "guesty", "supported": true, "error": null } ],
    "listings": [ { "listingId": "5668", "name": "Ocean View 2BR", "provider": "guesty", "externalListingId": "63f1c0e2a9d1b2",
      "airbnb": { "listingId": "1161202454004135464" }, "booking": { "hotelId": "10167991", "roomId": "110" }, "vrbo": null } ] }
}
```

Run the import again

`POST /v1/migrations/:workspaceId/import`

#### Request

**curl**

```bash
curl -X POST https://api.repull.dev/v1/migrations/1204/import \
  -H "Authorization: Bearer $REPULL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entities": ["messages"]}'
```

**TypeScript**

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

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

await repull.migrations.import(1204, { entities: ['messages'] })
```

**Python**

```python
import os
from repull import AuthenticatedClient
from repull.api.migrate import run_migration_import
from repull.models import RunMigrationImportBody, RunMigrationImportBodyEntitiesItem

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

run_migration_import.sync(
    client=client,
    workspace_id=1204,
    body=RunMigrationImportBody(entities=[RunMigrationImportBodyEntitiesItem.MESSAGES]),
)
```

**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()

entities := []repull.RunMigrationImportJSONBodyEntities{repull.RunMigrationImportJSONBodyEntitiesMessages}
resp, err := client.RunMigrationImportWithResponse(ctx, 1204, repull.RunMigrationImportJSONRequestBody{Entities: &entities})
```

**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)
api.run_migration_import(1204, run_migration_import_request: Repull::RunMigrationImportRequest.new(entities: ['messages']))
```

**PHP**

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

$api = new Repull\Api\MigrateApi($http, $config);
$api->runMigrationImport(1204, new Repull\Model\RunMigrationImportRequest(['entities' => ['messages']]));
```

**C#**

```csharp
using Repull.SDK;

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

await client.V1.Migrations[1204].Import.PostAsync(new ImportPostRequestBody
{
    Entities = new List<ImportPostRequestBody_entities?> { ImportPostRequestBody_entities.Messages },
});
```

#### Response

```
{ "data": { "workspaceId": "1204", "queued": [ { "connectionId": "812", "provider": "guesty", "queued": true } ] } }
```

**Body Parameters**

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `entities` | `string[]` | No | Any of listings, reservations, messages, calendar. Defaults to listings and reservations. |
| `since` | `string (ISO-8601)` | No | Only reservations changed after this. |

Check reservations before switching

`POST /v1/migrations/:workspaceId/cutover-check`

#### Request

**curl**

```bash
curl -X POST https://api.repull.dev/v1/migrations/1204/cutover-check \
  -H "Authorization: Bearer $REPULL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"reservations": [{"confirmationCode": "HMABC123", "checkIn": "2026-10-01", "checkOut": "2026-10-04"}]}'
```

**TypeScript**

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

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

const { data: check } = await repull.migrations.cutoverCheck(1204, [
  { confirmationCode: 'HMABC123', checkIn: '2026-10-01', checkOut: '2026-10-04' },
])
```

**Python**

```python
import os
import datetime
from repull import AuthenticatedClient
from repull.api.migrate import check_migration_cutover
from repull.models import CheckMigrationCutoverBody, CheckMigrationCutoverBodyReservationsItem

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

check = check_migration_cutover.sync(
    client=client,
    workspace_id=1204,
    body=CheckMigrationCutoverBody(reservations=[
        CheckMigrationCutoverBodyReservationsItem(
            confirmation_code="HMABC123",
            check_in=datetime.date(2026, 10, 1),
            check_out=datetime.date(2026, 10, 4),
        ),
    ]),
)
```

**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.CheckMigrationCutoverWithResponse(ctx, 1204, repull.CheckMigrationCutoverJSONRequestBody{
	Reservations: yourUpcomingReservations,
})
```

**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)
check = api.check_migration_cutover(1204, Repull::CheckMigrationCutoverRequest.new(reservations: [
  { confirmation_code: 'HMABC123', check_in: '2026-10-01', check_out: '2026-10-04' },
]))
```

**PHP**

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

$api = new Repull\Api\MigrateApi($http, $config);
$check = $api->checkMigrationCutover(1204, new Repull\Model\CheckMigrationCutoverRequest([
    'reservations' => [['confirmation_code' => 'HMABC123', 'check_in' => '2026-10-01', 'check_out' => '2026-10-04']],
]));
```

**C#**

```csharp
using Repull.SDK;

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

var check = await client.V1.Migrations[1204].CutoverCheck.PostAsync(new CutoverCheckPostRequestBody
{
    Reservations = yourUpcomingReservations,
});
```

#### Response

```
{ "data": { "matched": 210, "missing": [], "extra": [], "mismatched": [] } }
```

**Body Parameters**

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `reservations` | `{ confirmationCode, checkIn, checkOut }[]` | Yes | Every upcoming reservation the destination holds (dates YYYY-MM-DD). Read-only. |

Cut over

`POST /v1/migrations/:workspaceId/cutover`

> **Note:**
>
> Disconnects the source so it stops syncing. The imported data stays readable. Idempotent.

#### Request

**curl**

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

**TypeScript**

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

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

await repull.migrations.cutover(1204)
```

**Python**

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

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

cutover_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.CutoverMigrationWithResponse(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)
api.cutover_migration(1204)
```

**PHP**

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

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

**C#**

```csharp
using Repull.SDK;

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

await client.V1.Migrations[1204].Cutover.PostAsync();
```

#### Response

```
{ "data": { "workspaceId": "1204", "state": "cut_over", "cutoverAt": "2026-10-01T09:00:00Z", "disconnectedConnections": 1 } }
```

End a migration

`DELETE /v1/migrations/:workspaceId`

> **Note:**
>
> Cuts over and deactivates the workspace. The imported data is kept.

#### Request

**curl**

```bash
curl -X DELETE 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! })

await repull.migrations.delete(1204)
```

**Python**

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

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

delete_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.DeleteMigrationWithResponse(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)
api.delete_migration(1204)
```

**PHP**

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

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

**C#**

```csharp
using Repull.SDK;

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

await client.V1.Migrations[1204].DeleteAsync();
```

#### Response

```
{ "data": { "workspaceId": "1204", "deactivated": true, "deactivatedAt": "2026-10-02T09:00:00Z" } }
```
