Documentation

esc
    API reference · Move to Pantech / Database imports

    Database imports

    Copy a planned PostgreSQL or MySQL database into one of your Pantech databases, once or with low-downtime replication.

    Create the destination database first, with the same engine as the source. Then start an import from a plan's database item. The Pantech Migrate agent in your network reads the source with a login that stays on it, checks it against the destination, and reports what to fix in readiness. dump copies once; replicate (PostgreSQL only) keeps applying changes until you cut over. Every table is counted and sampled on both sides before the import completes. See importing databases.

    The database import object

    Fields

    • idstringrequired
    • migration_idstringrequired
    • item_keystringrequired
    • destination_database_idstringrequired
    • target_databasestringrequired
    • modestringrequired

      One of dump, replicate.

    • source_refstringrequired
    • enginestringrequired

      The source's engine family.

      One of postgres, mysql, mariadb.

    • statusstringrequired

      One of awaiting_agent, preflight, ready, blocked, copying, replicating, cutting_over, verifying, verifying_failed, completed, cancelling, cancelled, failed.

    • failureDatabaseImportFailurerequired

      Why the import stopped; null while it has not.

      Show 2 child fields
      • codestringrequired

        statement_refused, chunk_invalid, access_revoked, destination_unavailable, or one the agent reported: source_unreachable, source_auth_failed, source_permission_denied, source_not_configured, dump_tool_missing, source_changed, internal.

      • messagestringrequired
    • cutover_requestedbooleanrequired
    • cancel_requestedbooleanrequired
    • readiness_requestedbooleanrequired

      A new pre-flight was asked for and the agent has not run it yet.

    • access_revokedbooleanrequired

      The import login and its loopback-only access were removed from the destination.

    • agent_connectedbooleanrequired

      A Migrate agent holds this import now.

    • lag_bytesinteger or nullrequired

      Replication lag in bytes of source WAL not yet applied; null in a dump or before replication starts.

    • positionstring or nullrequired

      The last applied source position (replicate only).

    • readinessDatabaseImportReadinessrequired

      The latest pre-flight; null until the agent ran one.

      Show 4 child fields
      • checked_atstringrequired
      • blockedbooleanrequired

        A blocking issue stops the import until it is fixed and readiness is checked again.

      • issuesarray of DatabaseImportIssuerequired
        Show 5 child fields
        • codestringrequired

          For example source_version_newer, extension_unavailable, size_exceeds_storage, size_not_measured, table_without_primary_key, replication_check_failed, mode_not_available, target_not_empty, destination_not_ready, destination_not_supported.

        • blockingbooleanrequired
        • messagestringrequired
        • fixstring or nullrequired

          A copy-paste fix for the source's provider (an RDS parameter group setting, a Cloud SQL flag, an Azure server parameter, SQL).

        • subjectstring or nullrequired

          What the issue is about (an extension, tables, a check).

      • sourceDatabaseImportSourcerequired

        What the Migrate agent measured on the source. Numbers it could not measure are null, never estimated.

        Show 7 child fields
        • enginestringrequired
        • versionstring or nullrequired
        • providerstring or nullrequired

          aws_rds, gcp_cloudsql, azure, digitalocean or self_hosted, as the agent detected it.

        • databasestring or nullrequired
        • size_bytesinteger or nullrequired
        • extensionsarray of stringrequired
        • table_countintegerrequired
    • destinationDatabaseImportDestinationrequired

      What your Pantech database reported over the import's own connection; null in a list. Numbers are null until measured.

      Show 8 child fields
      • access_statestringrequired

        The import login's state on the destination.

        One of not_prepared, requested, active, revoking, revoked, failed.

      • measuredbooleanrequired
      • enginestring or nullrequired
      • server_versionstring or nullrequired
      • disk_available_bytesinteger or nullrequired
      • disk_total_bytesinteger or nullrequired
      • target_tablesinteger or nullrequired

        Tables already in the target database; an import needs an empty one.

      • trusted_extensionsarray of stringrequired
    • tablesarray of DatabaseImportTablerequired

      Per-table progress; null in a list.

      Show 9 child fields
      • schemastring or nullrequired
      • namestringrequired
      • has_primary_keybooleanrequired
      • statusstringrequired

        One of pending, copying, copied, verified, verify_failed.

      • pages_copiedintegerrequired
      • rows_copiedintegerrequired
      • bytes_copiedintegerrequired
      • verificationDatabaseImportVerificationrequired

        The table's comparison; null until it was verified.

        Show 5 child fields
        • source_rowsintegerrequired
        • destination_rowsintegerrequired
        • samples_checkedintegerrequired

          Key ranges whose rows were checksummed on both sides.

        • mismatched_samplesintegerrequired
        • passedbooleanrequired
      • updated_atstringrequired
    • chargedbooleanrequired

      Always false: moving data is free. The destination database bills as usual.

    • versionintegerrequired
    • created_atstringrequired
    • updated_atstringrequired
    • finished_atstring or nullrequired

    Import a database from a plan

    Starts moving one of the plan's databases into one of your Pantech databases, through the Migrate agent running in your network. The agent reads the source with credentials that stay on it; Pantech never receives them. It checks the source against the destination first (versions, extensions, size, primary keys, replication settings) and reports what to fix. dump copies once: stop writes to the source first. replicate (PostgreSQL) keeps following changes until you cut over. The move is free; the destination bills as usual. At most 3 imports in progress per organization and one per database. Owners and admins only, who must also be allowed to change the destination database.

    POST/public/v1/migrations/{migration_id}/database-imports
    Write keyNeeds Idempotency-KeyReturns201Created

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    • Idempotency-Keystringrequired

      A new value, such as a UUID, for each change. Resend with the same value to retry safely.

      At most 255 characters.

    Path parameters

    • migration_idstringrequired

    Body

    application/json
    • item_keystringrequired

      The plan item's key: one of the migration's database items.

    • destination_database_idstringrequired

      One of your Pantech databases with the same engine as the source. Create it first: it bills as usual; the move itself is free.

    • target_databasestring

      The database to create and fill on the destination; it must be empty. Defaults to the source's name, made a valid name: 1 to 63 lowercase letters, digits and underscores, starting with a letter.

    • modestring

      dump copies once (stop writes to the source first). replicate keeps following the source's changes until you cut over (PostgreSQL sources only).

      One of dump, replicate.

    • source_refstringrequired

      The source's name in your Migrate agent's configuration, 1 to 64 of letters, digits, ., _ and -. Its address and login stay on the agent and are never sent to Pantech.

    Response 201

    The import.
    • idstringrequired
    • migration_idstringrequired
    • item_keystringrequired
    • destination_database_idstringrequired
    • target_databasestringrequired
    • modestringrequired

      One of dump, replicate.

    • source_refstringrequired
    • enginestringrequired

      The source's engine family.

      One of postgres, mysql, mariadb.

    • statusstringrequired

      One of awaiting_agent, preflight, ready, blocked, copying, replicating, cutting_over, verifying, verifying_failed, completed, cancelling, cancelled, failed.

    • failureDatabaseImportFailurerequired

      Why the import stopped; null while it has not.

      Show 2 child fields
      • codestringrequired

        statement_refused, chunk_invalid, access_revoked, destination_unavailable, or one the agent reported: source_unreachable, source_auth_failed, source_permission_denied, source_not_configured, dump_tool_missing, source_changed, internal.

      • messagestringrequired
    • cutover_requestedbooleanrequired
    • cancel_requestedbooleanrequired
    • readiness_requestedbooleanrequired

      A new pre-flight was asked for and the agent has not run it yet.

    • access_revokedbooleanrequired

      The import login and its loopback-only access were removed from the destination.

    • agent_connectedbooleanrequired

      A Migrate agent holds this import now.

    • lag_bytesinteger or nullrequired

      Replication lag in bytes of source WAL not yet applied; null in a dump or before replication starts.

    • positionstring or nullrequired

      The last applied source position (replicate only).

    • readinessDatabaseImportReadinessrequired

      The latest pre-flight; null until the agent ran one.

      Show 4 child fields
      • checked_atstringrequired
      • blockedbooleanrequired

        A blocking issue stops the import until it is fixed and readiness is checked again.

      • issuesarray of DatabaseImportIssuerequired
        Show 5 child fields
        • codestringrequired

          For example source_version_newer, extension_unavailable, size_exceeds_storage, size_not_measured, table_without_primary_key, replication_check_failed, mode_not_available, target_not_empty, destination_not_ready, destination_not_supported.

        • blockingbooleanrequired
        • messagestringrequired
        • fixstring or nullrequired

          A copy-paste fix for the source's provider (an RDS parameter group setting, a Cloud SQL flag, an Azure server parameter, SQL).

        • subjectstring or nullrequired

          What the issue is about (an extension, tables, a check).

      • sourceDatabaseImportSourcerequired

        What the Migrate agent measured on the source. Numbers it could not measure are null, never estimated.

        Show 7 child fields
        • enginestringrequired
        • versionstring or nullrequired
        • providerstring or nullrequired

          aws_rds, gcp_cloudsql, azure, digitalocean or self_hosted, as the agent detected it.

        • databasestring or nullrequired
        • size_bytesinteger or nullrequired
        • extensionsarray of stringrequired
        • table_countintegerrequired
    • destinationDatabaseImportDestinationrequired

      What your Pantech database reported over the import's own connection; null in a list. Numbers are null until measured.

      Show 8 child fields
      • access_statestringrequired

        The import login's state on the destination.

        One of not_prepared, requested, active, revoking, revoked, failed.

      • measuredbooleanrequired
      • enginestring or nullrequired
      • server_versionstring or nullrequired
      • disk_available_bytesinteger or nullrequired
      • disk_total_bytesinteger or nullrequired
      • target_tablesinteger or nullrequired

        Tables already in the target database; an import needs an empty one.

      • trusted_extensionsarray of stringrequired
    • tablesarray of DatabaseImportTablerequired

      Per-table progress; null in a list.

      Show 9 child fields
      • schemastring or nullrequired
      • namestringrequired
      • has_primary_keybooleanrequired
      • statusstringrequired

        One of pending, copying, copied, verified, verify_failed.

      • pages_copiedintegerrequired
      • rows_copiedintegerrequired
      • bytes_copiedintegerrequired
      • verificationDatabaseImportVerificationrequired

        The table's comparison; null until it was verified.

        Show 5 child fields
        • source_rowsintegerrequired
        • destination_rowsintegerrequired
        • samples_checkedintegerrequired

          Key ranges whose rows were checksummed on both sides.

        • mismatched_samplesintegerrequired
        • passedbooleanrequired
      • updated_atstringrequired
    • chargedbooleanrequired

      Always false: moving data is free. The destination database bills as usual.

    • versionintegerrequired
    • created_atstringrequired
    • updated_atstringrequired
    • finished_atstring or nullrequired

    Errors

    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (read for GET, write for changes; an AI app's key also needs delete for a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access. FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin. AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps.
    • 404MIGRATION_NOT_FOUND: no migration with this id exists in your organization.
    • 409DATABASE_IMPORT_DESTINATION_IN_USE: the database already has an import in progress. DATABASE_IMPORT_ITEM_NOT_IMPORTABLE: the item is excluded or its engine is not offered. IDEMPOTENCY_CONFLICT: the key was used for a different request.
    • 422VALIDATION_FAILED: item_key names no item (UNKNOWN_ITEM) or not a database (NOT_A_DATABASE); destination_database_id names no database (DATABASE_NOT_FOUND) or one with another engine (ENGINE_MISMATCH); or source_ref, target_database or mode is invalid.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later. DATABASE_IMPORT_UNAVAILABLE: your Pantech database could not be reached right now. Try again in a minute. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    Path
    Body
    Idempotency
    curl -X POST "https://api.pantechdynamics.com/public/v1/migrations/mig_06gk3x9tq7m2v8r4y1c5d0zp8w/database-imports" \
      -H "Authorization: Bearer $PANTECH_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d '{
        "item_key": "item-key",
        "destination_database_id": "db_06gk3x9tq7m2v8r4y1c5d0zp8w",
        "source_ref": "source-ref"
      }'
    Response 201
    {
      "id": "dbi_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "migration_id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "item_key": "item-key",
      "destination_database_id": "db_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "target_database": "target-database",
      "mode": "dump",
      "source_ref": "source-ref",
      "engine": "postgres",
      "status": "awaiting_agent",
      "failure": {
        "code": "starter",
        "message": "message"
      },
      "cutover_requested": true,
      "cancel_requested": true,
      "readiness_requested": true,
      "access_revoked": true,
      "agent_connected": true,
      "lag_bytes": 1,
      "position": "position",
      "readiness": {
        "checked_at": "2026-10-03T09:30:00Z",
        "blocked": true,
        "issues": [
          {
            "code": "starter",
            "blocking": true,
            "message": "message",
            "fix": "fix",
            "subject": "subject"
          }
        ],
        "source": {
          "engine": "postgresql",
          "version": "version",
          "provider": "provider",
          "database": "database",
          "size_bytes": 1610612736,
          "extensions": [
            "extensions"
          ],
          "table_count": 1
        }
      },
      "destination": {
        "access_state": "not_prepared",
        "measured": true,
        "engine": "postgresql",
        "server_version": "server-version",
        "disk_available_bytes": 1,
        "disk_total_bytes": 1,
        "target_tables": 1,
        "trusted_extensions": [
          "trusted-extensions"
        ]
      },
      "tables": [
        {
          "schema": "schema",
          "name": "web-1",
          "has_primary_key": true,
          "status": "pending",
          "pages_copied": 1,
          "rows_copied": 1,
          "bytes_copied": 1,
          "verification": {
            "source_rows": 1,
            "destination_rows": 1,
            "samples_checked": 1,
            "mismatched_samples": 1,
            "passed": true
          },
          "updated_at": "2026-10-03T09:30:00Z"
        }
      ],
      "charged": true,
      "version": 1,
      "created_at": "2026-10-03T09:30:00Z",
      "updated_at": "2026-10-03T09:30:00Z",
      "finished_at": "2026-10-03T09:30:00Z"
    }

    List database imports

    Your organization's database imports, newest first, without their tables.

    GET/public/v1/database-imports
    Read keyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    Response 200

    Database imports.
    • dataarray of DatabaseImportrequired
      Show 25 child fields
      • idstringrequired
      • migration_idstringrequired
      • item_keystringrequired
      • destination_database_idstringrequired
      • target_databasestringrequired
      • modestringrequired

        One of dump, replicate.

      • source_refstringrequired
      • enginestringrequired

        The source's engine family.

        One of postgres, mysql, mariadb.

      • statusstringrequired

        One of awaiting_agent, preflight, ready, blocked, copying, replicating, cutting_over, verifying, verifying_failed, completed, cancelling, cancelled, failed.

      • failureDatabaseImportFailurerequired

        Why the import stopped; null while it has not.

        Show 2 child fields
        • codestringrequired

          statement_refused, chunk_invalid, access_revoked, destination_unavailable, or one the agent reported: source_unreachable, source_auth_failed, source_permission_denied, source_not_configured, dump_tool_missing, source_changed, internal.

        • messagestringrequired
      • cutover_requestedbooleanrequired
      • cancel_requestedbooleanrequired
      • readiness_requestedbooleanrequired

        A new pre-flight was asked for and the agent has not run it yet.

      • access_revokedbooleanrequired

        The import login and its loopback-only access were removed from the destination.

      • agent_connectedbooleanrequired

        A Migrate agent holds this import now.

      • lag_bytesinteger or nullrequired

        Replication lag in bytes of source WAL not yet applied; null in a dump or before replication starts.

      • positionstring or nullrequired

        The last applied source position (replicate only).

      • readinessDatabaseImportReadinessrequired

        The latest pre-flight; null until the agent ran one.

        Show 4 child fields
        • checked_atstringrequired
        • blockedbooleanrequired

          A blocking issue stops the import until it is fixed and readiness is checked again.

        • issuesarray of DatabaseImportIssuerequired
          Show 5 child fields
          • codestringrequired

            For example source_version_newer, extension_unavailable, size_exceeds_storage, size_not_measured, table_without_primary_key, replication_check_failed, mode_not_available, target_not_empty, destination_not_ready, destination_not_supported.

          • blockingbooleanrequired
          • messagestringrequired
          • fixstring or nullrequired

            A copy-paste fix for the source's provider (an RDS parameter group setting, a Cloud SQL flag, an Azure server parameter, SQL).

          • subjectstring or nullrequired

            What the issue is about (an extension, tables, a check).

        • sourceDatabaseImportSourcerequired

          What the Migrate agent measured on the source. Numbers it could not measure are null, never estimated.

          Show 7 child fields
          • enginestringrequired
          • versionstring or nullrequired
          • providerstring or nullrequired

            aws_rds, gcp_cloudsql, azure, digitalocean or self_hosted, as the agent detected it.

          • databasestring or nullrequired
          • size_bytesinteger or nullrequired
          • extensionsarray of stringrequired
          • table_countintegerrequired
      • destinationDatabaseImportDestinationrequired

        What your Pantech database reported over the import's own connection; null in a list. Numbers are null until measured.

        Show 8 child fields
        • access_statestringrequired

          The import login's state on the destination.

          One of not_prepared, requested, active, revoking, revoked, failed.

        • measuredbooleanrequired
        • enginestring or nullrequired
        • server_versionstring or nullrequired
        • disk_available_bytesinteger or nullrequired
        • disk_total_bytesinteger or nullrequired
        • target_tablesinteger or nullrequired

          Tables already in the target database; an import needs an empty one.

        • trusted_extensionsarray of stringrequired
      • tablesarray of DatabaseImportTablerequired

        Per-table progress; null in a list.

        Show 9 child fields
        • schemastring or nullrequired
        • namestringrequired
        • has_primary_keybooleanrequired
        • statusstringrequired

          One of pending, copying, copied, verified, verify_failed.

        • pages_copiedintegerrequired
        • rows_copiedintegerrequired
        • bytes_copiedintegerrequired
        • verificationDatabaseImportVerificationrequired

          The table's comparison; null until it was verified.

          Show 5 child fields
          • source_rowsintegerrequired
          • destination_rowsintegerrequired
          • samples_checkedintegerrequired

            Key ranges whose rows were checksummed on both sides.

          • mismatched_samplesintegerrequired
          • passedbooleanrequired
        • updated_atstringrequired
      • chargedbooleanrequired

        Always false: moving data is free. The destination database bills as usual.

      • versionintegerrequired
      • created_atstringrequired
      • updated_atstringrequired
      • finished_atstring or nullrequired
    • next_cursorstring or nullrequired

      Always null: this list is returned whole.

    Errors

    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (read for GET, write for changes; an AI app's key also needs delete for a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access. FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin. AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later. DATABASE_IMPORT_UNAVAILABLE: your Pantech database could not be reached right now. Try again in a minute. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    curl "https://api.pantechdynamics.com/public/v1/database-imports" \
      -H "Authorization: Bearer $PANTECH_API_KEY"
    Response 200
    {
      "data": [
        {
          "id": "dbi_06gk3x9tq7m2v8r4y1c5d0zp8w",
          "migration_id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
          "item_key": "item-key",
          "destination_database_id": "db_06gk3x9tq7m2v8r4y1c5d0zp8w",
          "target_database": "target-database",
          "mode": "dump",
          "source_ref": "source-ref",
          "engine": "postgres",
          "status": "awaiting_agent",
          "failure": {
            "code": "starter",
            "message": "message"
          },
          "cutover_requested": true,
          "cancel_requested": true,
          "readiness_requested": true,
          "access_revoked": true,
          "agent_connected": true,
          "lag_bytes": 1,
          "position": "position",
          "readiness": {
            "checked_at": "2026-10-03T09:30:00Z",
            "blocked": true,
            "issues": [
              {
                "code": "starter",
                "blocking": true,
                "message": "message",
                "fix": "fix",
                "subject": "subject"
              }
            ],
            "source": {
              "engine": "postgresql",
              "version": "version",
              "provider": "provider",
              "database": "database",
              "size_bytes": 1610612736,
              "extensions": [
                "extensions"
              ],
              "table_count": 1
            }
          },
          "destination": {
            "access_state": "not_prepared",
            "measured": true,
            "engine": "postgresql",
            "server_version": "server-version",
            "disk_available_bytes": 1,
            "disk_total_bytes": 1,
            "target_tables": 1,
            "trusted_extensions": [
              "trusted-extensions"
            ]
          },
          "tables": [
            {
              "schema": "schema",
              "name": "web-1",
              "has_primary_key": true,
              "status": "pending",
              "pages_copied": 1,
              "rows_copied": 1,
              "bytes_copied": 1,
              "verification": {
                "source_rows": 1,
                "destination_rows": 1,
                "samples_checked": 1,
                "mismatched_samples": 1,
                "passed": true
              },
              "updated_at": "2026-10-03T09:30:00Z"
            }
          ],
          "charged": true,
          "version": 1,
          "created_at": "2026-10-03T09:30:00Z",
          "updated_at": "2026-10-03T09:30:00Z",
          "finished_at": "2026-10-03T09:30:00Z"
        }
      ],
      "next_cursor": null
    }

    Get a database import

    An import with its readiness report, per-table progress and verification, and what the destination reported about itself. Values that were not measured are null.

    GET/public/v1/database-imports/{import_id}
    Read keyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    Path parameters

    • import_idstringrequired

    Response 200

    The import.
    • idstringrequired
    • migration_idstringrequired
    • item_keystringrequired
    • destination_database_idstringrequired
    • target_databasestringrequired
    • modestringrequired

      One of dump, replicate.

    • source_refstringrequired
    • enginestringrequired

      The source's engine family.

      One of postgres, mysql, mariadb.

    • statusstringrequired

      One of awaiting_agent, preflight, ready, blocked, copying, replicating, cutting_over, verifying, verifying_failed, completed, cancelling, cancelled, failed.

    • failureDatabaseImportFailurerequired

      Why the import stopped; null while it has not.

      Show 2 child fields
      • codestringrequired

        statement_refused, chunk_invalid, access_revoked, destination_unavailable, or one the agent reported: source_unreachable, source_auth_failed, source_permission_denied, source_not_configured, dump_tool_missing, source_changed, internal.

      • messagestringrequired
    • cutover_requestedbooleanrequired
    • cancel_requestedbooleanrequired
    • readiness_requestedbooleanrequired

      A new pre-flight was asked for and the agent has not run it yet.

    • access_revokedbooleanrequired

      The import login and its loopback-only access were removed from the destination.

    • agent_connectedbooleanrequired

      A Migrate agent holds this import now.

    • lag_bytesinteger or nullrequired

      Replication lag in bytes of source WAL not yet applied; null in a dump or before replication starts.

    • positionstring or nullrequired

      The last applied source position (replicate only).

    • readinessDatabaseImportReadinessrequired

      The latest pre-flight; null until the agent ran one.

      Show 4 child fields
      • checked_atstringrequired
      • blockedbooleanrequired

        A blocking issue stops the import until it is fixed and readiness is checked again.

      • issuesarray of DatabaseImportIssuerequired
        Show 5 child fields
        • codestringrequired

          For example source_version_newer, extension_unavailable, size_exceeds_storage, size_not_measured, table_without_primary_key, replication_check_failed, mode_not_available, target_not_empty, destination_not_ready, destination_not_supported.

        • blockingbooleanrequired
        • messagestringrequired
        • fixstring or nullrequired

          A copy-paste fix for the source's provider (an RDS parameter group setting, a Cloud SQL flag, an Azure server parameter, SQL).

        • subjectstring or nullrequired

          What the issue is about (an extension, tables, a check).

      • sourceDatabaseImportSourcerequired

        What the Migrate agent measured on the source. Numbers it could not measure are null, never estimated.

        Show 7 child fields
        • enginestringrequired
        • versionstring or nullrequired
        • providerstring or nullrequired

          aws_rds, gcp_cloudsql, azure, digitalocean or self_hosted, as the agent detected it.

        • databasestring or nullrequired
        • size_bytesinteger or nullrequired
        • extensionsarray of stringrequired
        • table_countintegerrequired
    • destinationDatabaseImportDestinationrequired

      What your Pantech database reported over the import's own connection; null in a list. Numbers are null until measured.

      Show 8 child fields
      • access_statestringrequired

        The import login's state on the destination.

        One of not_prepared, requested, active, revoking, revoked, failed.

      • measuredbooleanrequired
      • enginestring or nullrequired
      • server_versionstring or nullrequired
      • disk_available_bytesinteger or nullrequired
      • disk_total_bytesinteger or nullrequired
      • target_tablesinteger or nullrequired

        Tables already in the target database; an import needs an empty one.

      • trusted_extensionsarray of stringrequired
    • tablesarray of DatabaseImportTablerequired

      Per-table progress; null in a list.

      Show 9 child fields
      • schemastring or nullrequired
      • namestringrequired
      • has_primary_keybooleanrequired
      • statusstringrequired

        One of pending, copying, copied, verified, verify_failed.

      • pages_copiedintegerrequired
      • rows_copiedintegerrequired
      • bytes_copiedintegerrequired
      • verificationDatabaseImportVerificationrequired

        The table's comparison; null until it was verified.

        Show 5 child fields
        • source_rowsintegerrequired
        • destination_rowsintegerrequired
        • samples_checkedintegerrequired

          Key ranges whose rows were checksummed on both sides.

        • mismatched_samplesintegerrequired
        • passedbooleanrequired
      • updated_atstringrequired
    • chargedbooleanrequired

      Always false: moving data is free. The destination database bills as usual.

    • versionintegerrequired
    • created_atstringrequired
    • updated_atstringrequired
    • finished_atstring or nullrequired

    Errors

    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (read for GET, write for changes; an AI app's key also needs delete for a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access. FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin. AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps.
    • 404DATABASE_IMPORT_NOT_FOUND: no database import with this id exists in your organization.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later. DATABASE_IMPORT_UNAVAILABLE: your Pantech database could not be reached right now. Try again in a minute. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    Path
    curl "https://api.pantechdynamics.com/public/v1/database-imports/dbi_06gk3x9tq7m2v8r4y1c5d0zp8w" \
      -H "Authorization: Bearer $PANTECH_API_KEY"
    Response 200
    {
      "id": "dbi_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "migration_id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "item_key": "item-key",
      "destination_database_id": "db_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "target_database": "target-database",
      "mode": "dump",
      "source_ref": "source-ref",
      "engine": "postgres",
      "status": "awaiting_agent",
      "failure": {
        "code": "starter",
        "message": "message"
      },
      "cutover_requested": true,
      "cancel_requested": true,
      "readiness_requested": true,
      "access_revoked": true,
      "agent_connected": true,
      "lag_bytes": 1,
      "position": "position",
      "readiness": {
        "checked_at": "2026-10-03T09:30:00Z",
        "blocked": true,
        "issues": [
          {
            "code": "starter",
            "blocking": true,
            "message": "message",
            "fix": "fix",
            "subject": "subject"
          }
        ],
        "source": {
          "engine": "postgresql",
          "version": "version",
          "provider": "provider",
          "database": "database",
          "size_bytes": 1610612736,
          "extensions": [
            "extensions"
          ],
          "table_count": 1
        }
      },
      "destination": {
        "access_state": "not_prepared",
        "measured": true,
        "engine": "postgresql",
        "server_version": "server-version",
        "disk_available_bytes": 1,
        "disk_total_bytes": 1,
        "target_tables": 1,
        "trusted_extensions": [
          "trusted-extensions"
        ]
      },
      "tables": [
        {
          "schema": "schema",
          "name": "web-1",
          "has_primary_key": true,
          "status": "pending",
          "pages_copied": 1,
          "rows_copied": 1,
          "bytes_copied": 1,
          "verification": {
            "source_rows": 1,
            "destination_rows": 1,
            "samples_checked": 1,
            "mismatched_samples": 1,
            "passed": true
          },
          "updated_at": "2026-10-03T09:30:00Z"
        }
      ],
      "charged": true,
      "version": 1,
      "created_at": "2026-10-03T09:30:00Z",
      "updated_at": "2026-10-03T09:30:00Z",
      "finished_at": "2026-10-03T09:30:00Z"
    }

    Check readiness again

    Asks the agent to run the pre-flight again, for example after fixing what it reported. Allowed before the copy starts.

    POST/public/v1/database-imports/{import_id}/readiness
    Write keyNeeds Idempotency-KeyReturns202Accepted

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    • Idempotency-Keystringrequired

      A new value, such as a UUID, for each change. Resend with the same value to retry safely.

      At most 255 characters.

    Path parameters

    • import_idstringrequired

    Response 202

    The import.
    • idstringrequired
    • migration_idstringrequired
    • item_keystringrequired
    • destination_database_idstringrequired
    • target_databasestringrequired
    • modestringrequired

      One of dump, replicate.

    • source_refstringrequired
    • enginestringrequired

      The source's engine family.

      One of postgres, mysql, mariadb.

    • statusstringrequired

      One of awaiting_agent, preflight, ready, blocked, copying, replicating, cutting_over, verifying, verifying_failed, completed, cancelling, cancelled, failed.

    • failureDatabaseImportFailurerequired

      Why the import stopped; null while it has not.

      Show 2 child fields
      • codestringrequired

        statement_refused, chunk_invalid, access_revoked, destination_unavailable, or one the agent reported: source_unreachable, source_auth_failed, source_permission_denied, source_not_configured, dump_tool_missing, source_changed, internal.

      • messagestringrequired
    • cutover_requestedbooleanrequired
    • cancel_requestedbooleanrequired
    • readiness_requestedbooleanrequired

      A new pre-flight was asked for and the agent has not run it yet.

    • access_revokedbooleanrequired

      The import login and its loopback-only access were removed from the destination.

    • agent_connectedbooleanrequired

      A Migrate agent holds this import now.

    • lag_bytesinteger or nullrequired

      Replication lag in bytes of source WAL not yet applied; null in a dump or before replication starts.

    • positionstring or nullrequired

      The last applied source position (replicate only).

    • readinessDatabaseImportReadinessrequired

      The latest pre-flight; null until the agent ran one.

      Show 4 child fields
      • checked_atstringrequired
      • blockedbooleanrequired

        A blocking issue stops the import until it is fixed and readiness is checked again.

      • issuesarray of DatabaseImportIssuerequired
        Show 5 child fields
        • codestringrequired

          For example source_version_newer, extension_unavailable, size_exceeds_storage, size_not_measured, table_without_primary_key, replication_check_failed, mode_not_available, target_not_empty, destination_not_ready, destination_not_supported.

        • blockingbooleanrequired
        • messagestringrequired
        • fixstring or nullrequired

          A copy-paste fix for the source's provider (an RDS parameter group setting, a Cloud SQL flag, an Azure server parameter, SQL).

        • subjectstring or nullrequired

          What the issue is about (an extension, tables, a check).

      • sourceDatabaseImportSourcerequired

        What the Migrate agent measured on the source. Numbers it could not measure are null, never estimated.

        Show 7 child fields
        • enginestringrequired
        • versionstring or nullrequired
        • providerstring or nullrequired

          aws_rds, gcp_cloudsql, azure, digitalocean or self_hosted, as the agent detected it.

        • databasestring or nullrequired
        • size_bytesinteger or nullrequired
        • extensionsarray of stringrequired
        • table_countintegerrequired
    • destinationDatabaseImportDestinationrequired

      What your Pantech database reported over the import's own connection; null in a list. Numbers are null until measured.

      Show 8 child fields
      • access_statestringrequired

        The import login's state on the destination.

        One of not_prepared, requested, active, revoking, revoked, failed.

      • measuredbooleanrequired
      • enginestring or nullrequired
      • server_versionstring or nullrequired
      • disk_available_bytesinteger or nullrequired
      • disk_total_bytesinteger or nullrequired
      • target_tablesinteger or nullrequired

        Tables already in the target database; an import needs an empty one.

      • trusted_extensionsarray of stringrequired
    • tablesarray of DatabaseImportTablerequired

      Per-table progress; null in a list.

      Show 9 child fields
      • schemastring or nullrequired
      • namestringrequired
      • has_primary_keybooleanrequired
      • statusstringrequired

        One of pending, copying, copied, verified, verify_failed.

      • pages_copiedintegerrequired
      • rows_copiedintegerrequired
      • bytes_copiedintegerrequired
      • verificationDatabaseImportVerificationrequired

        The table's comparison; null until it was verified.

        Show 5 child fields
        • source_rowsintegerrequired
        • destination_rowsintegerrequired
        • samples_checkedintegerrequired

          Key ranges whose rows were checksummed on both sides.

        • mismatched_samplesintegerrequired
        • passedbooleanrequired
      • updated_atstringrequired
    • chargedbooleanrequired

      Always false: moving data is free. The destination database bills as usual.

    • versionintegerrequired
    • created_atstringrequired
    • updated_atstringrequired
    • finished_atstring or nullrequired

    Errors

    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (read for GET, write for changes; an AI app's key also needs delete for a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access. FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin. AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps.
    • 404DATABASE_IMPORT_NOT_FOUND: no database import with this id exists in your organization.
    • 409DATABASE_IMPORT_INVALID_STATE, DATABASE_IMPORT_FINISHED or DATABASE_IMPORT_NOT_COPIED: the import cannot do this now. CONFLICT: it changed at the same time; retry.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later. DATABASE_IMPORT_UNAVAILABLE: your Pantech database could not be reached right now. Try again in a minute. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    Path
    Idempotency
    curl -X POST "https://api.pantechdynamics.com/public/v1/database-imports/dbi_06gk3x9tq7m2v8r4y1c5d0zp8w/readiness" \
      -H "Authorization: Bearer $PANTECH_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)"
    Response 202
    {
      "id": "dbi_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "migration_id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "item_key": "item-key",
      "destination_database_id": "db_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "target_database": "target-database",
      "mode": "dump",
      "source_ref": "source-ref",
      "engine": "postgres",
      "status": "awaiting_agent",
      "failure": {
        "code": "starter",
        "message": "message"
      },
      "cutover_requested": true,
      "cancel_requested": true,
      "readiness_requested": true,
      "access_revoked": true,
      "agent_connected": true,
      "lag_bytes": 1,
      "position": "position",
      "readiness": {
        "checked_at": "2026-10-03T09:30:00Z",
        "blocked": true,
        "issues": [
          {
            "code": "starter",
            "blocking": true,
            "message": "message",
            "fix": "fix",
            "subject": "subject"
          }
        ],
        "source": {
          "engine": "postgresql",
          "version": "version",
          "provider": "provider",
          "database": "database",
          "size_bytes": 1610612736,
          "extensions": [
            "extensions"
          ],
          "table_count": 1
        }
      },
      "destination": {
        "access_state": "not_prepared",
        "measured": true,
        "engine": "postgresql",
        "server_version": "server-version",
        "disk_available_bytes": 1,
        "disk_total_bytes": 1,
        "target_tables": 1,
        "trusted_extensions": [
          "trusted-extensions"
        ]
      },
      "tables": [
        {
          "schema": "schema",
          "name": "web-1",
          "has_primary_key": true,
          "status": "pending",
          "pages_copied": 1,
          "rows_copied": 1,
          "bytes_copied": 1,
          "verification": {
            "source_rows": 1,
            "destination_rows": 1,
            "samples_checked": 1,
            "mismatched_samples": 1,
            "passed": true
          },
          "updated_at": "2026-10-03T09:30:00Z"
        }
      ],
      "charged": true,
      "version": 1,
      "created_at": "2026-10-03T09:30:00Z",
      "updated_at": "2026-10-03T09:30:00Z",
      "finished_at": "2026-10-03T09:30:00Z"
    }

    Cut over or finish an import

    Finishes the import. For dump, once every table is copied: the agent sets sequences and verifies every table. For replicate, stop writes to the source first: the agent applies the remaining changes until there is no lag, verifies, then the import login is removed and the replication slot dropped.

    POST/public/v1/database-imports/{import_id}/cutover
    Write keyNeeds Idempotency-KeyReturns202Accepted

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    • Idempotency-Keystringrequired

      A new value, such as a UUID, for each change. Resend with the same value to retry safely.

      At most 255 characters.

    Path parameters

    • import_idstringrequired

    Response 202

    The import.
    • idstringrequired
    • migration_idstringrequired
    • item_keystringrequired
    • destination_database_idstringrequired
    • target_databasestringrequired
    • modestringrequired

      One of dump, replicate.

    • source_refstringrequired
    • enginestringrequired

      The source's engine family.

      One of postgres, mysql, mariadb.

    • statusstringrequired

      One of awaiting_agent, preflight, ready, blocked, copying, replicating, cutting_over, verifying, verifying_failed, completed, cancelling, cancelled, failed.

    • failureDatabaseImportFailurerequired

      Why the import stopped; null while it has not.

      Show 2 child fields
      • codestringrequired

        statement_refused, chunk_invalid, access_revoked, destination_unavailable, or one the agent reported: source_unreachable, source_auth_failed, source_permission_denied, source_not_configured, dump_tool_missing, source_changed, internal.

      • messagestringrequired
    • cutover_requestedbooleanrequired
    • cancel_requestedbooleanrequired
    • readiness_requestedbooleanrequired

      A new pre-flight was asked for and the agent has not run it yet.

    • access_revokedbooleanrequired

      The import login and its loopback-only access were removed from the destination.

    • agent_connectedbooleanrequired

      A Migrate agent holds this import now.

    • lag_bytesinteger or nullrequired

      Replication lag in bytes of source WAL not yet applied; null in a dump or before replication starts.

    • positionstring or nullrequired

      The last applied source position (replicate only).

    • readinessDatabaseImportReadinessrequired

      The latest pre-flight; null until the agent ran one.

      Show 4 child fields
      • checked_atstringrequired
      • blockedbooleanrequired

        A blocking issue stops the import until it is fixed and readiness is checked again.

      • issuesarray of DatabaseImportIssuerequired
        Show 5 child fields
        • codestringrequired

          For example source_version_newer, extension_unavailable, size_exceeds_storage, size_not_measured, table_without_primary_key, replication_check_failed, mode_not_available, target_not_empty, destination_not_ready, destination_not_supported.

        • blockingbooleanrequired
        • messagestringrequired
        • fixstring or nullrequired

          A copy-paste fix for the source's provider (an RDS parameter group setting, a Cloud SQL flag, an Azure server parameter, SQL).

        • subjectstring or nullrequired

          What the issue is about (an extension, tables, a check).

      • sourceDatabaseImportSourcerequired

        What the Migrate agent measured on the source. Numbers it could not measure are null, never estimated.

        Show 7 child fields
        • enginestringrequired
        • versionstring or nullrequired
        • providerstring or nullrequired

          aws_rds, gcp_cloudsql, azure, digitalocean or self_hosted, as the agent detected it.

        • databasestring or nullrequired
        • size_bytesinteger or nullrequired
        • extensionsarray of stringrequired
        • table_countintegerrequired
    • destinationDatabaseImportDestinationrequired

      What your Pantech database reported over the import's own connection; null in a list. Numbers are null until measured.

      Show 8 child fields
      • access_statestringrequired

        The import login's state on the destination.

        One of not_prepared, requested, active, revoking, revoked, failed.

      • measuredbooleanrequired
      • enginestring or nullrequired
      • server_versionstring or nullrequired
      • disk_available_bytesinteger or nullrequired
      • disk_total_bytesinteger or nullrequired
      • target_tablesinteger or nullrequired

        Tables already in the target database; an import needs an empty one.

      • trusted_extensionsarray of stringrequired
    • tablesarray of DatabaseImportTablerequired

      Per-table progress; null in a list.

      Show 9 child fields
      • schemastring or nullrequired
      • namestringrequired
      • has_primary_keybooleanrequired
      • statusstringrequired

        One of pending, copying, copied, verified, verify_failed.

      • pages_copiedintegerrequired
      • rows_copiedintegerrequired
      • bytes_copiedintegerrequired
      • verificationDatabaseImportVerificationrequired

        The table's comparison; null until it was verified.

        Show 5 child fields
        • source_rowsintegerrequired
        • destination_rowsintegerrequired
        • samples_checkedintegerrequired

          Key ranges whose rows were checksummed on both sides.

        • mismatched_samplesintegerrequired
        • passedbooleanrequired
      • updated_atstringrequired
    • chargedbooleanrequired

      Always false: moving data is free. The destination database bills as usual.

    • versionintegerrequired
    • created_atstringrequired
    • updated_atstringrequired
    • finished_atstring or nullrequired

    Errors

    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (read for GET, write for changes; an AI app's key also needs delete for a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access. FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin. AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps.
    • 404DATABASE_IMPORT_NOT_FOUND: no database import with this id exists in your organization.
    • 409DATABASE_IMPORT_INVALID_STATE, DATABASE_IMPORT_FINISHED or DATABASE_IMPORT_NOT_COPIED: the import cannot do this now. CONFLICT: it changed at the same time; retry.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later. DATABASE_IMPORT_UNAVAILABLE: your Pantech database could not be reached right now. Try again in a minute. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    Path
    Idempotency
    curl -X POST "https://api.pantechdynamics.com/public/v1/database-imports/dbi_06gk3x9tq7m2v8r4y1c5d0zp8w/cutover" \
      -H "Authorization: Bearer $PANTECH_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)"
    Response 202
    {
      "id": "dbi_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "migration_id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "item_key": "item-key",
      "destination_database_id": "db_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "target_database": "target-database",
      "mode": "dump",
      "source_ref": "source-ref",
      "engine": "postgres",
      "status": "awaiting_agent",
      "failure": {
        "code": "starter",
        "message": "message"
      },
      "cutover_requested": true,
      "cancel_requested": true,
      "readiness_requested": true,
      "access_revoked": true,
      "agent_connected": true,
      "lag_bytes": 1,
      "position": "position",
      "readiness": {
        "checked_at": "2026-10-03T09:30:00Z",
        "blocked": true,
        "issues": [
          {
            "code": "starter",
            "blocking": true,
            "message": "message",
            "fix": "fix",
            "subject": "subject"
          }
        ],
        "source": {
          "engine": "postgresql",
          "version": "version",
          "provider": "provider",
          "database": "database",
          "size_bytes": 1610612736,
          "extensions": [
            "extensions"
          ],
          "table_count": 1
        }
      },
      "destination": {
        "access_state": "not_prepared",
        "measured": true,
        "engine": "postgresql",
        "server_version": "server-version",
        "disk_available_bytes": 1,
        "disk_total_bytes": 1,
        "target_tables": 1,
        "trusted_extensions": [
          "trusted-extensions"
        ]
      },
      "tables": [
        {
          "schema": "schema",
          "name": "web-1",
          "has_primary_key": true,
          "status": "pending",
          "pages_copied": 1,
          "rows_copied": 1,
          "bytes_copied": 1,
          "verification": {
            "source_rows": 1,
            "destination_rows": 1,
            "samples_checked": 1,
            "mismatched_samples": 1,
            "passed": true
          },
          "updated_at": "2026-10-03T09:30:00Z"
        }
      ],
      "charged": true,
      "version": 1,
      "created_at": "2026-10-03T09:30:00Z",
      "updated_at": "2026-10-03T09:30:00Z",
      "finished_at": "2026-10-03T09:30:00Z"
    }

    Cancel an import

    Stops the import and removes its access to your Pantech database. What was already copied stays. The agent drops its replication slot and publication on the source.

    POST/public/v1/database-imports/{import_id}/cancel
    Write keyNeeds Idempotency-KeyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    • Idempotency-Keystringrequired

      A new value, such as a UUID, for each change. Resend with the same value to retry safely.

      At most 255 characters.

    Path parameters

    • import_idstringrequired

    Response 200

    The import.
    • idstringrequired
    • migration_idstringrequired
    • item_keystringrequired
    • destination_database_idstringrequired
    • target_databasestringrequired
    • modestringrequired

      One of dump, replicate.

    • source_refstringrequired
    • enginestringrequired

      The source's engine family.

      One of postgres, mysql, mariadb.

    • statusstringrequired

      One of awaiting_agent, preflight, ready, blocked, copying, replicating, cutting_over, verifying, verifying_failed, completed, cancelling, cancelled, failed.

    • failureDatabaseImportFailurerequired

      Why the import stopped; null while it has not.

      Show 2 child fields
      • codestringrequired

        statement_refused, chunk_invalid, access_revoked, destination_unavailable, or one the agent reported: source_unreachable, source_auth_failed, source_permission_denied, source_not_configured, dump_tool_missing, source_changed, internal.

      • messagestringrequired
    • cutover_requestedbooleanrequired
    • cancel_requestedbooleanrequired
    • readiness_requestedbooleanrequired

      A new pre-flight was asked for and the agent has not run it yet.

    • access_revokedbooleanrequired

      The import login and its loopback-only access were removed from the destination.

    • agent_connectedbooleanrequired

      A Migrate agent holds this import now.

    • lag_bytesinteger or nullrequired

      Replication lag in bytes of source WAL not yet applied; null in a dump or before replication starts.

    • positionstring or nullrequired

      The last applied source position (replicate only).

    • readinessDatabaseImportReadinessrequired

      The latest pre-flight; null until the agent ran one.

      Show 4 child fields
      • checked_atstringrequired
      • blockedbooleanrequired

        A blocking issue stops the import until it is fixed and readiness is checked again.

      • issuesarray of DatabaseImportIssuerequired
        Show 5 child fields
        • codestringrequired

          For example source_version_newer, extension_unavailable, size_exceeds_storage, size_not_measured, table_without_primary_key, replication_check_failed, mode_not_available, target_not_empty, destination_not_ready, destination_not_supported.

        • blockingbooleanrequired
        • messagestringrequired
        • fixstring or nullrequired

          A copy-paste fix for the source's provider (an RDS parameter group setting, a Cloud SQL flag, an Azure server parameter, SQL).

        • subjectstring or nullrequired

          What the issue is about (an extension, tables, a check).

      • sourceDatabaseImportSourcerequired

        What the Migrate agent measured on the source. Numbers it could not measure are null, never estimated.

        Show 7 child fields
        • enginestringrequired
        • versionstring or nullrequired
        • providerstring or nullrequired

          aws_rds, gcp_cloudsql, azure, digitalocean or self_hosted, as the agent detected it.

        • databasestring or nullrequired
        • size_bytesinteger or nullrequired
        • extensionsarray of stringrequired
        • table_countintegerrequired
    • destinationDatabaseImportDestinationrequired

      What your Pantech database reported over the import's own connection; null in a list. Numbers are null until measured.

      Show 8 child fields
      • access_statestringrequired

        The import login's state on the destination.

        One of not_prepared, requested, active, revoking, revoked, failed.

      • measuredbooleanrequired
      • enginestring or nullrequired
      • server_versionstring or nullrequired
      • disk_available_bytesinteger or nullrequired
      • disk_total_bytesinteger or nullrequired
      • target_tablesinteger or nullrequired

        Tables already in the target database; an import needs an empty one.

      • trusted_extensionsarray of stringrequired
    • tablesarray of DatabaseImportTablerequired

      Per-table progress; null in a list.

      Show 9 child fields
      • schemastring or nullrequired
      • namestringrequired
      • has_primary_keybooleanrequired
      • statusstringrequired

        One of pending, copying, copied, verified, verify_failed.

      • pages_copiedintegerrequired
      • rows_copiedintegerrequired
      • bytes_copiedintegerrequired
      • verificationDatabaseImportVerificationrequired

        The table's comparison; null until it was verified.

        Show 5 child fields
        • source_rowsintegerrequired
        • destination_rowsintegerrequired
        • samples_checkedintegerrequired

          Key ranges whose rows were checksummed on both sides.

        • mismatched_samplesintegerrequired
        • passedbooleanrequired
      • updated_atstringrequired
    • chargedbooleanrequired

      Always false: moving data is free. The destination database bills as usual.

    • versionintegerrequired
    • created_atstringrequired
    • updated_atstringrequired
    • finished_atstring or nullrequired

    Errors

    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (read for GET, write for changes; an AI app's key also needs delete for a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access. FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin. AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps.
    • 404DATABASE_IMPORT_NOT_FOUND: no database import with this id exists in your organization.
    • 409DATABASE_IMPORT_INVALID_STATE, DATABASE_IMPORT_FINISHED or DATABASE_IMPORT_NOT_COPIED: the import cannot do this now. CONFLICT: it changed at the same time; retry.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later. DATABASE_IMPORT_UNAVAILABLE: your Pantech database could not be reached right now. Try again in a minute. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    Path
    Idempotency
    curl -X POST "https://api.pantechdynamics.com/public/v1/database-imports/dbi_06gk3x9tq7m2v8r4y1c5d0zp8w/cancel" \
      -H "Authorization: Bearer $PANTECH_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)"
    Response 200
    {
      "id": "dbi_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "migration_id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "item_key": "item-key",
      "destination_database_id": "db_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "target_database": "target-database",
      "mode": "dump",
      "source_ref": "source-ref",
      "engine": "postgres",
      "status": "awaiting_agent",
      "failure": {
        "code": "starter",
        "message": "message"
      },
      "cutover_requested": true,
      "cancel_requested": true,
      "readiness_requested": true,
      "access_revoked": true,
      "agent_connected": true,
      "lag_bytes": 1,
      "position": "position",
      "readiness": {
        "checked_at": "2026-10-03T09:30:00Z",
        "blocked": true,
        "issues": [
          {
            "code": "starter",
            "blocking": true,
            "message": "message",
            "fix": "fix",
            "subject": "subject"
          }
        ],
        "source": {
          "engine": "postgresql",
          "version": "version",
          "provider": "provider",
          "database": "database",
          "size_bytes": 1610612736,
          "extensions": [
            "extensions"
          ],
          "table_count": 1
        }
      },
      "destination": {
        "access_state": "not_prepared",
        "measured": true,
        "engine": "postgresql",
        "server_version": "server-version",
        "disk_available_bytes": 1,
        "disk_total_bytes": 1,
        "target_tables": 1,
        "trusted_extensions": [
          "trusted-extensions"
        ]
      },
      "tables": [
        {
          "schema": "schema",
          "name": "web-1",
          "has_primary_key": true,
          "status": "pending",
          "pages_copied": 1,
          "rows_copied": 1,
          "bytes_copied": 1,
          "verification": {
            "source_rows": 1,
            "destination_rows": 1,
            "samples_checked": 1,
            "mismatched_samples": 1,
            "passed": true
          },
          "updated_at": "2026-10-03T09:30:00Z"
        }
      ],
      "charged": true,
      "version": 1,
      "created_at": "2026-10-03T09:30:00Z",
      "updated_at": "2026-10-03T09:30:00Z",
      "finished_at": "2026-10-03T09:30:00Z"
    }

    Remove an import's access

    Removes the import login and its loopback-only access from your Pantech database now and keeps the data. An import still copying stops.

    POST/public/v1/database-imports/{import_id}/revoke-access
    Write keyNeeds Idempotency-KeyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    • Idempotency-Keystringrequired

      A new value, such as a UUID, for each change. Resend with the same value to retry safely.

      At most 255 characters.

    Path parameters

    • import_idstringrequired

    Response 200

    The import.
    • idstringrequired
    • migration_idstringrequired
    • item_keystringrequired
    • destination_database_idstringrequired
    • target_databasestringrequired
    • modestringrequired

      One of dump, replicate.

    • source_refstringrequired
    • enginestringrequired

      The source's engine family.

      One of postgres, mysql, mariadb.

    • statusstringrequired

      One of awaiting_agent, preflight, ready, blocked, copying, replicating, cutting_over, verifying, verifying_failed, completed, cancelling, cancelled, failed.

    • failureDatabaseImportFailurerequired

      Why the import stopped; null while it has not.

      Show 2 child fields
      • codestringrequired

        statement_refused, chunk_invalid, access_revoked, destination_unavailable, or one the agent reported: source_unreachable, source_auth_failed, source_permission_denied, source_not_configured, dump_tool_missing, source_changed, internal.

      • messagestringrequired
    • cutover_requestedbooleanrequired
    • cancel_requestedbooleanrequired
    • readiness_requestedbooleanrequired

      A new pre-flight was asked for and the agent has not run it yet.

    • access_revokedbooleanrequired

      The import login and its loopback-only access were removed from the destination.

    • agent_connectedbooleanrequired

      A Migrate agent holds this import now.

    • lag_bytesinteger or nullrequired

      Replication lag in bytes of source WAL not yet applied; null in a dump or before replication starts.

    • positionstring or nullrequired

      The last applied source position (replicate only).

    • readinessDatabaseImportReadinessrequired

      The latest pre-flight; null until the agent ran one.

      Show 4 child fields
      • checked_atstringrequired
      • blockedbooleanrequired

        A blocking issue stops the import until it is fixed and readiness is checked again.

      • issuesarray of DatabaseImportIssuerequired
        Show 5 child fields
        • codestringrequired

          For example source_version_newer, extension_unavailable, size_exceeds_storage, size_not_measured, table_without_primary_key, replication_check_failed, mode_not_available, target_not_empty, destination_not_ready, destination_not_supported.

        • blockingbooleanrequired
        • messagestringrequired
        • fixstring or nullrequired

          A copy-paste fix for the source's provider (an RDS parameter group setting, a Cloud SQL flag, an Azure server parameter, SQL).

        • subjectstring or nullrequired

          What the issue is about (an extension, tables, a check).

      • sourceDatabaseImportSourcerequired

        What the Migrate agent measured on the source. Numbers it could not measure are null, never estimated.

        Show 7 child fields
        • enginestringrequired
        • versionstring or nullrequired
        • providerstring or nullrequired

          aws_rds, gcp_cloudsql, azure, digitalocean or self_hosted, as the agent detected it.

        • databasestring or nullrequired
        • size_bytesinteger or nullrequired
        • extensionsarray of stringrequired
        • table_countintegerrequired
    • destinationDatabaseImportDestinationrequired

      What your Pantech database reported over the import's own connection; null in a list. Numbers are null until measured.

      Show 8 child fields
      • access_statestringrequired

        The import login's state on the destination.

        One of not_prepared, requested, active, revoking, revoked, failed.

      • measuredbooleanrequired
      • enginestring or nullrequired
      • server_versionstring or nullrequired
      • disk_available_bytesinteger or nullrequired
      • disk_total_bytesinteger or nullrequired
      • target_tablesinteger or nullrequired

        Tables already in the target database; an import needs an empty one.

      • trusted_extensionsarray of stringrequired
    • tablesarray of DatabaseImportTablerequired

      Per-table progress; null in a list.

      Show 9 child fields
      • schemastring or nullrequired
      • namestringrequired
      • has_primary_keybooleanrequired
      • statusstringrequired

        One of pending, copying, copied, verified, verify_failed.

      • pages_copiedintegerrequired
      • rows_copiedintegerrequired
      • bytes_copiedintegerrequired
      • verificationDatabaseImportVerificationrequired

        The table's comparison; null until it was verified.

        Show 5 child fields
        • source_rowsintegerrequired
        • destination_rowsintegerrequired
        • samples_checkedintegerrequired

          Key ranges whose rows were checksummed on both sides.

        • mismatched_samplesintegerrequired
        • passedbooleanrequired
      • updated_atstringrequired
    • chargedbooleanrequired

      Always false: moving data is free. The destination database bills as usual.

    • versionintegerrequired
    • created_atstringrequired
    • updated_atstringrequired
    • finished_atstring or nullrequired

    Errors

    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (read for GET, write for changes; an AI app's key also needs delete for a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access. FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin. AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps.
    • 404DATABASE_IMPORT_NOT_FOUND: no database import with this id exists in your organization.
    • 409DATABASE_IMPORT_INVALID_STATE, DATABASE_IMPORT_FINISHED or DATABASE_IMPORT_NOT_COPIED: the import cannot do this now. CONFLICT: it changed at the same time; retry.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later. DATABASE_IMPORT_UNAVAILABLE: your Pantech database could not be reached right now. Try again in a minute. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    Path
    Idempotency
    curl -X POST "https://api.pantechdynamics.com/public/v1/database-imports/dbi_06gk3x9tq7m2v8r4y1c5d0zp8w/revoke-access" \
      -H "Authorization: Bearer $PANTECH_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)"
    Response 200
    {
      "id": "dbi_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "migration_id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "item_key": "item-key",
      "destination_database_id": "db_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "target_database": "target-database",
      "mode": "dump",
      "source_ref": "source-ref",
      "engine": "postgres",
      "status": "awaiting_agent",
      "failure": {
        "code": "starter",
        "message": "message"
      },
      "cutover_requested": true,
      "cancel_requested": true,
      "readiness_requested": true,
      "access_revoked": true,
      "agent_connected": true,
      "lag_bytes": 1,
      "position": "position",
      "readiness": {
        "checked_at": "2026-10-03T09:30:00Z",
        "blocked": true,
        "issues": [
          {
            "code": "starter",
            "blocking": true,
            "message": "message",
            "fix": "fix",
            "subject": "subject"
          }
        ],
        "source": {
          "engine": "postgresql",
          "version": "version",
          "provider": "provider",
          "database": "database",
          "size_bytes": 1610612736,
          "extensions": [
            "extensions"
          ],
          "table_count": 1
        }
      },
      "destination": {
        "access_state": "not_prepared",
        "measured": true,
        "engine": "postgresql",
        "server_version": "server-version",
        "disk_available_bytes": 1,
        "disk_total_bytes": 1,
        "target_tables": 1,
        "trusted_extensions": [
          "trusted-extensions"
        ]
      },
      "tables": [
        {
          "schema": "schema",
          "name": "web-1",
          "has_primary_key": true,
          "status": "pending",
          "pages_copied": 1,
          "rows_copied": 1,
          "bytes_copied": 1,
          "verification": {
            "source_rows": 1,
            "destination_rows": 1,
            "samples_checked": 1,
            "mismatched_samples": 1,
            "passed": true
          },
          "updated_at": "2026-10-03T09:30:00Z"
        }
      ],
      "charged": true,
      "version": 1,
      "created_at": "2026-10-03T09:30:00Z",
      "updated_at": "2026-10-03T09:30:00Z",
      "finished_at": "2026-10-03T09:30:00Z"
    }

    Was this page helpful?

    Updated