Documentation

esc
    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

    • idstringrequired

      sco_…

    • migration_idstringrequired
    • item_keystringrequired
    • connection_idstringrequired
    • sourcestringrequired

      One of agent, aws_snapshot.

    • statusstringrequired

      One of waiting, copying, synced, importing, creating_instance, completed, failed, cancelled.

    • failureobject or null
      Show 2 child fields
      • codestring
      • messagestring
    • os_familystringrequired

      One of linux, windows.

    • boot_modestring or null

      One of bios, uefi, null.

    • instanceobjectrequired
      Show 8 child fields
      • namestring
      • plan_slugstring
      • regionstring
      • subnet_idstring or null
      • security_group_idstring or null
      • ssh_key_idstring or null
      • idstring or null

        Set once the instance is being created.

      • order_idstring or null
    • disksarray of objectrequired
      Show 6 child fields
      • indexinteger
      • rolestring

        One of root, data.

      • sourcestring
      • size_bytesinteger
      • snapshot_idstring or null
      • volume_idstring or null
    • flagsarray of objectrequired
      Show 3 child fields
      • codestring
      • blockingboolean
      • messagestring
    • passobject or null
      Show 3 child fields
      • numberinteger
      • kindstring

        One of full, delta, final.

      • started_atstring or null
    • pending_passstring or null

      One of full, delta, final, null.

    • progressobjectrequired
      Show 6 child fields
      • chunks_totalinteger
      • chunks_doneinteger
      • bytes_totalinteger
      • bytes_uploadedinteger
      • wire_bytesinteger
      • eta_secondsinteger or null
    • synced_atstring or null
    • expires_atstringrequired
    • completed_atstring or null
    • created_atstringrequired
    • updated_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.

    POST/public/v1/migrations/{migration_id}/server-copies
    Write keyNeeds Idempotency-KeyReturns201Created

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    • Idempotency-Keystringrequired

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

      At most 255 characters.

    Path parameters

    • migration_idstringrequired

    Body

    application/json
    • item_keystringrequired

      The planned server's item key.

    • sourcestring

      One of agent, aws_snapshot. Defaults to agent.

    • namestring

      The new instance's name; the source's when empty.

    • plan_slugstring

      Overrides the item's plan.

    • subnet_idstring
    • security_group_idstring
    • ssh_key_idstring

      Optional. The copied disk keeps its own users and keys.

    • awsServerCopyAWSSource
      Show 3 child fields
      • copy_role_arnstringrequired

        The copy stack's CopyRoleArn output, never the discover role.

      • create_snapshotsboolean

        The copy role may snapshot the server's volumes itself.

      • snapshotsobject

        The first pass's snapshot for each volume id, tagged pantech-migrate-connection.

    Response 201

    The copy, waiting for its first pass.
    • idstringrequired

      sco_…

    • migration_idstringrequired
    • item_keystringrequired
    • connection_idstringrequired
    • sourcestringrequired

      One of agent, aws_snapshot.

    • statusstringrequired

      One of waiting, copying, synced, importing, creating_instance, completed, failed, cancelled.

    • failureobject or null
      Show 2 child fields
      • codestring
      • messagestring
    • os_familystringrequired

      One of linux, windows.

    • boot_modestring or null

      One of bios, uefi, null.

    • instanceobjectrequired
      Show 8 child fields
      • namestring
      • plan_slugstring
      • regionstring
      • subnet_idstring or null
      • security_group_idstring or null
      • ssh_key_idstring or null
      • idstring or null

        Set once the instance is being created.

      • order_idstring or null
    • disksarray of objectrequired
      Show 6 child fields
      • indexinteger
      • rolestring

        One of root, data.

      • sourcestring
      • size_bytesinteger
      • snapshot_idstring or null
      • volume_idstring or null
    • flagsarray of objectrequired
      Show 3 child fields
      • codestring
      • blockingboolean
      • messagestring
    • passobject or null
      Show 3 child fields
      • numberinteger
      • kindstring

        One of full, delta, final.

      • started_atstring or null
    • pending_passstring or null

      One of full, delta, final, null.

    • progressobjectrequired
      Show 6 child fields
      • chunks_totalinteger
      • chunks_doneinteger
      • bytes_totalinteger
      • bytes_uploadedinteger
      • wire_bytesinteger
      • eta_secondsinteger or null
    • synced_atstring or null
    • expires_atstringrequired
    • completed_atstring or null
    • created_atstringrequired
    • updated_atstringrequired

    Errors

    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (read for GET, write for changes; an AI app's key also needs delete for a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access. FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin. AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps.
    • 404MIGRATION_NOT_FOUND: no migration with this id exists in your organization.
    • 409SERVER_COPY_IN_PROGRESS: this server already has a copy in progress. IDEMPOTENCY_CONFLICT: this Idempotency-Key was used for another request.
    • 422VALIDATION_FAILED: NOT_COPYABLE (not a planned server), INVALID_PLAN, INVALID_NAME, INVALID_SOURCE (copy role or snapshots), WINDOWS_NEEDS_AGENT, INVALID_DISKS or TARGET_NOT_FOUND (subnet, security group or SSH key). SERVER_COPY_LIMIT_REACHED is a 403: five copies are in progress.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503SERVER_COPY_UNAVAILABLE or MIGRATE_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.

    Authorization
    Path
    Body
    Idempotency
    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"
      }'
    Response 201
    {
      "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.

    GET/public/v1/migrations/{migration_id}/server-copy-template
    Read keyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    Path parameters

    • migration_idstringrequired

    Query parameters

    • item_keystringrequired
    • create_snapshotsboolean

    Response 200

    The template.
    • templatestringrequired

      CloudFormation JSON.

    • snapshot_tagobjectrequired

    Errors

    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (read for GET, write for changes; an AI app's key also needs delete for a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access. FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin. AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps.
    • 404MIGRATION_NOT_FOUND or no server with this item key.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503SERVER_COPY_UNAVAILABLE or MIGRATE_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.

    Authorization
    Path
    Query
    curl "https://api.pantechdynamics.com/public/v1/migrations/mig_06gk3x9tq7m2v8r4y1c5d0zp8w/server-copy-template?item_key=item-key" \
      -H "Authorization: Bearer $PANTECH_API_KEY"
    Response 200
    {
      "template": "template",
      "snapshot_tag": {}
    }

    List server copies

    Every server copy in your organization, newest first, with its progress.

    GET/public/v1/server-copies
    Read keyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    Response 200

    Copies.
    • dataarray of ServerCopyrequired
      Show 20 child fields
      • idstringrequired

        sco_…

      • migration_idstringrequired
      • item_keystringrequired
      • connection_idstringrequired
      • sourcestringrequired

        One of agent, aws_snapshot.

      • statusstringrequired

        One of waiting, copying, synced, importing, creating_instance, completed, failed, cancelled.

      • failureobject or null
        Show 2 child fields
        • codestring
        • messagestring
      • os_familystringrequired

        One of linux, windows.

      • boot_modestring or null

        One of bios, uefi, null.

      • instanceobjectrequired
        Show 8 child fields
        • namestring
        • plan_slugstring
        • regionstring
        • subnet_idstring or null
        • security_group_idstring or null
        • ssh_key_idstring or null
        • idstring or null

          Set once the instance is being created.

        • order_idstring or null
      • disksarray of objectrequired
        Show 6 child fields
        • indexinteger
        • rolestring

          One of root, data.

        • sourcestring
        • size_bytesinteger
        • snapshot_idstring or null
        • volume_idstring or null
      • flagsarray of objectrequired
        Show 3 child fields
        • codestring
        • blockingboolean
        • messagestring
      • passobject or null
        Show 3 child fields
        • numberinteger
        • kindstring

          One of full, delta, final.

        • started_atstring or null
      • pending_passstring or null

        One of full, delta, final, null.

      • progressobjectrequired
        Show 6 child fields
        • chunks_totalinteger
        • chunks_doneinteger
        • bytes_totalinteger
        • bytes_uploadedinteger
        • wire_bytesinteger
        • eta_secondsinteger or null
      • synced_atstring or null
      • expires_atstringrequired
      • completed_atstring or null
      • created_atstringrequired
      • updated_atstringrequired
    • next_cursorstring or nullrequired

      Always null: this list is returned whole.

    Errors

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

    Authorization
    curl "https://api.pantechdynamics.com/public/v1/server-copies" \
      -H "Authorization: Bearer $PANTECH_API_KEY"
    Response 200
    {
      "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.

    GET/public/v1/server-copies/{copy_id}
    Read keyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    Path parameters

    • copy_idstringrequired

    Response 200

    The copy.
    • idstringrequired

      sco_…

    • migration_idstringrequired
    • item_keystringrequired
    • connection_idstringrequired
    • sourcestringrequired

      One of agent, aws_snapshot.

    • statusstringrequired

      One of waiting, copying, synced, importing, creating_instance, completed, failed, cancelled.

    • failureobject or null
      Show 2 child fields
      • codestring
      • messagestring
    • os_familystringrequired

      One of linux, windows.

    • boot_modestring or null

      One of bios, uefi, null.

    • instanceobjectrequired
      Show 8 child fields
      • namestring
      • plan_slugstring
      • regionstring
      • subnet_idstring or null
      • security_group_idstring or null
      • ssh_key_idstring or null
      • idstring or null

        Set once the instance is being created.

      • order_idstring or null
    • disksarray of objectrequired
      Show 6 child fields
      • indexinteger
      • rolestring

        One of root, data.

      • sourcestring
      • size_bytesinteger
      • snapshot_idstring or null
      • volume_idstring or null
    • flagsarray of objectrequired
      Show 3 child fields
      • codestring
      • blockingboolean
      • messagestring
    • passobject or null
      Show 3 child fields
      • numberinteger
      • kindstring

        One of full, delta, final.

      • started_atstring or null
    • pending_passstring or null

      One of full, delta, final, null.

    • progressobjectrequired
      Show 6 child fields
      • chunks_totalinteger
      • chunks_doneinteger
      • bytes_totalinteger
      • bytes_uploadedinteger
      • wire_bytesinteger
      • eta_secondsinteger or null
    • synced_atstring or null
    • expires_atstringrequired
    • completed_atstring or null
    • created_atstringrequired
    • updated_atstringrequired

    Errors

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

    Authorization
    Path
    curl "https://api.pantechdynamics.com/public/v1/server-copies/sco_06gk3x9tq7m2v8r4y1c5d0zp8w" \
      -H "Authorization: Bearer $PANTECH_API_KEY"
    Response 200
    {
      "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.

    POST/public/v1/server-copies/{copy_id}/sync
    Write keyNeeds Idempotency-KeyReturns202Accepted

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    • Idempotency-Keystringrequired

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

      At most 255 characters.

    Path parameters

    • copy_idstringrequired

    Body

    application/json
    • snapshotsobject

      The 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.
    • idstringrequired

      sco_…

    • migration_idstringrequired
    • item_keystringrequired
    • connection_idstringrequired
    • sourcestringrequired

      One of agent, aws_snapshot.

    • statusstringrequired

      One of waiting, copying, synced, importing, creating_instance, completed, failed, cancelled.

    • failureobject or null
      Show 2 child fields
      • codestring
      • messagestring
    • os_familystringrequired

      One of linux, windows.

    • boot_modestring or null

      One of bios, uefi, null.

    • instanceobjectrequired
      Show 8 child fields
      • namestring
      • plan_slugstring
      • regionstring
      • subnet_idstring or null
      • security_group_idstring or null
      • ssh_key_idstring or null
      • idstring or null

        Set once the instance is being created.

      • order_idstring or null
    • disksarray of objectrequired
      Show 6 child fields
      • indexinteger
      • rolestring

        One of root, data.

      • sourcestring
      • size_bytesinteger
      • snapshot_idstring or null
      • volume_idstring or null
    • flagsarray of objectrequired
      Show 3 child fields
      • codestring
      • blockingboolean
      • messagestring
    • passobject or null
      Show 3 child fields
      • numberinteger
      • kindstring

        One of full, delta, final.

      • started_atstring or null
    • pending_passstring or null

      One of full, delta, final, null.

    • progressobjectrequired
      Show 6 child fields
      • chunks_totalinteger
      • chunks_doneinteger
      • bytes_totalinteger
      • bytes_uploadedinteger
      • wire_bytesinteger
      • eta_secondsinteger or null
    • synced_atstring or null
    • expires_atstringrequired
    • completed_atstring or null
    • created_atstringrequired
    • updated_atstringrequired

    Errors

    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (read for GET, write for changes; an AI app's key also needs delete for a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access. FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin. AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps.
    • 404SERVER_COPY_NOT_FOUND: no server copy with this id exists in your organization.
    • 409SERVER_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.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503SERVER_COPY_UNAVAILABLE or MIGRATE_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.

    Authorization
    Path
    Body
    Idempotency
    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 '{}'
    Response 202
    {
      "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.

    POST/public/v1/server-copies/{copy_id}/cutover
    Write keyNeeds Idempotency-KeyReturns202Accepted

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    • Idempotency-Keystringrequired

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

      At most 255 characters.

    Path parameters

    • copy_idstringrequired

    Body

    application/json
    • snapshotsobject

      The 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.
    • idstringrequired

      sco_…

    • migration_idstringrequired
    • item_keystringrequired
    • connection_idstringrequired
    • sourcestringrequired

      One of agent, aws_snapshot.

    • statusstringrequired

      One of waiting, copying, synced, importing, creating_instance, completed, failed, cancelled.

    • failureobject or null
      Show 2 child fields
      • codestring
      • messagestring
    • os_familystringrequired

      One of linux, windows.

    • boot_modestring or null

      One of bios, uefi, null.

    • instanceobjectrequired
      Show 8 child fields
      • namestring
      • plan_slugstring
      • regionstring
      • subnet_idstring or null
      • security_group_idstring or null
      • ssh_key_idstring or null
      • idstring or null

        Set once the instance is being created.

      • order_idstring or null
    • disksarray of objectrequired
      Show 6 child fields
      • indexinteger
      • rolestring

        One of root, data.

      • sourcestring
      • size_bytesinteger
      • snapshot_idstring or null
      • volume_idstring or null
    • flagsarray of objectrequired
      Show 3 child fields
      • codestring
      • blockingboolean
      • messagestring
    • passobject or null
      Show 3 child fields
      • numberinteger
      • kindstring

        One of full, delta, final.

      • started_atstring or null
    • pending_passstring or null

      One of full, delta, final, null.

    • progressobjectrequired
      Show 6 child fields
      • chunks_totalinteger
      • chunks_doneinteger
      • bytes_totalinteger
      • bytes_uploadedinteger
      • wire_bytesinteger
      • eta_secondsinteger or null
    • synced_atstring or null
    • expires_atstringrequired
    • completed_atstring or null
    • created_atstringrequired
    • updated_atstringrequired

    Errors

    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (read for GET, write for changes; an AI app's key also needs delete for a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access. FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin. AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps.
    • 404SERVER_COPY_NOT_FOUND: no server copy with this id exists in your organization.
    • 409SERVER_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.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503SERVER_COPY_UNAVAILABLE or MIGRATE_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.

    Authorization
    Path
    Body
    Idempotency
    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 '{}'
    Response 202
    {
      "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.

    POST/public/v1/server-copies/{copy_id}/cancel
    Write keyNeeds Idempotency-KeyReturns202Accepted

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    • Idempotency-Keystringrequired

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

      At most 255 characters.

    Path parameters

    • copy_idstringrequired

    Body

    application/json
    • snapshotsobject

      The next pass's snapshot for each volume id, for an AWS copy that makes none itself.

    Response 202

    The cancelled copy.
    • idstringrequired

      sco_…

    • migration_idstringrequired
    • item_keystringrequired
    • connection_idstringrequired
    • sourcestringrequired

      One of agent, aws_snapshot.

    • statusstringrequired

      One of waiting, copying, synced, importing, creating_instance, completed, failed, cancelled.

    • failureobject or null
      Show 2 child fields
      • codestring
      • messagestring
    • os_familystringrequired

      One of linux, windows.

    • boot_modestring or null

      One of bios, uefi, null.

    • instanceobjectrequired
      Show 8 child fields
      • namestring
      • plan_slugstring
      • regionstring
      • subnet_idstring or null
      • security_group_idstring or null
      • ssh_key_idstring or null
      • idstring or null

        Set once the instance is being created.

      • order_idstring or null
    • disksarray of objectrequired
      Show 6 child fields
      • indexinteger
      • rolestring

        One of root, data.

      • sourcestring
      • size_bytesinteger
      • snapshot_idstring or null
      • volume_idstring or null
    • flagsarray of objectrequired
      Show 3 child fields
      • codestring
      • blockingboolean
      • messagestring
    • passobject or null
      Show 3 child fields
      • numberinteger
      • kindstring

        One of full, delta, final.

      • started_atstring or null
    • pending_passstring or null

      One of full, delta, final, null.

    • progressobjectrequired
      Show 6 child fields
      • chunks_totalinteger
      • chunks_doneinteger
      • bytes_totalinteger
      • bytes_uploadedinteger
      • wire_bytesinteger
      • eta_secondsinteger or null
    • synced_atstring or null
    • expires_atstringrequired
    • completed_atstring or null
    • created_atstringrequired
    • updated_atstringrequired

    Errors

    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (read for GET, write for changes; an AI app's key also needs delete for a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access. FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin. AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps.
    • 404SERVER_COPY_NOT_FOUND: no server copy with this id exists in your organization.
    • 409SERVER_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.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503SERVER_COPY_UNAVAILABLE or MIGRATE_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.

    Authorization
    Path
    Body
    Idempotency
    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 '{}'
    Response 202
    {
      "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"
    }

    Was this page helpful?

    Updated