Skip to main content

Migrations API

The Migrations API allows you to read and list migration details.

Authentication

All API requests require authentication using an API key. For details on API keys and authentication, see the API Authorization guide.
Migrations are always initiated by users through the embedded modal interface. Your organization can only access data from migrations that have been initiated by your end users.

Migration Data Structure

Migration data is returned in a structured JSON format that includes:

Migration Fields

The migration object contains the following fields:

API Endpoints

List All Migrations

To list all migrations for your organization:
The API supports pagination using page and page_size query parameters. The default page size is 10 items per page. Use these parameters to navigate through large sets of migrations.

Get a Specific Migration

To retrieve details about a specific migration given a migrationId:

Migration Status Values

Migrations can have the following status values:
  • NOT_STARTED: Migration has been created but not started
  • WORKING: Migration is in progress
  • PENDING_USER_INPUT: Migration is waiting for user input
  • COMPLETE: Migration has completed successfully
  • FAILED: Migration has failed
  • COMPLETED_WITH_FAILURES: Migration completed but with some failures
Design your application to handle all possible migration status values, including edge cases like FAILED and COMPLETED_WITH_FAILURES.

Best Practices

  • Monitor migration status regularly
  • Implement proper error handling for failed migrations
  • Keep your API key secure and never expose it in client-side code
  • Handle all possible migration status values in your application