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:| Field | Description |
|---|---|
object | The type of object, always migration |
id | The unique identifier for the migration, used to reference the migration in API calls |
created | The ISO 8601 timestamp when the migration was created in the system |
status | The current status of the migration (see Status Values section below) |
created_by_user_id | The unique identifier of the user who initiated the migration |
company_id | The unique identifier of the company associated with this migration |
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 amigrationId:
Migration Status Values
Migrations can have the following status values:NOT_STARTED: Migration has been created but not startedWORKING: Migration is in progressPENDING_USER_INPUT: Migration is waiting for user inputCOMPLETE: Migration has completed successfullyFAILED: Migration has failedCOMPLETED_WITH_FAILURES: Migration completed but with some 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