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
idstringrequiredmigration_idstringrequireditem_keystringrequireddestination_database_idstringrequiredtarget_databasestringrequiredmodestringrequiredOne of
dump,replicate.source_refstringrequiredenginestringrequiredThe source's engine family.
One of
postgres,mysql,mariadb.statusstringrequiredOne of
awaiting_agent,preflight,ready,blocked,copying,replicating,cutting_over,verifying,verifying_failed,completed,cancelling,cancelled,failed.failureDatabaseImportFailurerequiredWhy the import stopped; null while it has not.
Show 2 child fieldsHide child fields
codestringrequiredstatement_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_requestedbooleanrequiredcancel_requestedbooleanrequiredreadiness_requestedbooleanrequiredA new pre-flight was asked for and the agent has not run it yet.
access_revokedbooleanrequiredThe import login and its loopback-only access were removed from the destination.
agent_connectedbooleanrequiredA Migrate agent holds this import now.
lag_bytesinteger or nullrequiredReplication lag in bytes of source WAL not yet applied; null in a dump or before replication starts.
positionstring or nullrequiredThe last applied source position (replicate only).
readinessDatabaseImportReadinessrequiredThe latest pre-flight; null until the agent ran one.
Show 4 child fieldsHide child fields
checked_atstringrequiredblockedbooleanrequiredA blocking issue stops the import until it is fixed and readiness is checked again.
issuesarray of DatabaseImportIssuerequiredShow 5 child fieldsHide child fields
codestringrequiredFor 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.blockingbooleanrequiredmessagestringrequiredfixstring or nullrequiredA copy-paste fix for the source's provider (an RDS parameter group setting, a Cloud SQL flag, an Azure server parameter, SQL).
subjectstring or nullrequiredWhat the issue is about (an extension, tables, a check).
sourceDatabaseImportSourcerequiredWhat the Migrate agent measured on the source. Numbers it could not measure are null, never estimated.
Show 7 child fieldsHide child fields
enginestringrequiredversionstring or nullrequiredproviderstring or nullrequiredaws_rds,gcp_cloudsql,azure,digitaloceanorself_hosted, as the agent detected it.databasestring or nullrequiredsize_bytesinteger or nullrequiredextensionsarray of stringrequiredtable_countintegerrequired
destinationDatabaseImportDestinationrequiredWhat your Pantech database reported over the import's own connection; null in a list. Numbers are null until measured.
Show 8 child fieldsHide child fields
access_statestringrequiredThe import login's state on the destination.
One of
not_prepared,requested,active,revoking,revoked,failed.measuredbooleanrequiredenginestring or nullrequiredserver_versionstring or nullrequireddisk_available_bytesinteger or nullrequireddisk_total_bytesinteger or nullrequiredtarget_tablesinteger or nullrequiredTables already in the target database; an import needs an empty one.
trusted_extensionsarray of stringrequired
tablesarray of DatabaseImportTablerequiredPer-table progress; null in a list.
Show 9 child fieldsHide child fields
schemastring or nullrequirednamestringrequiredhas_primary_keybooleanrequiredstatusstringrequiredOne of
pending,copying,copied,verified,verify_failed.pages_copiedintegerrequiredrows_copiedintegerrequiredbytes_copiedintegerrequiredverificationDatabaseImportVerificationrequiredThe table's comparison; null until it was verified.
Show 5 child fieldsHide child fields
source_rowsintegerrequireddestination_rowsintegerrequiredsamples_checkedintegerrequiredKey ranges whose rows were checksummed on both sides.
mismatched_samplesintegerrequiredpassedbooleanrequired
updated_atstringrequired
chargedbooleanrequiredAlways false: moving data is free. The destination database bills as usual.
versionintegerrequiredcreated_atstringrequiredupdated_atstringrequiredfinished_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.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….Idempotency-KeystringrequiredA 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/jsonitem_keystringrequiredThe plan item's key: one of the migration's
databaseitems.destination_database_idstringrequiredOne of your Pantech databases with the same engine as the source. Create it first: it bills as usual; the move itself is free.
target_databasestringThe 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.
modestringdumpcopies once (stop writes to the source first).replicatekeeps following the source's changes until you cut over (PostgreSQL sources only).One of
dump,replicate.source_refstringrequiredThe 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.idstringrequiredmigration_idstringrequireditem_keystringrequireddestination_database_idstringrequiredtarget_databasestringrequiredmodestringrequiredOne of
dump,replicate.source_refstringrequiredenginestringrequiredThe source's engine family.
One of
postgres,mysql,mariadb.statusstringrequiredOne of
awaiting_agent,preflight,ready,blocked,copying,replicating,cutting_over,verifying,verifying_failed,completed,cancelling,cancelled,failed.failureDatabaseImportFailurerequiredWhy the import stopped; null while it has not.
Show 2 child fieldsHide child fields
codestringrequiredstatement_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_requestedbooleanrequiredcancel_requestedbooleanrequiredreadiness_requestedbooleanrequiredA new pre-flight was asked for and the agent has not run it yet.
access_revokedbooleanrequiredThe import login and its loopback-only access were removed from the destination.
agent_connectedbooleanrequiredA Migrate agent holds this import now.
lag_bytesinteger or nullrequiredReplication lag in bytes of source WAL not yet applied; null in a dump or before replication starts.
positionstring or nullrequiredThe last applied source position (replicate only).
readinessDatabaseImportReadinessrequiredThe latest pre-flight; null until the agent ran one.
Show 4 child fieldsHide child fields
checked_atstringrequiredblockedbooleanrequiredA blocking issue stops the import until it is fixed and readiness is checked again.
issuesarray of DatabaseImportIssuerequiredShow 5 child fieldsHide child fields
codestringrequiredFor 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.blockingbooleanrequiredmessagestringrequiredfixstring or nullrequiredA copy-paste fix for the source's provider (an RDS parameter group setting, a Cloud SQL flag, an Azure server parameter, SQL).
subjectstring or nullrequiredWhat the issue is about (an extension, tables, a check).
sourceDatabaseImportSourcerequiredWhat the Migrate agent measured on the source. Numbers it could not measure are null, never estimated.
Show 7 child fieldsHide child fields
enginestringrequiredversionstring or nullrequiredproviderstring or nullrequiredaws_rds,gcp_cloudsql,azure,digitaloceanorself_hosted, as the agent detected it.databasestring or nullrequiredsize_bytesinteger or nullrequiredextensionsarray of stringrequiredtable_countintegerrequired
destinationDatabaseImportDestinationrequiredWhat your Pantech database reported over the import's own connection; null in a list. Numbers are null until measured.
Show 8 child fieldsHide child fields
access_statestringrequiredThe import login's state on the destination.
One of
not_prepared,requested,active,revoking,revoked,failed.measuredbooleanrequiredenginestring or nullrequiredserver_versionstring or nullrequireddisk_available_bytesinteger or nullrequireddisk_total_bytesinteger or nullrequiredtarget_tablesinteger or nullrequiredTables already in the target database; an import needs an empty one.
trusted_extensionsarray of stringrequired
tablesarray of DatabaseImportTablerequiredPer-table progress; null in a list.
Show 9 child fieldsHide child fields
schemastring or nullrequirednamestringrequiredhas_primary_keybooleanrequiredstatusstringrequiredOne of
pending,copying,copied,verified,verify_failed.pages_copiedintegerrequiredrows_copiedintegerrequiredbytes_copiedintegerrequiredverificationDatabaseImportVerificationrequiredThe table's comparison; null until it was verified.
Show 5 child fieldsHide child fields
source_rowsintegerrequireddestination_rowsintegerrequiredsamples_checkedintegerrequiredKey ranges whose rows were checksummed on both sides.
mismatched_samplesintegerrequiredpassedbooleanrequired
updated_atstringrequired
chargedbooleanrequiredAlways false: moving data is free. The destination database bills as usual.
versionintegerrequiredcreated_atstringrequiredupdated_atstringrequiredfinished_atstring or nullrequired
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor 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. - 404
MIGRATION_NOT_FOUND: no migration with this id exists in your organization. - 409
DATABASE_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. - 422
VALIDATION_FAILED:item_keynames no item (UNKNOWN_ITEM) or not a database (NOT_A_DATABASE);destination_database_idnames no database (DATABASE_NOT_FOUND) or one with another engine (ENGINE_MISMATCH); orsource_ref,target_databaseormodeis invalid. - 429
RATE_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. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_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.
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"
}'{
"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.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….
Response 200
Database imports.dataarray of DatabaseImportrequiredShow 25 child fieldsHide child fields
idstringrequiredmigration_idstringrequireditem_keystringrequireddestination_database_idstringrequiredtarget_databasestringrequiredmodestringrequiredOne of
dump,replicate.source_refstringrequiredenginestringrequiredThe source's engine family.
One of
postgres,mysql,mariadb.statusstringrequiredOne of
awaiting_agent,preflight,ready,blocked,copying,replicating,cutting_over,verifying,verifying_failed,completed,cancelling,cancelled,failed.failureDatabaseImportFailurerequiredWhy the import stopped; null while it has not.
Show 2 child fieldsHide child fields
codestringrequiredstatement_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_requestedbooleanrequiredcancel_requestedbooleanrequiredreadiness_requestedbooleanrequiredA new pre-flight was asked for and the agent has not run it yet.
access_revokedbooleanrequiredThe import login and its loopback-only access were removed from the destination.
agent_connectedbooleanrequiredA Migrate agent holds this import now.
lag_bytesinteger or nullrequiredReplication lag in bytes of source WAL not yet applied; null in a dump or before replication starts.
positionstring or nullrequiredThe last applied source position (replicate only).
readinessDatabaseImportReadinessrequiredThe latest pre-flight; null until the agent ran one.
Show 4 child fieldsHide child fields
checked_atstringrequiredblockedbooleanrequiredA blocking issue stops the import until it is fixed and readiness is checked again.
issuesarray of DatabaseImportIssuerequiredShow 5 child fieldsHide child fields
codestringrequiredFor 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.blockingbooleanrequiredmessagestringrequiredfixstring or nullrequiredA copy-paste fix for the source's provider (an RDS parameter group setting, a Cloud SQL flag, an Azure server parameter, SQL).
subjectstring or nullrequiredWhat the issue is about (an extension, tables, a check).
sourceDatabaseImportSourcerequiredWhat the Migrate agent measured on the source. Numbers it could not measure are null, never estimated.
Show 7 child fieldsHide child fields
enginestringrequiredversionstring or nullrequiredproviderstring or nullrequiredaws_rds,gcp_cloudsql,azure,digitaloceanorself_hosted, as the agent detected it.databasestring or nullrequiredsize_bytesinteger or nullrequiredextensionsarray of stringrequiredtable_countintegerrequired
destinationDatabaseImportDestinationrequiredWhat your Pantech database reported over the import's own connection; null in a list. Numbers are null until measured.
Show 8 child fieldsHide child fields
access_statestringrequiredThe import login's state on the destination.
One of
not_prepared,requested,active,revoking,revoked,failed.measuredbooleanrequiredenginestring or nullrequiredserver_versionstring or nullrequireddisk_available_bytesinteger or nullrequireddisk_total_bytesinteger or nullrequiredtarget_tablesinteger or nullrequiredTables already in the target database; an import needs an empty one.
trusted_extensionsarray of stringrequired
tablesarray of DatabaseImportTablerequiredPer-table progress; null in a list.
Show 9 child fieldsHide child fields
schemastring or nullrequirednamestringrequiredhas_primary_keybooleanrequiredstatusstringrequiredOne of
pending,copying,copied,verified,verify_failed.pages_copiedintegerrequiredrows_copiedintegerrequiredbytes_copiedintegerrequiredverificationDatabaseImportVerificationrequiredThe table's comparison; null until it was verified.
Show 5 child fieldsHide child fields
source_rowsintegerrequireddestination_rowsintegerrequiredsamples_checkedintegerrequiredKey ranges whose rows were checksummed on both sides.
mismatched_samplesintegerrequiredpassedbooleanrequired
updated_atstringrequired
chargedbooleanrequiredAlways false: moving data is free. The destination database bills as usual.
versionintegerrequiredcreated_atstringrequiredupdated_atstringrequiredfinished_atstring or nullrequired
next_cursorstring or nullrequiredAlways null: this list is returned whole.
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor 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. - 429
RATE_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. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_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.
curl "https://api.pantechdynamics.com/public/v1/database-imports" \
-H "Authorization: Bearer $PANTECH_API_KEY"{
"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.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….
Path parameters
import_idstringrequired
Response 200
The import.idstringrequiredmigration_idstringrequireditem_keystringrequireddestination_database_idstringrequiredtarget_databasestringrequiredmodestringrequiredOne of
dump,replicate.source_refstringrequiredenginestringrequiredThe source's engine family.
One of
postgres,mysql,mariadb.statusstringrequiredOne of
awaiting_agent,preflight,ready,blocked,copying,replicating,cutting_over,verifying,verifying_failed,completed,cancelling,cancelled,failed.failureDatabaseImportFailurerequiredWhy the import stopped; null while it has not.
Show 2 child fieldsHide child fields
codestringrequiredstatement_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_requestedbooleanrequiredcancel_requestedbooleanrequiredreadiness_requestedbooleanrequiredA new pre-flight was asked for and the agent has not run it yet.
access_revokedbooleanrequiredThe import login and its loopback-only access were removed from the destination.
agent_connectedbooleanrequiredA Migrate agent holds this import now.
lag_bytesinteger or nullrequiredReplication lag in bytes of source WAL not yet applied; null in a dump or before replication starts.
positionstring or nullrequiredThe last applied source position (replicate only).
readinessDatabaseImportReadinessrequiredThe latest pre-flight; null until the agent ran one.
Show 4 child fieldsHide child fields
checked_atstringrequiredblockedbooleanrequiredA blocking issue stops the import until it is fixed and readiness is checked again.
issuesarray of DatabaseImportIssuerequiredShow 5 child fieldsHide child fields
codestringrequiredFor 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.blockingbooleanrequiredmessagestringrequiredfixstring or nullrequiredA copy-paste fix for the source's provider (an RDS parameter group setting, a Cloud SQL flag, an Azure server parameter, SQL).
subjectstring or nullrequiredWhat the issue is about (an extension, tables, a check).
sourceDatabaseImportSourcerequiredWhat the Migrate agent measured on the source. Numbers it could not measure are null, never estimated.
Show 7 child fieldsHide child fields
enginestringrequiredversionstring or nullrequiredproviderstring or nullrequiredaws_rds,gcp_cloudsql,azure,digitaloceanorself_hosted, as the agent detected it.databasestring or nullrequiredsize_bytesinteger or nullrequiredextensionsarray of stringrequiredtable_countintegerrequired
destinationDatabaseImportDestinationrequiredWhat your Pantech database reported over the import's own connection; null in a list. Numbers are null until measured.
Show 8 child fieldsHide child fields
access_statestringrequiredThe import login's state on the destination.
One of
not_prepared,requested,active,revoking,revoked,failed.measuredbooleanrequiredenginestring or nullrequiredserver_versionstring or nullrequireddisk_available_bytesinteger or nullrequireddisk_total_bytesinteger or nullrequiredtarget_tablesinteger or nullrequiredTables already in the target database; an import needs an empty one.
trusted_extensionsarray of stringrequired
tablesarray of DatabaseImportTablerequiredPer-table progress; null in a list.
Show 9 child fieldsHide child fields
schemastring or nullrequirednamestringrequiredhas_primary_keybooleanrequiredstatusstringrequiredOne of
pending,copying,copied,verified,verify_failed.pages_copiedintegerrequiredrows_copiedintegerrequiredbytes_copiedintegerrequiredverificationDatabaseImportVerificationrequiredThe table's comparison; null until it was verified.
Show 5 child fieldsHide child fields
source_rowsintegerrequireddestination_rowsintegerrequiredsamples_checkedintegerrequiredKey ranges whose rows were checksummed on both sides.
mismatched_samplesintegerrequiredpassedbooleanrequired
updated_atstringrequired
chargedbooleanrequiredAlways false: moving data is free. The destination database bills as usual.
versionintegerrequiredcreated_atstringrequiredupdated_atstringrequiredfinished_atstring or nullrequired
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor 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. - 404
DATABASE_IMPORT_NOT_FOUND: no database import with this id exists in your organization. - 429
RATE_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. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_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.
curl "https://api.pantechdynamics.com/public/v1/database-imports/dbi_06gk3x9tq7m2v8r4y1c5d0zp8w" \
-H "Authorization: Bearer $PANTECH_API_KEY"{
"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.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….Idempotency-KeystringrequiredA 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.idstringrequiredmigration_idstringrequireditem_keystringrequireddestination_database_idstringrequiredtarget_databasestringrequiredmodestringrequiredOne of
dump,replicate.source_refstringrequiredenginestringrequiredThe source's engine family.
One of
postgres,mysql,mariadb.statusstringrequiredOne of
awaiting_agent,preflight,ready,blocked,copying,replicating,cutting_over,verifying,verifying_failed,completed,cancelling,cancelled,failed.failureDatabaseImportFailurerequiredWhy the import stopped; null while it has not.
Show 2 child fieldsHide child fields
codestringrequiredstatement_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_requestedbooleanrequiredcancel_requestedbooleanrequiredreadiness_requestedbooleanrequiredA new pre-flight was asked for and the agent has not run it yet.
access_revokedbooleanrequiredThe import login and its loopback-only access were removed from the destination.
agent_connectedbooleanrequiredA Migrate agent holds this import now.
lag_bytesinteger or nullrequiredReplication lag in bytes of source WAL not yet applied; null in a dump or before replication starts.
positionstring or nullrequiredThe last applied source position (replicate only).
readinessDatabaseImportReadinessrequiredThe latest pre-flight; null until the agent ran one.
Show 4 child fieldsHide child fields
checked_atstringrequiredblockedbooleanrequiredA blocking issue stops the import until it is fixed and readiness is checked again.
issuesarray of DatabaseImportIssuerequiredShow 5 child fieldsHide child fields
codestringrequiredFor 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.blockingbooleanrequiredmessagestringrequiredfixstring or nullrequiredA copy-paste fix for the source's provider (an RDS parameter group setting, a Cloud SQL flag, an Azure server parameter, SQL).
subjectstring or nullrequiredWhat the issue is about (an extension, tables, a check).
sourceDatabaseImportSourcerequiredWhat the Migrate agent measured on the source. Numbers it could not measure are null, never estimated.
Show 7 child fieldsHide child fields
enginestringrequiredversionstring or nullrequiredproviderstring or nullrequiredaws_rds,gcp_cloudsql,azure,digitaloceanorself_hosted, as the agent detected it.databasestring or nullrequiredsize_bytesinteger or nullrequiredextensionsarray of stringrequiredtable_countintegerrequired
destinationDatabaseImportDestinationrequiredWhat your Pantech database reported over the import's own connection; null in a list. Numbers are null until measured.
Show 8 child fieldsHide child fields
access_statestringrequiredThe import login's state on the destination.
One of
not_prepared,requested,active,revoking,revoked,failed.measuredbooleanrequiredenginestring or nullrequiredserver_versionstring or nullrequireddisk_available_bytesinteger or nullrequireddisk_total_bytesinteger or nullrequiredtarget_tablesinteger or nullrequiredTables already in the target database; an import needs an empty one.
trusted_extensionsarray of stringrequired
tablesarray of DatabaseImportTablerequiredPer-table progress; null in a list.
Show 9 child fieldsHide child fields
schemastring or nullrequirednamestringrequiredhas_primary_keybooleanrequiredstatusstringrequiredOne of
pending,copying,copied,verified,verify_failed.pages_copiedintegerrequiredrows_copiedintegerrequiredbytes_copiedintegerrequiredverificationDatabaseImportVerificationrequiredThe table's comparison; null until it was verified.
Show 5 child fieldsHide child fields
source_rowsintegerrequireddestination_rowsintegerrequiredsamples_checkedintegerrequiredKey ranges whose rows were checksummed on both sides.
mismatched_samplesintegerrequiredpassedbooleanrequired
updated_atstringrequired
chargedbooleanrequiredAlways false: moving data is free. The destination database bills as usual.
versionintegerrequiredcreated_atstringrequiredupdated_atstringrequiredfinished_atstring or nullrequired
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor 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. - 404
DATABASE_IMPORT_NOT_FOUND: no database import with this id exists in your organization. - 409
DATABASE_IMPORT_INVALID_STATE,DATABASE_IMPORT_FINISHEDorDATABASE_IMPORT_NOT_COPIED: the import cannot do this now.CONFLICT: it changed at the same time; retry. - 429
RATE_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. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_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.
curl -X POST "https://api.pantechdynamics.com/public/v1/database-imports/dbi_06gk3x9tq7m2v8r4y1c5d0zp8w/readiness" \
-H "Authorization: Bearer $PANTECH_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"{
"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.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….Idempotency-KeystringrequiredA 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.idstringrequiredmigration_idstringrequireditem_keystringrequireddestination_database_idstringrequiredtarget_databasestringrequiredmodestringrequiredOne of
dump,replicate.source_refstringrequiredenginestringrequiredThe source's engine family.
One of
postgres,mysql,mariadb.statusstringrequiredOne of
awaiting_agent,preflight,ready,blocked,copying,replicating,cutting_over,verifying,verifying_failed,completed,cancelling,cancelled,failed.failureDatabaseImportFailurerequiredWhy the import stopped; null while it has not.
Show 2 child fieldsHide child fields
codestringrequiredstatement_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_requestedbooleanrequiredcancel_requestedbooleanrequiredreadiness_requestedbooleanrequiredA new pre-flight was asked for and the agent has not run it yet.
access_revokedbooleanrequiredThe import login and its loopback-only access were removed from the destination.
agent_connectedbooleanrequiredA Migrate agent holds this import now.
lag_bytesinteger or nullrequiredReplication lag in bytes of source WAL not yet applied; null in a dump or before replication starts.
positionstring or nullrequiredThe last applied source position (replicate only).
readinessDatabaseImportReadinessrequiredThe latest pre-flight; null until the agent ran one.
Show 4 child fieldsHide child fields
checked_atstringrequiredblockedbooleanrequiredA blocking issue stops the import until it is fixed and readiness is checked again.
issuesarray of DatabaseImportIssuerequiredShow 5 child fieldsHide child fields
codestringrequiredFor 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.blockingbooleanrequiredmessagestringrequiredfixstring or nullrequiredA copy-paste fix for the source's provider (an RDS parameter group setting, a Cloud SQL flag, an Azure server parameter, SQL).
subjectstring or nullrequiredWhat the issue is about (an extension, tables, a check).
sourceDatabaseImportSourcerequiredWhat the Migrate agent measured on the source. Numbers it could not measure are null, never estimated.
Show 7 child fieldsHide child fields
enginestringrequiredversionstring or nullrequiredproviderstring or nullrequiredaws_rds,gcp_cloudsql,azure,digitaloceanorself_hosted, as the agent detected it.databasestring or nullrequiredsize_bytesinteger or nullrequiredextensionsarray of stringrequiredtable_countintegerrequired
destinationDatabaseImportDestinationrequiredWhat your Pantech database reported over the import's own connection; null in a list. Numbers are null until measured.
Show 8 child fieldsHide child fields
access_statestringrequiredThe import login's state on the destination.
One of
not_prepared,requested,active,revoking,revoked,failed.measuredbooleanrequiredenginestring or nullrequiredserver_versionstring or nullrequireddisk_available_bytesinteger or nullrequireddisk_total_bytesinteger or nullrequiredtarget_tablesinteger or nullrequiredTables already in the target database; an import needs an empty one.
trusted_extensionsarray of stringrequired
tablesarray of DatabaseImportTablerequiredPer-table progress; null in a list.
Show 9 child fieldsHide child fields
schemastring or nullrequirednamestringrequiredhas_primary_keybooleanrequiredstatusstringrequiredOne of
pending,copying,copied,verified,verify_failed.pages_copiedintegerrequiredrows_copiedintegerrequiredbytes_copiedintegerrequiredverificationDatabaseImportVerificationrequiredThe table's comparison; null until it was verified.
Show 5 child fieldsHide child fields
source_rowsintegerrequireddestination_rowsintegerrequiredsamples_checkedintegerrequiredKey ranges whose rows were checksummed on both sides.
mismatched_samplesintegerrequiredpassedbooleanrequired
updated_atstringrequired
chargedbooleanrequiredAlways false: moving data is free. The destination database bills as usual.
versionintegerrequiredcreated_atstringrequiredupdated_atstringrequiredfinished_atstring or nullrequired
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor 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. - 404
DATABASE_IMPORT_NOT_FOUND: no database import with this id exists in your organization. - 409
DATABASE_IMPORT_INVALID_STATE,DATABASE_IMPORT_FINISHEDorDATABASE_IMPORT_NOT_COPIED: the import cannot do this now.CONFLICT: it changed at the same time; retry. - 429
RATE_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. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_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.
curl -X POST "https://api.pantechdynamics.com/public/v1/database-imports/dbi_06gk3x9tq7m2v8r4y1c5d0zp8w/cutover" \
-H "Authorization: Bearer $PANTECH_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"{
"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.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….Idempotency-KeystringrequiredA 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.idstringrequiredmigration_idstringrequireditem_keystringrequireddestination_database_idstringrequiredtarget_databasestringrequiredmodestringrequiredOne of
dump,replicate.source_refstringrequiredenginestringrequiredThe source's engine family.
One of
postgres,mysql,mariadb.statusstringrequiredOne of
awaiting_agent,preflight,ready,blocked,copying,replicating,cutting_over,verifying,verifying_failed,completed,cancelling,cancelled,failed.failureDatabaseImportFailurerequiredWhy the import stopped; null while it has not.
Show 2 child fieldsHide child fields
codestringrequiredstatement_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_requestedbooleanrequiredcancel_requestedbooleanrequiredreadiness_requestedbooleanrequiredA new pre-flight was asked for and the agent has not run it yet.
access_revokedbooleanrequiredThe import login and its loopback-only access were removed from the destination.
agent_connectedbooleanrequiredA Migrate agent holds this import now.
lag_bytesinteger or nullrequiredReplication lag in bytes of source WAL not yet applied; null in a dump or before replication starts.
positionstring or nullrequiredThe last applied source position (replicate only).
readinessDatabaseImportReadinessrequiredThe latest pre-flight; null until the agent ran one.
Show 4 child fieldsHide child fields
checked_atstringrequiredblockedbooleanrequiredA blocking issue stops the import until it is fixed and readiness is checked again.
issuesarray of DatabaseImportIssuerequiredShow 5 child fieldsHide child fields
codestringrequiredFor 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.blockingbooleanrequiredmessagestringrequiredfixstring or nullrequiredA copy-paste fix for the source's provider (an RDS parameter group setting, a Cloud SQL flag, an Azure server parameter, SQL).
subjectstring or nullrequiredWhat the issue is about (an extension, tables, a check).
sourceDatabaseImportSourcerequiredWhat the Migrate agent measured on the source. Numbers it could not measure are null, never estimated.
Show 7 child fieldsHide child fields
enginestringrequiredversionstring or nullrequiredproviderstring or nullrequiredaws_rds,gcp_cloudsql,azure,digitaloceanorself_hosted, as the agent detected it.databasestring or nullrequiredsize_bytesinteger or nullrequiredextensionsarray of stringrequiredtable_countintegerrequired
destinationDatabaseImportDestinationrequiredWhat your Pantech database reported over the import's own connection; null in a list. Numbers are null until measured.
Show 8 child fieldsHide child fields
access_statestringrequiredThe import login's state on the destination.
One of
not_prepared,requested,active,revoking,revoked,failed.measuredbooleanrequiredenginestring or nullrequiredserver_versionstring or nullrequireddisk_available_bytesinteger or nullrequireddisk_total_bytesinteger or nullrequiredtarget_tablesinteger or nullrequiredTables already in the target database; an import needs an empty one.
trusted_extensionsarray of stringrequired
tablesarray of DatabaseImportTablerequiredPer-table progress; null in a list.
Show 9 child fieldsHide child fields
schemastring or nullrequirednamestringrequiredhas_primary_keybooleanrequiredstatusstringrequiredOne of
pending,copying,copied,verified,verify_failed.pages_copiedintegerrequiredrows_copiedintegerrequiredbytes_copiedintegerrequiredverificationDatabaseImportVerificationrequiredThe table's comparison; null until it was verified.
Show 5 child fieldsHide child fields
source_rowsintegerrequireddestination_rowsintegerrequiredsamples_checkedintegerrequiredKey ranges whose rows were checksummed on both sides.
mismatched_samplesintegerrequiredpassedbooleanrequired
updated_atstringrequired
chargedbooleanrequiredAlways false: moving data is free. The destination database bills as usual.
versionintegerrequiredcreated_atstringrequiredupdated_atstringrequiredfinished_atstring or nullrequired
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor 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. - 404
DATABASE_IMPORT_NOT_FOUND: no database import with this id exists in your organization. - 409
DATABASE_IMPORT_INVALID_STATE,DATABASE_IMPORT_FINISHEDorDATABASE_IMPORT_NOT_COPIED: the import cannot do this now.CONFLICT: it changed at the same time; retry. - 429
RATE_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. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_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.
curl -X POST "https://api.pantechdynamics.com/public/v1/database-imports/dbi_06gk3x9tq7m2v8r4y1c5d0zp8w/cancel" \
-H "Authorization: Bearer $PANTECH_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"{
"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.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….Idempotency-KeystringrequiredA 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.idstringrequiredmigration_idstringrequireditem_keystringrequireddestination_database_idstringrequiredtarget_databasestringrequiredmodestringrequiredOne of
dump,replicate.source_refstringrequiredenginestringrequiredThe source's engine family.
One of
postgres,mysql,mariadb.statusstringrequiredOne of
awaiting_agent,preflight,ready,blocked,copying,replicating,cutting_over,verifying,verifying_failed,completed,cancelling,cancelled,failed.failureDatabaseImportFailurerequiredWhy the import stopped; null while it has not.
Show 2 child fieldsHide child fields
codestringrequiredstatement_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_requestedbooleanrequiredcancel_requestedbooleanrequiredreadiness_requestedbooleanrequiredA new pre-flight was asked for and the agent has not run it yet.
access_revokedbooleanrequiredThe import login and its loopback-only access were removed from the destination.
agent_connectedbooleanrequiredA Migrate agent holds this import now.
lag_bytesinteger or nullrequiredReplication lag in bytes of source WAL not yet applied; null in a dump or before replication starts.
positionstring or nullrequiredThe last applied source position (replicate only).
readinessDatabaseImportReadinessrequiredThe latest pre-flight; null until the agent ran one.
Show 4 child fieldsHide child fields
checked_atstringrequiredblockedbooleanrequiredA blocking issue stops the import until it is fixed and readiness is checked again.
issuesarray of DatabaseImportIssuerequiredShow 5 child fieldsHide child fields
codestringrequiredFor 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.blockingbooleanrequiredmessagestringrequiredfixstring or nullrequiredA copy-paste fix for the source's provider (an RDS parameter group setting, a Cloud SQL flag, an Azure server parameter, SQL).
subjectstring or nullrequiredWhat the issue is about (an extension, tables, a check).
sourceDatabaseImportSourcerequiredWhat the Migrate agent measured on the source. Numbers it could not measure are null, never estimated.
Show 7 child fieldsHide child fields
enginestringrequiredversionstring or nullrequiredproviderstring or nullrequiredaws_rds,gcp_cloudsql,azure,digitaloceanorself_hosted, as the agent detected it.databasestring or nullrequiredsize_bytesinteger or nullrequiredextensionsarray of stringrequiredtable_countintegerrequired
destinationDatabaseImportDestinationrequiredWhat your Pantech database reported over the import's own connection; null in a list. Numbers are null until measured.
Show 8 child fieldsHide child fields
access_statestringrequiredThe import login's state on the destination.
One of
not_prepared,requested,active,revoking,revoked,failed.measuredbooleanrequiredenginestring or nullrequiredserver_versionstring or nullrequireddisk_available_bytesinteger or nullrequireddisk_total_bytesinteger or nullrequiredtarget_tablesinteger or nullrequiredTables already in the target database; an import needs an empty one.
trusted_extensionsarray of stringrequired
tablesarray of DatabaseImportTablerequiredPer-table progress; null in a list.
Show 9 child fieldsHide child fields
schemastring or nullrequirednamestringrequiredhas_primary_keybooleanrequiredstatusstringrequiredOne of
pending,copying,copied,verified,verify_failed.pages_copiedintegerrequiredrows_copiedintegerrequiredbytes_copiedintegerrequiredverificationDatabaseImportVerificationrequiredThe table's comparison; null until it was verified.
Show 5 child fieldsHide child fields
source_rowsintegerrequireddestination_rowsintegerrequiredsamples_checkedintegerrequiredKey ranges whose rows were checksummed on both sides.
mismatched_samplesintegerrequiredpassedbooleanrequired
updated_atstringrequired
chargedbooleanrequiredAlways false: moving data is free. The destination database bills as usual.
versionintegerrequiredcreated_atstringrequiredupdated_atstringrequiredfinished_atstring or nullrequired
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor 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. - 404
DATABASE_IMPORT_NOT_FOUND: no database import with this id exists in your organization. - 409
DATABASE_IMPORT_INVALID_STATE,DATABASE_IMPORT_FINISHEDorDATABASE_IMPORT_NOT_COPIED: the import cannot do this now.CONFLICT: it changed at the same time; retry. - 429
RATE_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. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_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.
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)"{
"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"
}