API reference · Move to Pantech / Server copies
Server copies
Copy a planned server's disks into a new Pantech instance, in passes, then cut over.
Start a copy from a planned instance item of a migration, naming the subnet and security group the new instance goes in. The disks come from the Pantech Migrate agent on the server (source: agent) or, on AWS, from EBS snapshots read with a separate copy role (source: aws_snapshot). The first pass copies every disk; sync copies only what changed; cutover takes the last pass after you stop the application, then creates the instance through the normal create path, billed like any other. Nothing is created before the cutover. See copying servers and disks.
The server copy object
Fields
idstringrequiredsco_…migration_idstringrequireditem_keystringrequiredconnection_idstringrequiredsourcestringrequiredOne of
agent,aws_snapshot.statusstringrequiredOne of
waiting,copying,synced,importing,creating_instance,completed,failed,cancelled.failureobject or nullShow 2 child fieldsHide child fields
codestringmessagestring
os_familystringrequiredOne of
linux,windows.boot_modestring or nullOne of
bios,uefi,null.instanceobjectrequiredShow 8 child fieldsHide child fields
namestringplan_slugstringregionstringsubnet_idstring or nullsecurity_group_idstring or nullssh_key_idstring or nullidstring or nullSet once the instance is being created.
order_idstring or null
disksarray of objectrequiredShow 6 child fieldsHide child fields
indexintegerrolestringOne of
root,data.sourcestringsize_bytesintegersnapshot_idstring or nullvolume_idstring or null
flagsarray of objectrequiredShow 3 child fieldsHide child fields
codestringblockingbooleanmessagestring
passobject or nullShow 3 child fieldsHide child fields
numberintegerkindstringOne of
full,delta,final.started_atstring or null
pending_passstring or nullOne of
full,delta,final,null.progressobjectrequiredShow 6 child fieldsHide child fields
chunks_totalintegerchunks_doneintegerbytes_totalintegerbytes_uploadedintegerwire_bytesintegereta_secondsinteger or null
synced_atstring or nullexpires_atstringrequiredcompleted_atstring or nullcreated_atstringrequiredupdated_atstringrequired
Copy a server
Starts copying one planned server's disks into a new Pantech instance in your organization, with the item's plan (or plan_slug), the subnet and security group you name, and optionally an SSH key. Nothing is created yet: the first pass copies every disk, POST /public/v1/server-copies/{copy_id}/sync copies what changed since, and POST /public/v1/server-copies/{copy_id}/cutover runs the last pass after you stop the application, then builds the instance through the normal create path, so it is billed, paid for and limited like any new instance. The copy itself is free.
With source agent (the default) the Pantech Migrate agent on the server checks it and sends its disks over HTTPS. With aws_snapshot Pantech reads EBS snapshots keylessly with a separate copy role: get its stack from GET /public/v1/migrations/{migration_id}/server-copy-template, deploy it, and pass its CopyRoleArn. Windows servers are copied with the agent only, and need Windows enabled for your organization. Owners and admins only.
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 planned server's item key.
sourcestringOne of
agent,aws_snapshot. Defaults toagent.namestringThe new instance's name; the source's when empty.
plan_slugstringOverrides the item's plan.
subnet_idstringsecurity_group_idstringssh_key_idstringOptional. The copied disk keeps its own users and keys.
awsServerCopyAWSSourceShow 3 child fieldsHide child fields
copy_role_arnstringrequiredThe copy stack's CopyRoleArn output, never the discover role.
create_snapshotsbooleanThe copy role may snapshot the server's volumes itself.
snapshotsobjectThe first pass's snapshot for each volume id, tagged pantech-migrate-connection.
Response 201
The copy, waiting for its first pass.idstringrequiredsco_…migration_idstringrequireditem_keystringrequiredconnection_idstringrequiredsourcestringrequiredOne of
agent,aws_snapshot.statusstringrequiredOne of
waiting,copying,synced,importing,creating_instance,completed,failed,cancelled.failureobject or nullShow 2 child fieldsHide child fields
codestringmessagestring
os_familystringrequiredOne of
linux,windows.boot_modestring or nullOne of
bios,uefi,null.instanceobjectrequiredShow 8 child fieldsHide child fields
namestringplan_slugstringregionstringsubnet_idstring or nullsecurity_group_idstring or nullssh_key_idstring or nullidstring or nullSet once the instance is being created.
order_idstring or null
disksarray of objectrequiredShow 6 child fieldsHide child fields
indexintegerrolestringOne of
root,data.sourcestringsize_bytesintegersnapshot_idstring or nullvolume_idstring or null
flagsarray of objectrequiredShow 3 child fieldsHide child fields
codestringblockingbooleanmessagestring
passobject or nullShow 3 child fieldsHide child fields
numberintegerkindstringOne of
full,delta,final.started_atstring or null
pending_passstring or nullOne of
full,delta,final,null.progressobjectrequiredShow 6 child fieldsHide child fields
chunks_totalintegerchunks_doneintegerbytes_totalintegerbytes_uploadedintegerwire_bytesintegereta_secondsinteger or null
synced_atstring or nullexpires_atstringrequiredcompleted_atstring or nullcreated_atstringrequiredupdated_atstringrequired
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
SERVER_COPY_IN_PROGRESS: this server already has a copy in progress.IDEMPOTENCY_CONFLICT: this Idempotency-Key was used for another request. - 422
VALIDATION_FAILED:NOT_COPYABLE(not a planned server),INVALID_PLAN,INVALID_NAME,INVALID_SOURCE(copy role or snapshots),WINDOWS_NEEDS_AGENT,INVALID_DISKSorTARGET_NOT_FOUND(subnet, security group or SSH key).SERVER_COPY_LIMIT_REACHEDis a 403: five copies are in progress. - 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
SERVER_COPY_UNAVAILABLEorMIGRATE_UNAVAILABLE: server copies are not available on this deployment yet.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/server-copies" \
-H "Authorization: Bearer $PANTECH_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"item_key": "item-key",
"ssh_key_id": "sshk_06gk3x9tq7m2v8r4y1c5d0zp8w"
}'{
"id": "sco_06gk3x9tq7m2v8r4y1c5d0zp8w",
"migration_id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
"item_key": "item-key",
"connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
"source": "agent",
"status": "waiting",
"failure": {
"code": "starter",
"message": "message"
},
"os_family": "linux",
"boot_mode": "bios",
"instance": {
"name": "web-1",
"plan_slug": "starter",
"region": "af-abj",
"subnet_id": "snet_06gk3x9tq7m2v8r4y1c5d0zp8w",
"security_group_id": "sg_06gk3x9tq7m2v8r4y1c5d0zp8w",
"ssh_key_id": "sshk_06gk3x9tq7m2v8r4y1c5d0zp8w",
"id": "sco_06gk3x9tq7m2v8r4y1c5d0zp8w",
"order_id": "ord_06gk3x9tq7m2v8r4y1c5d0zp8w"
},
"disks": [
{
"index": 1,
"role": "root",
"source": "source",
"size_bytes": 1610612736,
"snapshot_id": "snap_06gk3x9tq7m2v8r4y1c5d0zp8w",
"volume_id": "vol_06gk3x9tq7m2v8r4y1c5d0zp8w"
}
],
"flags": [
{
"code": "starter",
"blocking": true,
"message": "message"
}
],
"pass": {
"number": 100,
"kind": "full",
"started_at": "2026-10-03T09:30:00Z"
},
"pending_pass": "full",
"progress": {
"chunks_total": 1,
"chunks_done": 1,
"bytes_total": 1,
"bytes_uploaded": 1,
"wire_bytes": 1,
"eta_seconds": 1
},
"synced_at": "2026-10-03T09:30:00Z",
"expires_at": "2026-10-03T09:30:00Z",
"completed_at": "2026-10-03T09:30:00Z",
"created_at": "2026-10-03T09:30:00Z",
"updated_at": "2026-10-03T09:30:00Z"
}Get the AWS copy role template
The CloudFormation template of the AWS copy role for one planned server: it may read only snapshots tagged pantech-migrate-connection with this connection's id, and, with create_snapshots=true, also snapshot that server's own volumes and delete the snapshots it made. Deploy it after the connect stack; the discover role is never changed.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….
Path parameters
migration_idstringrequired
Query parameters
item_keystringrequiredcreate_snapshotsboolean
Response 200
The template.templatestringrequiredCloudFormation JSON.
snapshot_tagobjectrequired
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_FOUNDor no server with this item key. - 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
SERVER_COPY_UNAVAILABLEorMIGRATE_UNAVAILABLE: server copies are not available on this deployment yet.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/migrations/mig_06gk3x9tq7m2v8r4y1c5d0zp8w/server-copy-template?item_key=item-key" \
-H "Authorization: Bearer $PANTECH_API_KEY"{
"template": "template",
"snapshot_tag": {}
}List server copies
Every server copy in your organization, newest first, with its progress.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….
Response 200
Copies.dataarray of ServerCopyrequiredShow 20 child fieldsHide child fields
idstringrequiredsco_…migration_idstringrequireditem_keystringrequiredconnection_idstringrequiredsourcestringrequiredOne of
agent,aws_snapshot.statusstringrequiredOne of
waiting,copying,synced,importing,creating_instance,completed,failed,cancelled.failureobject or nullShow 2 child fieldsHide child fields
codestringmessagestring
os_familystringrequiredOne of
linux,windows.boot_modestring or nullOne of
bios,uefi,null.instanceobjectrequiredShow 8 child fieldsHide child fields
namestringplan_slugstringregionstringsubnet_idstring or nullsecurity_group_idstring or nullssh_key_idstring or nullidstring or nullSet once the instance is being created.
order_idstring or null
disksarray of objectrequiredShow 6 child fieldsHide child fields
indexintegerrolestringOne of
root,data.sourcestringsize_bytesintegersnapshot_idstring or nullvolume_idstring or null
flagsarray of objectrequiredShow 3 child fieldsHide child fields
codestringblockingbooleanmessagestring
passobject or nullShow 3 child fieldsHide child fields
numberintegerkindstringOne of
full,delta,final.started_atstring or null
pending_passstring or nullOne of
full,delta,final,null.progressobjectrequiredShow 6 child fieldsHide child fields
chunks_totalintegerchunks_doneintegerbytes_totalintegerbytes_uploadedintegerwire_bytesintegereta_secondsinteger or null
synced_atstring or nullexpires_atstringrequiredcompleted_atstring or nullcreated_atstringrequiredupdated_atstringrequired
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
SERVER_COPY_UNAVAILABLEorMIGRATE_UNAVAILABLE: server copies are not available on this deployment yet.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/server-copies" \
-H "Authorization: Bearer $PANTECH_API_KEY"{
"data": [
{
"id": "sco_06gk3x9tq7m2v8r4y1c5d0zp8w",
"migration_id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
"item_key": "item-key",
"connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
"source": "agent",
"status": "waiting",
"failure": {
"code": "starter",
"message": "message"
},
"os_family": "linux",
"boot_mode": "bios",
"instance": {
"name": "web-1",
"plan_slug": "starter",
"region": "af-abj",
"subnet_id": "snet_06gk3x9tq7m2v8r4y1c5d0zp8w",
"security_group_id": "sg_06gk3x9tq7m2v8r4y1c5d0zp8w",
"ssh_key_id": "sshk_06gk3x9tq7m2v8r4y1c5d0zp8w",
"id": "sco_06gk3x9tq7m2v8r4y1c5d0zp8w",
"order_id": "ord_06gk3x9tq7m2v8r4y1c5d0zp8w"
},
"disks": [
{
"index": 1,
"role": "root",
"source": "source",
"size_bytes": 1610612736,
"snapshot_id": "snap_06gk3x9tq7m2v8r4y1c5d0zp8w",
"volume_id": "vol_06gk3x9tq7m2v8r4y1c5d0zp8w"
}
],
"flags": [
{
"code": "starter",
"blocking": true,
"message": "message"
}
],
"pass": {
"number": 100,
"kind": "full",
"started_at": "2026-10-03T09:30:00Z"
},
"pending_pass": "full",
"progress": {
"chunks_total": 1,
"chunks_done": 1,
"bytes_total": 1,
"bytes_uploaded": 1,
"wire_bytes": 1,
"eta_seconds": 1
},
"synced_at": "2026-10-03T09:30:00Z",
"expires_at": "2026-10-03T09:30:00Z",
"completed_at": "2026-10-03T09:30:00Z",
"created_at": "2026-10-03T09:30:00Z",
"updated_at": "2026-10-03T09:30:00Z"
}
],
"next_cursor": null
}Get a server copy
One server copy: its status, the pre-flight's findings, the running pass and its progress (chunks, bytes and an estimate of the time left), and the instance once it is being created.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….
Path parameters
copy_idstringrequired
Response 200
The copy.idstringrequiredsco_…migration_idstringrequireditem_keystringrequiredconnection_idstringrequiredsourcestringrequiredOne of
agent,aws_snapshot.statusstringrequiredOne of
waiting,copying,synced,importing,creating_instance,completed,failed,cancelled.failureobject or nullShow 2 child fieldsHide child fields
codestringmessagestring
os_familystringrequiredOne of
linux,windows.boot_modestring or nullOne of
bios,uefi,null.instanceobjectrequiredShow 8 child fieldsHide child fields
namestringplan_slugstringregionstringsubnet_idstring or nullsecurity_group_idstring or nullssh_key_idstring or nullidstring or nullSet once the instance is being created.
order_idstring or null
disksarray of objectrequiredShow 6 child fieldsHide child fields
indexintegerrolestringOne of
root,data.sourcestringsize_bytesintegersnapshot_idstring or nullvolume_idstring or null
flagsarray of objectrequiredShow 3 child fieldsHide child fields
codestringblockingbooleanmessagestring
passobject or nullShow 3 child fieldsHide child fields
numberintegerkindstringOne of
full,delta,final.started_atstring or null
pending_passstring or nullOne of
full,delta,final,null.progressobjectrequiredShow 6 child fieldsHide child fields
chunks_totalintegerchunks_doneintegerbytes_totalintegerbytes_uploadedintegerwire_bytesintegereta_secondsinteger or null
synced_atstring or nullexpires_atstringrequiredcompleted_atstring or nullcreated_atstringrequiredupdated_atstringrequired
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
SERVER_COPY_NOT_FOUND: no server copy 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
SERVER_COPY_UNAVAILABLEorMIGRATE_UNAVAILABLE: server copies are not available on this deployment yet.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/server-copies/sco_06gk3x9tq7m2v8r4y1c5d0zp8w" \
-H "Authorization: Bearer $PANTECH_API_KEY"{
"id": "sco_06gk3x9tq7m2v8r4y1c5d0zp8w",
"migration_id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
"item_key": "item-key",
"connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
"source": "agent",
"status": "waiting",
"failure": {
"code": "starter",
"message": "message"
},
"os_family": "linux",
"boot_mode": "bios",
"instance": {
"name": "web-1",
"plan_slug": "starter",
"region": "af-abj",
"subnet_id": "snet_06gk3x9tq7m2v8r4y1c5d0zp8w",
"security_group_id": "sg_06gk3x9tq7m2v8r4y1c5d0zp8w",
"ssh_key_id": "sshk_06gk3x9tq7m2v8r4y1c5d0zp8w",
"id": "sco_06gk3x9tq7m2v8r4y1c5d0zp8w",
"order_id": "ord_06gk3x9tq7m2v8r4y1c5d0zp8w"
},
"disks": [
{
"index": 1,
"role": "root",
"source": "source",
"size_bytes": 1610612736,
"snapshot_id": "snap_06gk3x9tq7m2v8r4y1c5d0zp8w",
"volume_id": "vol_06gk3x9tq7m2v8r4y1c5d0zp8w"
}
],
"flags": [
{
"code": "starter",
"blocking": true,
"message": "message"
}
],
"pass": {
"number": 100,
"kind": "full",
"started_at": "2026-10-03T09:30:00Z"
},
"pending_pass": "full",
"progress": {
"chunks_total": 1,
"chunks_done": 1,
"bytes_total": 1,
"bytes_uploaded": 1,
"wire_bytes": 1,
"eta_seconds": 1
},
"synced_at": "2026-10-03T09:30:00Z",
"expires_at": "2026-10-03T09:30:00Z",
"completed_at": "2026-10-03T09:30:00Z",
"created_at": "2026-10-03T09:30:00Z",
"updated_at": "2026-10-03T09:30:00Z"
}Copy what changed
Asks for another pass that copies only what changed since the last one. For a copy from AWS snapshots that makes none itself, name each disk's new snapshot in snapshots. Owners and admins only.
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
copy_idstringrequired
Body
application/jsonsnapshotsobjectThe next pass's snapshot for each volume id, for an AWS copy that makes none itself.
Response 202
The copy, waiting for its next pass.idstringrequiredsco_…migration_idstringrequireditem_keystringrequiredconnection_idstringrequiredsourcestringrequiredOne of
agent,aws_snapshot.statusstringrequiredOne of
waiting,copying,synced,importing,creating_instance,completed,failed,cancelled.failureobject or nullShow 2 child fieldsHide child fields
codestringmessagestring
os_familystringrequiredOne of
linux,windows.boot_modestring or nullOne of
bios,uefi,null.instanceobjectrequiredShow 8 child fieldsHide child fields
namestringplan_slugstringregionstringsubnet_idstring or nullsecurity_group_idstring or nullssh_key_idstring or nullidstring or nullSet once the instance is being created.
order_idstring or null
disksarray of objectrequiredShow 6 child fieldsHide child fields
indexintegerrolestringOne of
root,data.sourcestringsize_bytesintegersnapshot_idstring or nullvolume_idstring or null
flagsarray of objectrequiredShow 3 child fieldsHide child fields
codestringblockingbooleanmessagestring
passobject or nullShow 3 child fieldsHide child fields
numberintegerkindstringOne of
full,delta,final.started_atstring or null
pending_passstring or nullOne of
full,delta,final,null.progressobjectrequiredShow 6 child fieldsHide child fields
chunks_totalintegerchunks_doneintegerbytes_totalintegerbytes_uploadedintegerwire_bytesintegereta_secondsinteger or null
synced_atstring or nullexpires_atstringrequiredcompleted_atstring or nullcreated_atstringrequiredupdated_atstringrequired
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
SERVER_COPY_NOT_FOUND: no server copy with this id exists in your organization. - 409
SERVER_COPY_BUSY: a pass is running or the server is being created.SERVER_COPY_NOT_SYNCED: the first pass has not finished.SERVER_COPY_FINISHED: the copy has finished, failed or been cancelled.IDEMPOTENCY_CONFLICT: this Idempotency-Key was used for another action. - 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
SERVER_COPY_UNAVAILABLEorMIGRATE_UNAVAILABLE: server copies are not available on this deployment yet.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/server-copies/sco_06gk3x9tq7m2v8r4y1c5d0zp8w/sync" \
-H "Authorization: Bearer $PANTECH_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{}'{
"id": "sco_06gk3x9tq7m2v8r4y1c5d0zp8w",
"migration_id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
"item_key": "item-key",
"connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
"source": "agent",
"status": "waiting",
"failure": {
"code": "starter",
"message": "message"
},
"os_family": "linux",
"boot_mode": "bios",
"instance": {
"name": "web-1",
"plan_slug": "starter",
"region": "af-abj",
"subnet_id": "snet_06gk3x9tq7m2v8r4y1c5d0zp8w",
"security_group_id": "sg_06gk3x9tq7m2v8r4y1c5d0zp8w",
"ssh_key_id": "sshk_06gk3x9tq7m2v8r4y1c5d0zp8w",
"id": "sco_06gk3x9tq7m2v8r4y1c5d0zp8w",
"order_id": "ord_06gk3x9tq7m2v8r4y1c5d0zp8w"
},
"disks": [
{
"index": 1,
"role": "root",
"source": "source",
"size_bytes": 1610612736,
"snapshot_id": "snap_06gk3x9tq7m2v8r4y1c5d0zp8w",
"volume_id": "vol_06gk3x9tq7m2v8r4y1c5d0zp8w"
}
],
"flags": [
{
"code": "starter",
"blocking": true,
"message": "message"
}
],
"pass": {
"number": 100,
"kind": "full",
"started_at": "2026-10-03T09:30:00Z"
},
"pending_pass": "full",
"progress": {
"chunks_total": 1,
"chunks_done": 1,
"bytes_total": 1,
"bytes_uploaded": 1,
"wire_bytes": 1,
"eta_seconds": 1
},
"synced_at": "2026-10-03T09:30:00Z",
"expires_at": "2026-10-03T09:30:00Z",
"completed_at": "2026-10-03T09:30:00Z",
"created_at": "2026-10-03T09:30:00Z",
"updated_at": "2026-10-03T09:30:00Z"
}Cut over
Asks for the last pass. Stop the application first: the agent flushes and freezes what it can, then copies the last changes, and Pantech builds the instance. Owners and admins only.
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
copy_idstringrequired
Body
application/jsonsnapshotsobjectThe next pass's snapshot for each volume id, for an AWS copy that makes none itself.
Response 202
The copy, waiting for its last pass.idstringrequiredsco_…migration_idstringrequireditem_keystringrequiredconnection_idstringrequiredsourcestringrequiredOne of
agent,aws_snapshot.statusstringrequiredOne of
waiting,copying,synced,importing,creating_instance,completed,failed,cancelled.failureobject or nullShow 2 child fieldsHide child fields
codestringmessagestring
os_familystringrequiredOne of
linux,windows.boot_modestring or nullOne of
bios,uefi,null.instanceobjectrequiredShow 8 child fieldsHide child fields
namestringplan_slugstringregionstringsubnet_idstring or nullsecurity_group_idstring or nullssh_key_idstring or nullidstring or nullSet once the instance is being created.
order_idstring or null
disksarray of objectrequiredShow 6 child fieldsHide child fields
indexintegerrolestringOne of
root,data.sourcestringsize_bytesintegersnapshot_idstring or nullvolume_idstring or null
flagsarray of objectrequiredShow 3 child fieldsHide child fields
codestringblockingbooleanmessagestring
passobject or nullShow 3 child fieldsHide child fields
numberintegerkindstringOne of
full,delta,final.started_atstring or null
pending_passstring or nullOne of
full,delta,final,null.progressobjectrequiredShow 6 child fieldsHide child fields
chunks_totalintegerchunks_doneintegerbytes_totalintegerbytes_uploadedintegerwire_bytesintegereta_secondsinteger or null
synced_atstring or nullexpires_atstringrequiredcompleted_atstring or nullcreated_atstringrequiredupdated_atstringrequired
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
SERVER_COPY_NOT_FOUND: no server copy with this id exists in your organization. - 409
SERVER_COPY_BUSY: a pass is running or the server is being created.SERVER_COPY_NOT_SYNCED: the first pass has not finished.SERVER_COPY_FINISHED: the copy has finished, failed or been cancelled.IDEMPOTENCY_CONFLICT: this Idempotency-Key was used for another action. - 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
SERVER_COPY_UNAVAILABLEorMIGRATE_UNAVAILABLE: server copies are not available on this deployment yet.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/server-copies/sco_06gk3x9tq7m2v8r4y1c5d0zp8w/cutover" \
-H "Authorization: Bearer $PANTECH_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{}'{
"id": "sco_06gk3x9tq7m2v8r4y1c5d0zp8w",
"migration_id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
"item_key": "item-key",
"connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
"source": "agent",
"status": "waiting",
"failure": {
"code": "starter",
"message": "message"
},
"os_family": "linux",
"boot_mode": "bios",
"instance": {
"name": "web-1",
"plan_slug": "starter",
"region": "af-abj",
"subnet_id": "snet_06gk3x9tq7m2v8r4y1c5d0zp8w",
"security_group_id": "sg_06gk3x9tq7m2v8r4y1c5d0zp8w",
"ssh_key_id": "sshk_06gk3x9tq7m2v8r4y1c5d0zp8w",
"id": "sco_06gk3x9tq7m2v8r4y1c5d0zp8w",
"order_id": "ord_06gk3x9tq7m2v8r4y1c5d0zp8w"
},
"disks": [
{
"index": 1,
"role": "root",
"source": "source",
"size_bytes": 1610612736,
"snapshot_id": "snap_06gk3x9tq7m2v8r4y1c5d0zp8w",
"volume_id": "vol_06gk3x9tq7m2v8r4y1c5d0zp8w"
}
],
"flags": [
{
"code": "starter",
"blocking": true,
"message": "message"
}
],
"pass": {
"number": 100,
"kind": "full",
"started_at": "2026-10-03T09:30:00Z"
},
"pending_pass": "full",
"progress": {
"chunks_total": 1,
"chunks_done": 1,
"bytes_total": 1,
"bytes_uploaded": 1,
"wire_bytes": 1,
"eta_seconds": 1
},
"synced_at": "2026-10-03T09:30:00Z",
"expires_at": "2026-10-03T09:30:00Z",
"completed_at": "2026-10-03T09:30:00Z",
"created_at": "2026-10-03T09:30:00Z",
"updated_at": "2026-10-03T09:30:00Z"
}Cancel a server copy
Stops the copy and deletes everything Pantech staged for it. Refused once the instance is being created: it is yours then, delete it as any instance. Owners and admins only.
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
copy_idstringrequired
Body
application/jsonsnapshotsobjectThe next pass's snapshot for each volume id, for an AWS copy that makes none itself.
Response 202
The cancelled copy.idstringrequiredsco_…migration_idstringrequireditem_keystringrequiredconnection_idstringrequiredsourcestringrequiredOne of
agent,aws_snapshot.statusstringrequiredOne of
waiting,copying,synced,importing,creating_instance,completed,failed,cancelled.failureobject or nullShow 2 child fieldsHide child fields
codestringmessagestring
os_familystringrequiredOne of
linux,windows.boot_modestring or nullOne of
bios,uefi,null.instanceobjectrequiredShow 8 child fieldsHide child fields
namestringplan_slugstringregionstringsubnet_idstring or nullsecurity_group_idstring or nullssh_key_idstring or nullidstring or nullSet once the instance is being created.
order_idstring or null
disksarray of objectrequiredShow 6 child fieldsHide child fields
indexintegerrolestringOne of
root,data.sourcestringsize_bytesintegersnapshot_idstring or nullvolume_idstring or null
flagsarray of objectrequiredShow 3 child fieldsHide child fields
codestringblockingbooleanmessagestring
passobject or nullShow 3 child fieldsHide child fields
numberintegerkindstringOne of
full,delta,final.started_atstring or null
pending_passstring or nullOne of
full,delta,final,null.progressobjectrequiredShow 6 child fieldsHide child fields
chunks_totalintegerchunks_doneintegerbytes_totalintegerbytes_uploadedintegerwire_bytesintegereta_secondsinteger or null
synced_atstring or nullexpires_atstringrequiredcompleted_atstring or nullcreated_atstringrequiredupdated_atstringrequired
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
SERVER_COPY_NOT_FOUND: no server copy with this id exists in your organization. - 409
SERVER_COPY_BUSY: a pass is running or the server is being created.SERVER_COPY_NOT_SYNCED: the first pass has not finished.SERVER_COPY_FINISHED: the copy has finished, failed or been cancelled.IDEMPOTENCY_CONFLICT: this Idempotency-Key was used for another action. - 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
SERVER_COPY_UNAVAILABLEorMIGRATE_UNAVAILABLE: server copies are not available on this deployment yet.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/server-copies/sco_06gk3x9tq7m2v8r4y1c5d0zp8w/cancel" \
-H "Authorization: Bearer $PANTECH_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{}'{
"id": "sco_06gk3x9tq7m2v8r4y1c5d0zp8w",
"migration_id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
"item_key": "item-key",
"connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
"source": "agent",
"status": "waiting",
"failure": {
"code": "starter",
"message": "message"
},
"os_family": "linux",
"boot_mode": "bios",
"instance": {
"name": "web-1",
"plan_slug": "starter",
"region": "af-abj",
"subnet_id": "snet_06gk3x9tq7m2v8r4y1c5d0zp8w",
"security_group_id": "sg_06gk3x9tq7m2v8r4y1c5d0zp8w",
"ssh_key_id": "sshk_06gk3x9tq7m2v8r4y1c5d0zp8w",
"id": "sco_06gk3x9tq7m2v8r4y1c5d0zp8w",
"order_id": "ord_06gk3x9tq7m2v8r4y1c5d0zp8w"
},
"disks": [
{
"index": 1,
"role": "root",
"source": "source",
"size_bytes": 1610612736,
"snapshot_id": "snap_06gk3x9tq7m2v8r4y1c5d0zp8w",
"volume_id": "vol_06gk3x9tq7m2v8r4y1c5d0zp8w"
}
],
"flags": [
{
"code": "starter",
"blocking": true,
"message": "message"
}
],
"pass": {
"number": 100,
"kind": "full",
"started_at": "2026-10-03T09:30:00Z"
},
"pending_pass": "full",
"progress": {
"chunks_total": 1,
"chunks_done": 1,
"bytes_total": 1,
"bytes_uploaded": 1,
"wire_bytes": 1,
"eta_seconds": 1
},
"synced_at": "2026-10-03T09:30:00Z",
"expires_at": "2026-10-03T09:30:00Z",
"completed_at": "2026-10-03T09:30:00Z",
"created_at": "2026-10-03T09:30:00Z",
"updated_at": "2026-10-03T09:30:00Z"
}