Documentation

esc
    API reference · Move to Pantech / Migrate

    Migrate

    Connect another cloud without sharing keys, scan what runs there, plan the move with prices and a Terraform export, and invite the people it lists.

    GET /cloud-providers lists every cloud Migrate reads and how. Create a cloud connection with its provider, then follow its setup. For AWS, Google Cloud, Azure and Huawei Cloud (access: federated) you run the setup in your own cloud and send back what it prints with PATCH: a role ARN, or the gcp, azure or huawei details. Pantech then reads your cloud with five-minute tokens it signs for this connection only. For DigitalOcean, Hetzner Cloud, Linode, Vultr, Contabo and OpenStack (access: agent) you run the Pantech Migrate agent with a read-only token that never leaves your machine, enrolled with a one-time code. Wait for status connected, start a scan, follow it until it succeeded, then plan a migration from it. A plan creates nothing: review it, edit it, export it as Terraform, and invite the people it lists. Moving data is on the bucket imports, server copies, database imports and Kubernetes moves pages. See Move to Pantech.

    The cloud provider object

    Fields

    • slugstringrequired

      One of aws, gcp, azure, huawei, digitalocean, hetzner, linode, vultr, contabo, openstack.

    • namestringrequired
    • accessstringrequired

      One of federated, agent.

    • cost_readablebooleanrequired

      Whether a scan reads the source's spend. When false the comparison says the spend is not available.

    • people_readablebooleanrequired

      Whether a scan lists the people with access. When false, add them to the plan by hand.

    • availablebooleanrequired

      Whether this deployment can connect it now.

    The cloud connection object

    Fields

    • idstringrequired
    • providerstringrequired

      One of aws, gcp, azure, huawei, digitalocean, hetzner, linode, vultr, contabo, openstack.

    • namestringrequired
    • statusstringrequired

      awaiting_role (federated providers: waiting for what the setup printed), awaiting_agent (other clouds: no agent enrolled; on AWS, Google Cloud, Azure and Huawei Cloud an agent never changes the status), verifying, connected or failed.

      One of awaiting_role, awaiting_agent, verifying, connected, failed.

    • failureCloudFailurerequired

      Why the last check or scan failed; null when it didn't.

      Show 2 child fields
      • codestringrequired

        One of assume_role_denied, permission_missing, provider_unavailable, scan_too_large, internal, agent_offline, token_rejected, invalid_upload.

      • messagestringrequired

        What to do about it.

    • role_arnstring or nullrequired
    • aws_account_idstring or nullrequired

      Set for AWS connections only; see external_account_id.

    • external_account_idstring or nullrequired

      The source account: an AWS account, a Google Cloud pool's project number, an Azure tenant, or what the agent reported.

    • gcpCloudGCPFederationrequired

      What the Google Cloud setup printed.

      Show 5 child fields
      • project_numberstringrequired
      • pool_idstringrequired
      • provider_idstringrequired
      • service_account_emailstringrequired
      • project_idsarray of stringrequired

        The projects to scan, 1 to 20.

    • azureCloudAzureFederationrequired

      What the Azure setup printed.

      Show 3 child fields
      • tenant_idstringrequired
      • client_idstringrequired

        The app registration's application (client) ID.

      • subscription_idsarray of stringrequired

        The subscriptions to scan, 1 to 20.

    • huaweiCloudHuaweiFederationrequired

      Your Huawei Cloud identity provider and the projects to scan.

      Show 2 child fields
      • identity_provider_idstringrequired
      • projectsarray of objectrequired

        1 to 20 region projects.

        Show 2 child fields
        • regionstringrequired
        • idstringrequired
    • agentCloudAgentStatusrequired

      The connection's enrolled agent; null when none is.

      Show 7 child fields
      • idstringrequired
      • onlinebooleanrequired

        Whether it polled in the last 2 minutes.

      • agent_versionstringrequired
      • platformstringrequired
      • enrolled_atstringrequired
      • last_seen_atstringrequired
      • credential_expires_atstringrequired
    • verified_atstring or nullrequired
    • created_atstringrequired
    • updated_atstringrequired
    • setupCloudConnectionSetuprequired

      What you run in your own cloud to connect it. Every setup grants read-only access, listed one permission at a time in permissions; none creates a key Pantech holds.

      Show 10 child fields
      • accessstringrequired

        federated: Pantech reads your cloud with 5-minute tokens it signs for this connection only (AWS, Google Cloud, Azure, Huawei Cloud). agent: you run the Pantech Migrate agent, which keeps your read-only token on your machine.

        One of federated, agent.

      • issuer_urlstring or nullrequired

        Pantech's identity provider URL, which your cloud trusts; null for agent providers.

      • audiencestring or nullrequired

        The audience every token carries; null for agent providers.

      • subjectstringrequired

        The subject your trust policy requires: this connection's id.

      • quick_create_urlstring or nullrequired

        Opens AWS's create-stack page with this template and connection filled in; null when not offered.

      • templatestringrequired

        The main setup file: AWS's CloudFormation template (JSON), Google Cloud's gcloud script, Azure's Azure CLI script, Huawei Cloud's steps, or, for agent providers, how to make a read-only token.

      • template_formatstringrequired

        One of cloudformation, shell, markdown, agent.

      • filesarray of objectrequired

        Further setup files, such as a Terraform version of the setup or JSON documents to paste.

        Show 2 child fields
        • namestringrequired
        • contentstringrequired
      • permissionsarray of stringrequired

        Every read-only permission the setup grants.

      • agentCloudAgentSetuprequired

        How to run the connection's Pantech Migrate agent. Every connection may have one: for AWS, Google Cloud, Azure and Huawei Cloud it runs server copies, database imports and Kubernetes moves and needs no cloud credential (token_variables is empty); for the other clouds it also scans, with your read-only credential. Null when the agent is not available.

        Show 8 child fields
        • imagestringrequired

          The agent's container image.

        • download_urlstring or nullrequired

          Where the agent's binaries are published.

        • api_urlstringrequired
        • token_variablesarray of stringrequired

          The environment variables the agent reads your read-only credential from, on your machine. It is never sent to Pantech. Empty for AWS, Google Cloud, Azure and Huawei Cloud, where Pantech scans without one.

        • token_how_tostringrequired
        • enroll_commandstringrequired

          Contains <ENROLLMENT_CODE> where the one-time code goes.

        • run_commandstringrequired
        • container_commandstringrequired

    The cloud scan object

    Fields

    • idstringrequired
    • connection_idstringrequired
    • runnerstringrequired

      worker (Pantech read your cloud) or agent (your agent did).

      One of worker, agent.

    • statusstringrequired

      One of queued, running, succeeded, failed.

    • failureCloudFailurerequired

      Why the last check or scan failed; null when it didn't.

      Show 2 child fields
      • codestringrequired

        One of assume_role_denied, permission_missing, provider_unavailable, scan_too_large, internal, agent_offline, token_rejected, invalid_upload.

      • messagestringrequired

        What to do about it.

    • created_atstringrequired
    • started_atstring or nullrequired
    • finished_atstring or nullrequired
    • providerstring or nullrequired
    • aws_account_idstring or nullrequired
    • external_account_idstring or nullrequired
    • regionsarray of stringrequired

      Regions read.

    • countsCloudScanCountsrequired
      Show 12 child fields
      • instancesintegerrequired
      • volumesintegerrequired
      • networksintegerrequired
      • subnetsintegerrequired
      • security_groupsintegerrequired
      • public_ipsintegerrequired
      • load_balancersintegerrequired
      • databasesintegerrequired
      • bucketsintegerrequired
      • usersintegerrequired
      • ssh_keysintegerrequired
      • kubernetes_clustersintegerrequired
    • costCloudCostrequired

      The source account's whole bill, every service.

      Show 3 child fields
      • currencystringrequired
      • average_monthly_minorintegerrequired

        Average of the months, in minor units of currency.

      • monthsarray of CloudCostMonthrequired
        Show 2 child fields
        • monthstringrequired

          YYYY-MM.

        • amount_minorintegerrequired
    • warningsarray of stringrequired

      Parts not read, e.g. cost_unavailable or region_denied:eu-south-1.

    • truncatedarray of stringrequired

      Kinds cut at 2,000 items.

    • inventoryCloudInventoryrequired

      Everything a scan found.

      Show 12 child fields
      • instancesarray of objectrequired
        Show 19 child fields
        • idstringrequired
        • namestring or nullrequired
        • regionstringrequired
        • zonestring or nullrequired
        • instance_typestringrequired
        • statestringrequired
        • vcpuinteger or nullrequired
        • memory_mibinteger or nullrequired
        • architecturestringrequired
        • platformstringrequired
        • os_namestring or nullrequired
        • volume_idsarray of stringrequired
        • network_idstring or nullrequired
        • subnet_idstring or nullrequired
        • security_group_idsarray of stringrequired
        • public_ipstring or nullrequired
        • private_ipstring or nullrequired
        • key_namestring or nullrequired
        • launched_atstring or nullrequired
      • volumesarray of objectrequired
        Show 8 child fields
        • idstringrequired
        • regionstringrequired
        • zonestring or nullrequired
        • typestringrequired
        • size_gbintegerrequired
        • attached_tostring or nullrequired
        • devicestring or nullrequired
        • encryptedbooleanrequired
      • networksarray of objectrequired
        Show 5 child fields
        • idstringrequired
        • regionstringrequired
        • namestring or nullrequired
        • cidrstringrequired
        • is_defaultbooleanrequired
      • subnetsarray of objectrequired
        Show 7 child fields
        • idstringrequired
        • regionstringrequired
        • network_idstringrequired
        • namestring or nullrequired
        • cidrstringrequired
        • zonestring or nullrequired
        • maps_public_ipbooleanrequired
      • security_groupsarray of objectrequired
        Show 6 child fields
        • idstringrequired
        • regionstringrequired
        • network_idstring or nullrequired
        • namestringrequired
        • descriptionstring or nullrequired
        • rulesarray of objectrequired
          Show 8 child fields
          • directionstringrequired

            One of ingress, egress.

          • protocolstringrequired
          • from_portinteger or nullrequired
          • to_portinteger or nullrequired
          • cidrstring or nullrequired
          • ipv6_cidrstring or nullrequired
          • source_group_idstring or nullrequired
          • prefix_list_idstring or nullrequired
      • public_ipsarray of objectrequired
        Show 4 child fields
        • idstringrequired
        • regionstringrequired
        • addressstringrequired
        • instance_idstring or nullrequired
      • load_balancersarray of objectrequired
        Show 7 child fields
        • idstringrequired
        • regionstringrequired
        • namestringrequired
        • typestringrequired
        • schemestringrequired
        • network_idstring or nullrequired
        • listenersarray of MigrationListenerrequired
          Show 2 child fields
          • protocolstringrequired
          • portintegerrequired
      • databasesarray of objectrequired
        Show 10 child fields
        • idstringrequired
        • regionstringrequired
        • enginestringrequired
        • engine_versionstringrequired
        • instance_classstringrequired
        • vcpuinteger or nullrequired
        • memory_mibinteger or nullrequired
        • storage_gbintegerrequired
        • multi_azbooleanrequired
        • publicly_accessiblebooleanrequired
      • bucketsarray of objectrequired
        Show 3 child fields
        • namestringrequired
        • regionstring or nullrequired
        • created_atstring or nullrequired
      • usersarray of objectrequired
        Show 8 child fields
        • idstring or nullrequired
        • namestringrequired
        • emailstring or nullrequired
        • is_adminbooleanrequired
        • sourcestring or nullrequired

          Where the person came from: iam_user, identity_center, gcp_iam, entra, team.

        • access_levelstring or nullrequired

          One of admin, write, read, null.

        • rolesarray of stringrequired

          The source cloud's own role names.

        • created_atstring or nullrequired
      • ssh_keysarray of objectrequired
        Show 4 child fields
        • namestringrequired
        • regionstringrequired
        • fingerprintstring or nullrequired
        • public_keystring or nullrequired
      • kubernetes_clustersarray of CloudKubernetesClusterrequired
        Show 9 child fields
        • idstringrequired
        • namestringrequired
        • regionstringrequired
        • providerstringrequired

          Who runs the control plane: eks, gke, aks, doks, lke or self_managed.

        • versionstring or nullrequired
        • endpoint_publicbooleanrequired
        • node_poolsarray of CloudNodePoolrequired
          Show 11 child fields
          • namestringrequired
          • instance_typestring or nullrequired
          • vcpuinteger or nullrequired
          • memory_mibinteger or nullrequired
          • architecturestringrequired
          • gpubooleanrequired
          • windowsbooleanrequired
          • desiredintegerrequired
          • autoscalingbooleanrequired
          • minintegerrequired
          • maxintegerrequired
        • addonsarray of stringrequired
        • created_atstring or nullrequired

    The migration object

    Fields

    • idstringrequired
    • namestringrequired
    • regionstringrequired
    • connection_idstringrequired
    • scan_idstringrequired
    • stagestringrequired

      planning. Copying arrives in a later release.

      One of planning.

    • versionintegerrequired
    • summaryMigrationSummaryrequired
      Show 4 child fields
      • plannedintegerrequired
      • excludedintegerrequired
      • unsupportedintegerrequired
      • by_kindobjectrequired

        Planned items per kind.

    • estimateMigrationEstimaterequired

      Pantech's monthly price for the plan next to the source's monthly bill, computed when read.

      Show 10 child fields
      • currencystringrequired
      • pantech_pricedbooleanrequired

        False when part of the plan could not be priced; then pantech_monthly_minor is null.

      • pantech_monthly_minorinteger or nullrequired
      • coversarray of stringrequired

        What the Pantech price includes: servers, volumes, networks.

      • not_coveredarray of stringrequired

        Planned items the price leaves out, e.g. databases.

      • source_knownbooleanrequired
      • source_monthly_minorinteger or nullrequired
      • source_currencystring or nullrequired
      • source_monthsintegerrequired
      • source_scopestringrequired

        whole_account: the source figure is the whole cloud bill.

        One of whole_account.

    • itemsarray of MigrationItemrequired

      Null in a list.

      Show 6 child fields
      • keystringrequired

        Stable across edits: kind, region and the source id.

      • kindstringrequired

        One of network, subnet, security_group, instance, volume, public_ip, load_balancer, database, ssh_key, user, bucket, kubernetes_cluster.

      • sourceMigrationItemSourcerequired
        Show 7 child fields
        • idstringrequired
        • namestring or nullrequired
        • regionstring or nullrequired
        • summarystringrequired
        • vcpuinteger or nullrequired
        • memory_mibinteger or nullrequired
        • disk_gbinteger or nullrequired
      • statusstringrequired

        One of planned, excluded, unsupported.

      • flagsarray of MigrationFlagrequired
        Show 3 child fields
        • codestringrequired
        • messagestringrequired
        • blockingbooleanrequired

          A blocking flag makes the item unsupported.

      • targetMigrationItemTargetrequired

        What the item becomes on Pantech; fields that don't apply to its kind are null or empty.

        Show 19 child fields
        • bucketMigrationBucketTargetrequired

          The Pantech bucket a bucket item becomes; null for every other kind.

          Show 7 child fields
          • namestring or nullrequired

            A valid Pantech bucket name made from the source's; null when none could be made.

          • regionstringrequired
          • versioningbooleanrequired
          • public_readbooleanrequired

            The source bucket was public. The Pantech bucket stays private unless the copy asks.

          • size_bytesinteger or nullrequired

            The source's own daily metric, read by the scan; null when unknown.

          • object_countinteger or nullrequired

            The source's own daily metric, read by the scan; null when unknown.

          • size_as_ofstring or nullrequired

            The day (YYYY-MM-DD) the size and object count describe: show them as "as of" this day.

        • plan_slugstring or nullrequired
        • disk_gbinteger or nullrequired
        • cidrstring or nullrequired
        • network_keystring or nullrequired
        • subnet_keystring or nullrequired
        • instance_keystring or nullrequired
        • rulesarray of MigrationRulerequired
          Show 4 child fields
          • directionstringrequired

            One of ingress, egress.

          • protocolstringrequired

            One of tcp, udp, icmp, all.

          • port_rangestring or nullrequired
          • cidrstringrequired
        • enginestring or nullrequired
        • engine_versionstring or nullrequired
        • storage_gbinteger or nullrequired
        • rolestring or nullrequired

          One of admin, member, null.

        • emailstring or nullrequired
        • public_keystring or nullrequired
        • listenersarray of MigrationListenerrequired
          Show 2 child fields
          • protocolstringrequired
          • portintegerrequired
        • image_slugstring or nullrequired

          The image a server is planned on when its operating system decides it (Windows Server).

        • invite_idstring or nullrequired

          The Pantech invite sent to this person from this plan.

        • invited_atstring or nullrequired
        • kubernetesMigrationKubernetesTargetrequired

          What a kubernetes_cluster item becomes on Pantech; null for every other kind.

          Show 5 child fields
          • version_idstring or nullrequired
          • versionstring or nullrequired
          • node_poolsarray of MigrationNodePoolrequired
            Show 7 child fields
            • namestringrequired
            • plan_slugstring or nullrequired
            • countintegerrequired
            • autoscalingbooleanrequired
            • minintegerrequired
            • maxintegerrequired
            • source_namestringrequired
          • addonsarray of stringrequired
          • allow_downgradebooleanrequired

            The customer consented to a lower Kubernetes version than the source runs.

    • created_atstringrequired
    • updated_atstringrequired

    The migration item object

    Fields

    • keystringrequired

      Stable across edits: kind, region and the source id.

    • kindstringrequired

      One of network, subnet, security_group, instance, volume, public_ip, load_balancer, database, ssh_key, user, bucket, kubernetes_cluster.

    • sourceMigrationItemSourcerequired
      Show 7 child fields
      • idstringrequired
      • namestring or nullrequired
      • regionstring or nullrequired
      • summarystringrequired
      • vcpuinteger or nullrequired
      • memory_mibinteger or nullrequired
      • disk_gbinteger or nullrequired
    • statusstringrequired

      One of planned, excluded, unsupported.

    • flagsarray of MigrationFlagrequired
      Show 3 child fields
      • codestringrequired
      • messagestringrequired
      • blockingbooleanrequired

        A blocking flag makes the item unsupported.

    • targetMigrationItemTargetrequired

      What the item becomes on Pantech; fields that don't apply to its kind are null or empty.

      Show 19 child fields
      • bucketMigrationBucketTargetrequired

        The Pantech bucket a bucket item becomes; null for every other kind.

        Show 7 child fields
        • namestring or nullrequired

          A valid Pantech bucket name made from the source's; null when none could be made.

        • regionstringrequired
        • versioningbooleanrequired
        • public_readbooleanrequired

          The source bucket was public. The Pantech bucket stays private unless the copy asks.

        • size_bytesinteger or nullrequired

          The source's own daily metric, read by the scan; null when unknown.

        • object_countinteger or nullrequired

          The source's own daily metric, read by the scan; null when unknown.

        • size_as_ofstring or nullrequired

          The day (YYYY-MM-DD) the size and object count describe: show them as "as of" this day.

      • plan_slugstring or nullrequired
      • disk_gbinteger or nullrequired
      • cidrstring or nullrequired
      • network_keystring or nullrequired
      • subnet_keystring or nullrequired
      • instance_keystring or nullrequired
      • rulesarray of MigrationRulerequired
        Show 4 child fields
        • directionstringrequired

          One of ingress, egress.

        • protocolstringrequired

          One of tcp, udp, icmp, all.

        • port_rangestring or nullrequired
        • cidrstringrequired
      • enginestring or nullrequired
      • engine_versionstring or nullrequired
      • storage_gbinteger or nullrequired
      • rolestring or nullrequired

        One of admin, member, null.

      • emailstring or nullrequired
      • public_keystring or nullrequired
      • listenersarray of MigrationListenerrequired
        Show 2 child fields
        • protocolstringrequired
        • portintegerrequired
      • image_slugstring or nullrequired

        The image a server is planned on when its operating system decides it (Windows Server).

      • invite_idstring or nullrequired

        The Pantech invite sent to this person from this plan.

      • invited_atstring or nullrequired
      • kubernetesMigrationKubernetesTargetrequired

        What a kubernetes_cluster item becomes on Pantech; null for every other kind.

        Show 5 child fields
        • version_idstring or nullrequired
        • versionstring or nullrequired
        • node_poolsarray of MigrationNodePoolrequired
          Show 7 child fields
          • namestringrequired
          • plan_slugstring or nullrequired
          • countintegerrequired
          • autoscalingbooleanrequired
          • minintegerrequired
          • maxintegerrequired
          • source_namestringrequired
        • addonsarray of stringrequired
        • allow_downgradebooleanrequired

          The customer consented to a lower Kubernetes version than the source runs.

    List cloud connections

    Your organization's connections to other cloud accounts, newest first. Each carries its setup: the template that creates the read-only role in your account.

    GET/public/v1/cloud-connections
    Read keyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    Response 200

    Cloud connections.
    • dataarray of CloudConnectionrequired
      Show 16 child fields
      • idstringrequired
      • providerstringrequired

        One of aws, gcp, azure, huawei, digitalocean, hetzner, linode, vultr, contabo, openstack.

      • namestringrequired
      • statusstringrequired

        awaiting_role (federated providers: waiting for what the setup printed), awaiting_agent (other clouds: no agent enrolled; on AWS, Google Cloud, Azure and Huawei Cloud an agent never changes the status), verifying, connected or failed.

        One of awaiting_role, awaiting_agent, verifying, connected, failed.

      • failureCloudFailurerequired

        Why the last check or scan failed; null when it didn't.

        Show 2 child fields
        • codestringrequired

          One of assume_role_denied, permission_missing, provider_unavailable, scan_too_large, internal, agent_offline, token_rejected, invalid_upload.

        • messagestringrequired

          What to do about it.

      • role_arnstring or nullrequired
      • aws_account_idstring or nullrequired

        Set for AWS connections only; see external_account_id.

      • external_account_idstring or nullrequired

        The source account: an AWS account, a Google Cloud pool's project number, an Azure tenant, or what the agent reported.

      • gcpCloudGCPFederationrequired

        What the Google Cloud setup printed.

        Show 5 child fields
        • project_numberstringrequired
        • pool_idstringrequired
        • provider_idstringrequired
        • service_account_emailstringrequired
        • project_idsarray of stringrequired

          The projects to scan, 1 to 20.

      • azureCloudAzureFederationrequired

        What the Azure setup printed.

        Show 3 child fields
        • tenant_idstringrequired
        • client_idstringrequired

          The app registration's application (client) ID.

        • subscription_idsarray of stringrequired

          The subscriptions to scan, 1 to 20.

      • huaweiCloudHuaweiFederationrequired

        Your Huawei Cloud identity provider and the projects to scan.

        Show 2 child fields
        • identity_provider_idstringrequired
        • projectsarray of objectrequired

          1 to 20 region projects.

          Show 2 child fields
          • regionstringrequired
          • idstringrequired
      • agentCloudAgentStatusrequired

        The connection's enrolled agent; null when none is.

        Show 7 child fields
        • idstringrequired
        • onlinebooleanrequired

          Whether it polled in the last 2 minutes.

        • agent_versionstringrequired
        • platformstringrequired
        • enrolled_atstringrequired
        • last_seen_atstringrequired
        • credential_expires_atstringrequired
      • verified_atstring or nullrequired
      • created_atstringrequired
      • updated_atstringrequired
      • setupCloudConnectionSetuprequired

        What you run in your own cloud to connect it. Every setup grants read-only access, listed one permission at a time in permissions; none creates a key Pantech holds.

        Show 10 child fields
        • accessstringrequired

          federated: Pantech reads your cloud with 5-minute tokens it signs for this connection only (AWS, Google Cloud, Azure, Huawei Cloud). agent: you run the Pantech Migrate agent, which keeps your read-only token on your machine.

          One of federated, agent.

        • issuer_urlstring or nullrequired

          Pantech's identity provider URL, which your cloud trusts; null for agent providers.

        • audiencestring or nullrequired

          The audience every token carries; null for agent providers.

        • subjectstringrequired

          The subject your trust policy requires: this connection's id.

        • quick_create_urlstring or nullrequired

          Opens AWS's create-stack page with this template and connection filled in; null when not offered.

        • templatestringrequired

          The main setup file: AWS's CloudFormation template (JSON), Google Cloud's gcloud script, Azure's Azure CLI script, Huawei Cloud's steps, or, for agent providers, how to make a read-only token.

        • template_formatstringrequired

          One of cloudformation, shell, markdown, agent.

        • filesarray of objectrequired

          Further setup files, such as a Terraform version of the setup or JSON documents to paste.

          Show 2 child fields
          • namestringrequired
          • contentstringrequired
        • permissionsarray of stringrequired

          Every read-only permission the setup grants.

        • agentCloudAgentSetuprequired

          How to run the connection's Pantech Migrate agent. Every connection may have one: for AWS, Google Cloud, Azure and Huawei Cloud it runs server copies, database imports and Kubernetes moves and needs no cloud credential (token_variables is empty); for the other clouds it also scans, with your read-only credential. Null when the agent is not available.

          Show 8 child fields
          • imagestringrequired

            The agent's container image.

          • download_urlstring or nullrequired

            Where the agent's binaries are published.

          • api_urlstringrequired
          • token_variablesarray of stringrequired

            The environment variables the agent reads your read-only credential from, on your machine. It is never sent to Pantech. Empty for AWS, Google Cloud, Azure and Huawei Cloud, where Pantech scans without one.

          • token_how_tostringrequired
          • enroll_commandstringrequired

            Contains <ENROLLMENT_CODE> where the one-time code goes.

          • run_commandstringrequired
          • container_commandstringrequired
    • next_cursorstring or nullrequired

      Always null: this list is returned whole.

    Errors

    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (read for GET, write for changes; an AI app's key also needs delete for a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access. FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin. AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later. 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/cloud-connections" \
      -H "Authorization: Bearer $PANTECH_API_KEY"
    Response 200
    {
      "data": [
        {
          "id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
          "provider": "aws",
          "name": "web-1",
          "status": "awaiting_role",
          "failure": {
            "code": "assume_role_denied",
            "message": "message"
          },
          "role_arn": "role-arn",
          "aws_account_id": "aws-account-id",
          "external_account_id": "external-account-id",
          "gcp": {
            "project_number": "project-number",
            "pool_id": "pool-id",
            "provider_id": "provider-id",
            "service_account_email": "service-account-email",
            "project_ids": [
              "project-ids"
            ]
          },
          "azure": {
            "tenant_id": "tenant-id",
            "client_id": "client-id",
            "subscription_ids": [
              "subscription-ids"
            ]
          },
          "huawei": {
            "identity_provider_id": "identity-provider-id",
            "projects": [
              {
                "region": "af-abj",
                "id": "id"
              }
            ]
          },
          "agent": {
            "id": "cag_06gk3x9tq7m2v8r4y1c5d0zp8w",
            "online": true,
            "agent_version": "agent-version",
            "platform": "platform",
            "enrolled_at": "2026-10-03T09:30:00Z",
            "last_seen_at": "2026-10-03T09:30:00Z",
            "credential_expires_at": "2026-10-03T09:30:00Z"
          },
          "verified_at": "2026-10-03T09:30:00Z",
          "created_at": "2026-10-03T09:30:00Z",
          "updated_at": "2026-10-03T09:30:00Z",
          "setup": {
            "access": "federated",
            "issuer_url": "issuer-url",
            "audience": "audience",
            "subject": "subject",
            "quick_create_url": "quick-create-url",
            "template": "template",
            "template_format": "cloudformation",
            "files": [
              {
                "name": "web-1",
                "content": "content"
              }
            ],
            "permissions": [
              "permissions"
            ],
            "agent": {
              "image": "image",
              "download_url": "download-url",
              "api_url": "api-url",
              "token_variables": [
                "token-variables"
              ],
              "token_how_to": "token-how-to",
              "enroll_command": "enroll-command",
              "run_command": "run-command",
              "container_command": "container-command"
            }
          }
        }
      ],
      "next_cursor": null
    }

    Connect a cloud account

    Starts a connection to an AWS account. Nothing is shared yet: the response's setup holds a CloudFormation template (and, when available, a one-click quick_create_url) that creates, in your AWS account, a read-only role only Pantech can assume, with short-lived tokens for this one connection. No access keys are ever sent to Pantech.

    Create the stack, then send its RoleArn output with PATCH /public/v1/cloud-connections/{connection_id}. At most 10 connections per organization. Owners and admins only.

    Idempotency: a retry with the same Idempotency-Key returns the connection the first request made; the same key with a different name returns 409 IDEMPOTENCY_CONFLICT.

    POST/public/v1/cloud-connections
    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.

    Body

    application/json
    • providerstring

      aws, the default, or another provider GET /cloud-providers lists.

      One of aws, gcp, azure, huawei, digitalocean, hetzner, linode, vultr, contabo, openstack.

    • namestringrequired

      1 to 100 characters, for example Production AWS.

    Response 201

    The connection, with its setup.
    • idstringrequired
    • providerstringrequired

      One of aws, gcp, azure, huawei, digitalocean, hetzner, linode, vultr, contabo, openstack.

    • namestringrequired
    • statusstringrequired

      awaiting_role (federated providers: waiting for what the setup printed), awaiting_agent (other clouds: no agent enrolled; on AWS, Google Cloud, Azure and Huawei Cloud an agent never changes the status), verifying, connected or failed.

      One of awaiting_role, awaiting_agent, verifying, connected, failed.

    • failureCloudFailurerequired

      Why the last check or scan failed; null when it didn't.

      Show 2 child fields
      • codestringrequired

        One of assume_role_denied, permission_missing, provider_unavailable, scan_too_large, internal, agent_offline, token_rejected, invalid_upload.

      • messagestringrequired

        What to do about it.

    • role_arnstring or nullrequired
    • aws_account_idstring or nullrequired

      Set for AWS connections only; see external_account_id.

    • external_account_idstring or nullrequired

      The source account: an AWS account, a Google Cloud pool's project number, an Azure tenant, or what the agent reported.

    • gcpCloudGCPFederationrequired

      What the Google Cloud setup printed.

      Show 5 child fields
      • project_numberstringrequired
      • pool_idstringrequired
      • provider_idstringrequired
      • service_account_emailstringrequired
      • project_idsarray of stringrequired

        The projects to scan, 1 to 20.

    • azureCloudAzureFederationrequired

      What the Azure setup printed.

      Show 3 child fields
      • tenant_idstringrequired
      • client_idstringrequired

        The app registration's application (client) ID.

      • subscription_idsarray of stringrequired

        The subscriptions to scan, 1 to 20.

    • huaweiCloudHuaweiFederationrequired

      Your Huawei Cloud identity provider and the projects to scan.

      Show 2 child fields
      • identity_provider_idstringrequired
      • projectsarray of objectrequired

        1 to 20 region projects.

        Show 2 child fields
        • regionstringrequired
        • idstringrequired
    • agentCloudAgentStatusrequired

      The connection's enrolled agent; null when none is.

      Show 7 child fields
      • idstringrequired
      • onlinebooleanrequired

        Whether it polled in the last 2 minutes.

      • agent_versionstringrequired
      • platformstringrequired
      • enrolled_atstringrequired
      • last_seen_atstringrequired
      • credential_expires_atstringrequired
    • verified_atstring or nullrequired
    • created_atstringrequired
    • updated_atstringrequired
    • setupCloudConnectionSetuprequired

      What you run in your own cloud to connect it. Every setup grants read-only access, listed one permission at a time in permissions; none creates a key Pantech holds.

      Show 10 child fields
      • accessstringrequired

        federated: Pantech reads your cloud with 5-minute tokens it signs for this connection only (AWS, Google Cloud, Azure, Huawei Cloud). agent: you run the Pantech Migrate agent, which keeps your read-only token on your machine.

        One of federated, agent.

      • issuer_urlstring or nullrequired

        Pantech's identity provider URL, which your cloud trusts; null for agent providers.

      • audiencestring or nullrequired

        The audience every token carries; null for agent providers.

      • subjectstringrequired

        The subject your trust policy requires: this connection's id.

      • quick_create_urlstring or nullrequired

        Opens AWS's create-stack page with this template and connection filled in; null when not offered.

      • templatestringrequired

        The main setup file: AWS's CloudFormation template (JSON), Google Cloud's gcloud script, Azure's Azure CLI script, Huawei Cloud's steps, or, for agent providers, how to make a read-only token.

      • template_formatstringrequired

        One of cloudformation, shell, markdown, agent.

      • filesarray of objectrequired

        Further setup files, such as a Terraform version of the setup or JSON documents to paste.

        Show 2 child fields
        • namestringrequired
        • contentstringrequired
      • permissionsarray of stringrequired

        Every read-only permission the setup grants.

      • agentCloudAgentSetuprequired

        How to run the connection's Pantech Migrate agent. Every connection may have one: for AWS, Google Cloud, Azure and Huawei Cloud it runs server copies, database imports and Kubernetes moves and needs no cloud credential (token_variables is empty); for the other clouds it also scans, with your read-only credential. Null when the agent is not available.

        Show 8 child fields
        • imagestringrequired

          The agent's container image.

        • download_urlstring or nullrequired

          Where the agent's binaries are published.

        • api_urlstringrequired
        • token_variablesarray of stringrequired

          The environment variables the agent reads your read-only credential from, on your machine. It is never sent to Pantech. Empty for AWS, Google Cloud, Azure and Huawei Cloud, where Pantech scans without one.

        • token_how_tostringrequired
        • enroll_commandstringrequired

          Contains <ENROLLMENT_CODE> where the one-time code goes.

        • run_commandstringrequired
        • container_commandstringrequired

    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.
    • 409IDEMPOTENCY_CONFLICT: this Idempotency-Key was used with a different request.
    • 422VALIDATION_FAILED: a field is invalid; errors names it. provider must be aws.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    Body
    Idempotency
    curl -X POST "https://api.pantechdynamics.com/public/v1/cloud-connections" \
      -H "Authorization: Bearer $PANTECH_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d '{
        "name": "web-1"
      }'
    Response 201
    {
      "id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "provider": "aws",
      "name": "web-1",
      "status": "awaiting_role",
      "failure": {
        "code": "assume_role_denied",
        "message": "message"
      },
      "role_arn": "role-arn",
      "aws_account_id": "aws-account-id",
      "external_account_id": "external-account-id",
      "gcp": {
        "project_number": "project-number",
        "pool_id": "pool-id",
        "provider_id": "provider-id",
        "service_account_email": "service-account-email",
        "project_ids": [
          "project-ids"
        ]
      },
      "azure": {
        "tenant_id": "tenant-id",
        "client_id": "client-id",
        "subscription_ids": [
          "subscription-ids"
        ]
      },
      "huawei": {
        "identity_provider_id": "identity-provider-id",
        "projects": [
          {
            "region": "af-abj",
            "id": "id"
          }
        ]
      },
      "agent": {
        "id": "cag_06gk3x9tq7m2v8r4y1c5d0zp8w",
        "online": true,
        "agent_version": "agent-version",
        "platform": "platform",
        "enrolled_at": "2026-10-03T09:30:00Z",
        "last_seen_at": "2026-10-03T09:30:00Z",
        "credential_expires_at": "2026-10-03T09:30:00Z"
      },
      "verified_at": "2026-10-03T09:30:00Z",
      "created_at": "2026-10-03T09:30:00Z",
      "updated_at": "2026-10-03T09:30:00Z",
      "setup": {
        "access": "federated",
        "issuer_url": "issuer-url",
        "audience": "audience",
        "subject": "subject",
        "quick_create_url": "quick-create-url",
        "template": "template",
        "template_format": "cloudformation",
        "files": [
          {
            "name": "web-1",
            "content": "content"
          }
        ],
        "permissions": [
          "permissions"
        ],
        "agent": {
          "image": "image",
          "download_url": "download-url",
          "api_url": "api-url",
          "token_variables": [
            "token-variables"
          ],
          "token_how_to": "token-how-to",
          "enroll_command": "enroll-command",
          "run_command": "run-command",
          "container_command": "container-command"
        }
      }
    }

    Get a cloud connection

    One connection, with its status and setup. status is awaiting_role until you send the role ARN, verifying while Pantech tries it, then connected or failed (see failure).

    GET/public/v1/cloud-connections/{connection_id}
    Read keyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    Path parameters

    • connection_idstringrequired

    Response 200

    The connection.
    • idstringrequired
    • providerstringrequired

      One of aws, gcp, azure, huawei, digitalocean, hetzner, linode, vultr, contabo, openstack.

    • namestringrequired
    • statusstringrequired

      awaiting_role (federated providers: waiting for what the setup printed), awaiting_agent (other clouds: no agent enrolled; on AWS, Google Cloud, Azure and Huawei Cloud an agent never changes the status), verifying, connected or failed.

      One of awaiting_role, awaiting_agent, verifying, connected, failed.

    • failureCloudFailurerequired

      Why the last check or scan failed; null when it didn't.

      Show 2 child fields
      • codestringrequired

        One of assume_role_denied, permission_missing, provider_unavailable, scan_too_large, internal, agent_offline, token_rejected, invalid_upload.

      • messagestringrequired

        What to do about it.

    • role_arnstring or nullrequired
    • aws_account_idstring or nullrequired

      Set for AWS connections only; see external_account_id.

    • external_account_idstring or nullrequired

      The source account: an AWS account, a Google Cloud pool's project number, an Azure tenant, or what the agent reported.

    • gcpCloudGCPFederationrequired

      What the Google Cloud setup printed.

      Show 5 child fields
      • project_numberstringrequired
      • pool_idstringrequired
      • provider_idstringrequired
      • service_account_emailstringrequired
      • project_idsarray of stringrequired

        The projects to scan, 1 to 20.

    • azureCloudAzureFederationrequired

      What the Azure setup printed.

      Show 3 child fields
      • tenant_idstringrequired
      • client_idstringrequired

        The app registration's application (client) ID.

      • subscription_idsarray of stringrequired

        The subscriptions to scan, 1 to 20.

    • huaweiCloudHuaweiFederationrequired

      Your Huawei Cloud identity provider and the projects to scan.

      Show 2 child fields
      • identity_provider_idstringrequired
      • projectsarray of objectrequired

        1 to 20 region projects.

        Show 2 child fields
        • regionstringrequired
        • idstringrequired
    • agentCloudAgentStatusrequired

      The connection's enrolled agent; null when none is.

      Show 7 child fields
      • idstringrequired
      • onlinebooleanrequired

        Whether it polled in the last 2 minutes.

      • agent_versionstringrequired
      • platformstringrequired
      • enrolled_atstringrequired
      • last_seen_atstringrequired
      • credential_expires_atstringrequired
    • verified_atstring or nullrequired
    • created_atstringrequired
    • updated_atstringrequired
    • setupCloudConnectionSetuprequired

      What you run in your own cloud to connect it. Every setup grants read-only access, listed one permission at a time in permissions; none creates a key Pantech holds.

      Show 10 child fields
      • accessstringrequired

        federated: Pantech reads your cloud with 5-minute tokens it signs for this connection only (AWS, Google Cloud, Azure, Huawei Cloud). agent: you run the Pantech Migrate agent, which keeps your read-only token on your machine.

        One of federated, agent.

      • issuer_urlstring or nullrequired

        Pantech's identity provider URL, which your cloud trusts; null for agent providers.

      • audiencestring or nullrequired

        The audience every token carries; null for agent providers.

      • subjectstringrequired

        The subject your trust policy requires: this connection's id.

      • quick_create_urlstring or nullrequired

        Opens AWS's create-stack page with this template and connection filled in; null when not offered.

      • templatestringrequired

        The main setup file: AWS's CloudFormation template (JSON), Google Cloud's gcloud script, Azure's Azure CLI script, Huawei Cloud's steps, or, for agent providers, how to make a read-only token.

      • template_formatstringrequired

        One of cloudformation, shell, markdown, agent.

      • filesarray of objectrequired

        Further setup files, such as a Terraform version of the setup or JSON documents to paste.

        Show 2 child fields
        • namestringrequired
        • contentstringrequired
      • permissionsarray of stringrequired

        Every read-only permission the setup grants.

      • agentCloudAgentSetuprequired

        How to run the connection's Pantech Migrate agent. Every connection may have one: for AWS, Google Cloud, Azure and Huawei Cloud it runs server copies, database imports and Kubernetes moves and needs no cloud credential (token_variables is empty); for the other clouds it also scans, with your read-only credential. Null when the agent is not available.

        Show 8 child fields
        • imagestringrequired

          The agent's container image.

        • download_urlstring or nullrequired

          Where the agent's binaries are published.

        • api_urlstringrequired
        • token_variablesarray of stringrequired

          The environment variables the agent reads your read-only credential from, on your machine. It is never sent to Pantech. Empty for AWS, Google Cloud, Azure and Huawei Cloud, where Pantech scans without one.

        • token_how_tostringrequired
        • enroll_commandstringrequired

          Contains <ENROLLMENT_CODE> where the one-time code goes.

        • run_commandstringrequired
        • container_commandstringrequired

    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.
    • 404CLOUD_CONNECTION_NOT_FOUND: no cloud connection with this id exists in your organization.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later. 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/cloud-connections/ccn_06gk3x9tq7m2v8r4y1c5d0zp8w" \
      -H "Authorization: Bearer $PANTECH_API_KEY"
    Response 200
    {
      "id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "provider": "aws",
      "name": "web-1",
      "status": "awaiting_role",
      "failure": {
        "code": "assume_role_denied",
        "message": "message"
      },
      "role_arn": "role-arn",
      "aws_account_id": "aws-account-id",
      "external_account_id": "external-account-id",
      "gcp": {
        "project_number": "project-number",
        "pool_id": "pool-id",
        "provider_id": "provider-id",
        "service_account_email": "service-account-email",
        "project_ids": [
          "project-ids"
        ]
      },
      "azure": {
        "tenant_id": "tenant-id",
        "client_id": "client-id",
        "subscription_ids": [
          "subscription-ids"
        ]
      },
      "huawei": {
        "identity_provider_id": "identity-provider-id",
        "projects": [
          {
            "region": "af-abj",
            "id": "id"
          }
        ]
      },
      "agent": {
        "id": "cag_06gk3x9tq7m2v8r4y1c5d0zp8w",
        "online": true,
        "agent_version": "agent-version",
        "platform": "platform",
        "enrolled_at": "2026-10-03T09:30:00Z",
        "last_seen_at": "2026-10-03T09:30:00Z",
        "credential_expires_at": "2026-10-03T09:30:00Z"
      },
      "verified_at": "2026-10-03T09:30:00Z",
      "created_at": "2026-10-03T09:30:00Z",
      "updated_at": "2026-10-03T09:30:00Z",
      "setup": {
        "access": "federated",
        "issuer_url": "issuer-url",
        "audience": "audience",
        "subject": "subject",
        "quick_create_url": "quick-create-url",
        "template": "template",
        "template_format": "cloudformation",
        "files": [
          {
            "name": "web-1",
            "content": "content"
          }
        ],
        "permissions": [
          "permissions"
        ],
        "agent": {
          "image": "image",
          "download_url": "download-url",
          "api_url": "api-url",
          "token_variables": [
            "token-variables"
          ],
          "token_how_to": "token-how-to",
          "enroll_command": "enroll-command",
          "run_command": "run-command",
          "container_command": "container-command"
        }
      }
    }

    Update a cloud connection

    Renames a connection, sets the role ARN your stack created, or retries a failed check (retry: true). Setting role_arn or retry queues a verification: Pantech assumes the role and reads which AWS account it belongs to, usually within a minute. Owners and admins only.

    PATCH/public/v1/cloud-connections/{connection_id}
    Write keyNeeds Idempotency-KeyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    • Idempotency-Keystringrequired

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

      At most 255 characters.

    Path parameters

    • connection_idstringrequired

    Body

    application/json
    • namestring
    • role_arnstring

      AWS: the stack's RoleArn output.

    • gcpCloudGCPFederation

      What the Google Cloud setup printed.

      Show 5 child fields
      • project_numberstringrequired
      • pool_idstringrequired
      • provider_idstringrequired
      • service_account_emailstringrequired
      • project_idsarray of stringrequired

        The projects to scan, 1 to 20.

    • azureCloudAzureFederation

      What the Azure setup printed.

      Show 3 child fields
      • tenant_idstringrequired
      • client_idstringrequired

        The app registration's application (client) ID.

      • subscription_idsarray of stringrequired

        The subscriptions to scan, 1 to 20.

    • huaweiCloudHuaweiFederation

      Your Huawei Cloud identity provider and the projects to scan.

      Show 2 child fields
      • identity_provider_idstringrequired
      • projectsarray of objectrequired

        1 to 20 region projects.

        Show 2 child fields
        • regionstringrequired
        • idstringrequired
    • retryboolean

      Check the connection again.

    Response 200

    The connection.
    • idstringrequired
    • providerstringrequired

      One of aws, gcp, azure, huawei, digitalocean, hetzner, linode, vultr, contabo, openstack.

    • namestringrequired
    • statusstringrequired

      awaiting_role (federated providers: waiting for what the setup printed), awaiting_agent (other clouds: no agent enrolled; on AWS, Google Cloud, Azure and Huawei Cloud an agent never changes the status), verifying, connected or failed.

      One of awaiting_role, awaiting_agent, verifying, connected, failed.

    • failureCloudFailurerequired

      Why the last check or scan failed; null when it didn't.

      Show 2 child fields
      • codestringrequired

        One of assume_role_denied, permission_missing, provider_unavailable, scan_too_large, internal, agent_offline, token_rejected, invalid_upload.

      • messagestringrequired

        What to do about it.

    • role_arnstring or nullrequired
    • aws_account_idstring or nullrequired

      Set for AWS connections only; see external_account_id.

    • external_account_idstring or nullrequired

      The source account: an AWS account, a Google Cloud pool's project number, an Azure tenant, or what the agent reported.

    • gcpCloudGCPFederationrequired

      What the Google Cloud setup printed.

      Show 5 child fields
      • project_numberstringrequired
      • pool_idstringrequired
      • provider_idstringrequired
      • service_account_emailstringrequired
      • project_idsarray of stringrequired

        The projects to scan, 1 to 20.

    • azureCloudAzureFederationrequired

      What the Azure setup printed.

      Show 3 child fields
      • tenant_idstringrequired
      • client_idstringrequired

        The app registration's application (client) ID.

      • subscription_idsarray of stringrequired

        The subscriptions to scan, 1 to 20.

    • huaweiCloudHuaweiFederationrequired

      Your Huawei Cloud identity provider and the projects to scan.

      Show 2 child fields
      • identity_provider_idstringrequired
      • projectsarray of objectrequired

        1 to 20 region projects.

        Show 2 child fields
        • regionstringrequired
        • idstringrequired
    • agentCloudAgentStatusrequired

      The connection's enrolled agent; null when none is.

      Show 7 child fields
      • idstringrequired
      • onlinebooleanrequired

        Whether it polled in the last 2 minutes.

      • agent_versionstringrequired
      • platformstringrequired
      • enrolled_atstringrequired
      • last_seen_atstringrequired
      • credential_expires_atstringrequired
    • verified_atstring or nullrequired
    • created_atstringrequired
    • updated_atstringrequired
    • setupCloudConnectionSetuprequired

      What you run in your own cloud to connect it. Every setup grants read-only access, listed one permission at a time in permissions; none creates a key Pantech holds.

      Show 10 child fields
      • accessstringrequired

        federated: Pantech reads your cloud with 5-minute tokens it signs for this connection only (AWS, Google Cloud, Azure, Huawei Cloud). agent: you run the Pantech Migrate agent, which keeps your read-only token on your machine.

        One of federated, agent.

      • issuer_urlstring or nullrequired

        Pantech's identity provider URL, which your cloud trusts; null for agent providers.

      • audiencestring or nullrequired

        The audience every token carries; null for agent providers.

      • subjectstringrequired

        The subject your trust policy requires: this connection's id.

      • quick_create_urlstring or nullrequired

        Opens AWS's create-stack page with this template and connection filled in; null when not offered.

      • templatestringrequired

        The main setup file: AWS's CloudFormation template (JSON), Google Cloud's gcloud script, Azure's Azure CLI script, Huawei Cloud's steps, or, for agent providers, how to make a read-only token.

      • template_formatstringrequired

        One of cloudformation, shell, markdown, agent.

      • filesarray of objectrequired

        Further setup files, such as a Terraform version of the setup or JSON documents to paste.

        Show 2 child fields
        • namestringrequired
        • contentstringrequired
      • permissionsarray of stringrequired

        Every read-only permission the setup grants.

      • agentCloudAgentSetuprequired

        How to run the connection's Pantech Migrate agent. Every connection may have one: for AWS, Google Cloud, Azure and Huawei Cloud it runs server copies, database imports and Kubernetes moves and needs no cloud credential (token_variables is empty); for the other clouds it also scans, with your read-only credential. Null when the agent is not available.

        Show 8 child fields
        • imagestringrequired

          The agent's container image.

        • download_urlstring or nullrequired

          Where the agent's binaries are published.

        • api_urlstringrequired
        • token_variablesarray of stringrequired

          The environment variables the agent reads your read-only credential from, on your machine. It is never sent to Pantech. Empty for AWS, Google Cloud, Azure and Huawei Cloud, where Pantech scans without one.

        • token_how_tostringrequired
        • enroll_commandstringrequired

          Contains <ENROLLMENT_CODE> where the one-time code goes.

        • run_commandstringrequired
        • container_commandstringrequired

    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.
    • 404CLOUD_CONNECTION_NOT_FOUND: no cloud connection with this id exists in your organization.
    • 409CONFLICT: the connection changed at the same time. Read it again and retry.
    • 422VALIDATION_FAILED: a field is invalid; errors names it. role_arn must be the stack's RoleArn output, like arn:aws:iam::123456789012:role/name.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later. 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 PATCH "https://api.pantechdynamics.com/public/v1/cloud-connections/ccn_06gk3x9tq7m2v8r4y1c5d0zp8w" \
      -H "Authorization: Bearer $PANTECH_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d '{}'
    Response 200
    {
      "id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "provider": "aws",
      "name": "web-1",
      "status": "awaiting_role",
      "failure": {
        "code": "assume_role_denied",
        "message": "message"
      },
      "role_arn": "role-arn",
      "aws_account_id": "aws-account-id",
      "external_account_id": "external-account-id",
      "gcp": {
        "project_number": "project-number",
        "pool_id": "pool-id",
        "provider_id": "provider-id",
        "service_account_email": "service-account-email",
        "project_ids": [
          "project-ids"
        ]
      },
      "azure": {
        "tenant_id": "tenant-id",
        "client_id": "client-id",
        "subscription_ids": [
          "subscription-ids"
        ]
      },
      "huawei": {
        "identity_provider_id": "identity-provider-id",
        "projects": [
          {
            "region": "af-abj",
            "id": "id"
          }
        ]
      },
      "agent": {
        "id": "cag_06gk3x9tq7m2v8r4y1c5d0zp8w",
        "online": true,
        "agent_version": "agent-version",
        "platform": "platform",
        "enrolled_at": "2026-10-03T09:30:00Z",
        "last_seen_at": "2026-10-03T09:30:00Z",
        "credential_expires_at": "2026-10-03T09:30:00Z"
      },
      "verified_at": "2026-10-03T09:30:00Z",
      "created_at": "2026-10-03T09:30:00Z",
      "updated_at": "2026-10-03T09:30:00Z",
      "setup": {
        "access": "federated",
        "issuer_url": "issuer-url",
        "audience": "audience",
        "subject": "subject",
        "quick_create_url": "quick-create-url",
        "template": "template",
        "template_format": "cloudformation",
        "files": [
          {
            "name": "web-1",
            "content": "content"
          }
        ],
        "permissions": [
          "permissions"
        ],
        "agent": {
          "image": "image",
          "download_url": "download-url",
          "api_url": "api-url",
          "token_variables": [
            "token-variables"
          ],
          "token_how_to": "token-how-to",
          "enroll_command": "enroll-command",
          "run_command": "run-command",
          "container_command": "container-command"
        }
      }
    }

    Disconnect a cloud account

    Removes the connection and its scans from Pantech; migration plans made from it stay. To revoke access on the AWS side too, delete the CloudFormation stack. Disconnecting only takes access away, so it needs write, not delete. Owners and admins only.

    DELETE/public/v1/cloud-connections/{connection_id}
    Write keyNeeds Idempotency-KeyReturns204No Content

    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

    • connection_idstringrequired

    Response 204

    Disconnected. No body.

    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.
    • 404CLOUD_CONNECTION_NOT_FOUND: no cloud connection with this id exists in your organization.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    Path
    Idempotency
    curl -X DELETE "https://api.pantechdynamics.com/public/v1/cloud-connections/ccn_06gk3x9tq7m2v8r4y1c5d0zp8w" \
      -H "Authorization: Bearer $PANTECH_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)"
    HTTP/1.1 204 No Content

    List scans

    A connection's scans, newest first, without their inventories. The 10 newest finished scans are kept.

    GET/public/v1/cloud-connections/{connection_id}/scans
    Read keyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    Path parameters

    • connection_idstringrequired

    Response 200

    Scans.
    • dataarray of CloudScanrequired
      Show 17 child fields
      • idstringrequired
      • connection_idstringrequired
      • runnerstringrequired

        worker (Pantech read your cloud) or agent (your agent did).

        One of worker, agent.

      • statusstringrequired

        One of queued, running, succeeded, failed.

      • failureCloudFailurerequired

        Why the last check or scan failed; null when it didn't.

        Show 2 child fields
        • codestringrequired

          One of assume_role_denied, permission_missing, provider_unavailable, scan_too_large, internal, agent_offline, token_rejected, invalid_upload.

        • messagestringrequired

          What to do about it.

      • created_atstringrequired
      • started_atstring or nullrequired
      • finished_atstring or nullrequired
      • providerstring or nullrequired
      • aws_account_idstring or nullrequired
      • external_account_idstring or nullrequired
      • regionsarray of stringrequired

        Regions read.

      • countsCloudScanCountsrequired
        Show 12 child fields
        • instancesintegerrequired
        • volumesintegerrequired
        • networksintegerrequired
        • subnetsintegerrequired
        • security_groupsintegerrequired
        • public_ipsintegerrequired
        • load_balancersintegerrequired
        • databasesintegerrequired
        • bucketsintegerrequired
        • usersintegerrequired
        • ssh_keysintegerrequired
        • kubernetes_clustersintegerrequired
      • costCloudCostrequired

        The source account's whole bill, every service.

        Show 3 child fields
        • currencystringrequired
        • average_monthly_minorintegerrequired

          Average of the months, in minor units of currency.

        • monthsarray of CloudCostMonthrequired
          Show 2 child fields
          • monthstringrequired

            YYYY-MM.

          • amount_minorintegerrequired
      • warningsarray of stringrequired

        Parts not read, e.g. cost_unavailable or region_denied:eu-south-1.

      • truncatedarray of stringrequired

        Kinds cut at 2,000 items.

      • inventoryCloudInventoryrequired

        Everything a scan found.

        Show 12 child fields
        • instancesarray of objectrequired
          Show 19 child fields
          • idstringrequired
          • namestring or nullrequired
          • regionstringrequired
          • zonestring or nullrequired
          • instance_typestringrequired
          • statestringrequired
          • vcpuinteger or nullrequired
          • memory_mibinteger or nullrequired
          • architecturestringrequired
          • platformstringrequired
          • os_namestring or nullrequired
          • volume_idsarray of stringrequired
          • network_idstring or nullrequired
          • subnet_idstring or nullrequired
          • security_group_idsarray of stringrequired
          • public_ipstring or nullrequired
          • private_ipstring or nullrequired
          • key_namestring or nullrequired
          • launched_atstring or nullrequired
        • volumesarray of objectrequired
          Show 8 child fields
          • idstringrequired
          • regionstringrequired
          • zonestring or nullrequired
          • typestringrequired
          • size_gbintegerrequired
          • attached_tostring or nullrequired
          • devicestring or nullrequired
          • encryptedbooleanrequired
        • networksarray of objectrequired
          Show 5 child fields
          • idstringrequired
          • regionstringrequired
          • namestring or nullrequired
          • cidrstringrequired
          • is_defaultbooleanrequired
        • subnetsarray of objectrequired
          Show 7 child fields
          • idstringrequired
          • regionstringrequired
          • network_idstringrequired
          • namestring or nullrequired
          • cidrstringrequired
          • zonestring or nullrequired
          • maps_public_ipbooleanrequired
        • security_groupsarray of objectrequired
          Show 6 child fields
          • idstringrequired
          • regionstringrequired
          • network_idstring or nullrequired
          • namestringrequired
          • descriptionstring or nullrequired
          • rulesarray of objectrequired
            Show 8 child fields
            • directionstringrequired

              One of ingress, egress.

            • protocolstringrequired
            • from_portinteger or nullrequired
            • to_portinteger or nullrequired
            • cidrstring or nullrequired
            • ipv6_cidrstring or nullrequired
            • source_group_idstring or nullrequired
            • prefix_list_idstring or nullrequired
        • public_ipsarray of objectrequired
          Show 4 child fields
          • idstringrequired
          • regionstringrequired
          • addressstringrequired
          • instance_idstring or nullrequired
        • load_balancersarray of objectrequired
          Show 7 child fields
          • idstringrequired
          • regionstringrequired
          • namestringrequired
          • typestringrequired
          • schemestringrequired
          • network_idstring or nullrequired
          • listenersarray of MigrationListenerrequired
            Show 2 child fields
            • protocolstringrequired
            • portintegerrequired
        • databasesarray of objectrequired
          Show 10 child fields
          • idstringrequired
          • regionstringrequired
          • enginestringrequired
          • engine_versionstringrequired
          • instance_classstringrequired
          • vcpuinteger or nullrequired
          • memory_mibinteger or nullrequired
          • storage_gbintegerrequired
          • multi_azbooleanrequired
          • publicly_accessiblebooleanrequired
        • bucketsarray of objectrequired
          Show 3 child fields
          • namestringrequired
          • regionstring or nullrequired
          • created_atstring or nullrequired
        • usersarray of objectrequired
          Show 8 child fields
          • idstring or nullrequired
          • namestringrequired
          • emailstring or nullrequired
          • is_adminbooleanrequired
          • sourcestring or nullrequired

            Where the person came from: iam_user, identity_center, gcp_iam, entra, team.

          • access_levelstring or nullrequired

            One of admin, write, read, null.

          • rolesarray of stringrequired

            The source cloud's own role names.

          • created_atstring or nullrequired
        • ssh_keysarray of objectrequired
          Show 4 child fields
          • namestringrequired
          • regionstringrequired
          • fingerprintstring or nullrequired
          • public_keystring or nullrequired
        • kubernetes_clustersarray of CloudKubernetesClusterrequired
          Show 9 child fields
          • idstringrequired
          • namestringrequired
          • regionstringrequired
          • providerstringrequired

            Who runs the control plane: eks, gke, aks, doks, lke or self_managed.

          • versionstring or nullrequired
          • endpoint_publicbooleanrequired
          • node_poolsarray of CloudNodePoolrequired
            Show 11 child fields
            • namestringrequired
            • instance_typestring or nullrequired
            • vcpuinteger or nullrequired
            • memory_mibinteger or nullrequired
            • architecturestringrequired
            • gpubooleanrequired
            • windowsbooleanrequired
            • desiredintegerrequired
            • autoscalingbooleanrequired
            • minintegerrequired
            • maxintegerrequired
          • addonsarray of stringrequired
          • created_atstring or nullrequired
    • next_cursorstring or nullrequired

      Always null: this list is returned whole.

    Errors

    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (read for GET, write for changes; an AI app's key also needs delete for a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access. FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin. AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps.
    • 404CLOUD_CONNECTION_NOT_FOUND: no cloud connection with this id exists in your organization.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later. 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/cloud-connections/ccn_06gk3x9tq7m2v8r4y1c5d0zp8w/scans" \
      -H "Authorization: Bearer $PANTECH_API_KEY"
    Response 200
    {
      "data": [
        {
          "id": "csn_06gk3x9tq7m2v8r4y1c5d0zp8w",
          "connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
          "runner": "worker",
          "status": "queued",
          "failure": {
            "code": "assume_role_denied",
            "message": "message"
          },
          "created_at": "2026-10-03T09:30:00Z",
          "started_at": "2026-10-03T09:30:00Z",
          "finished_at": "2026-10-03T09:30:00Z",
          "provider": "provider",
          "aws_account_id": "aws-account-id",
          "external_account_id": "external-account-id",
          "regions": [
            "regions"
          ],
          "counts": {
            "instances": 1,
            "volumes": 1,
            "networks": 1,
            "subnets": 1,
            "security_groups": 1,
            "public_ips": 1,
            "load_balancers": 1,
            "databases": 1,
            "buckets": 1,
            "users": 1,
            "ssh_keys": 1,
            "kubernetes_clusters": 1
          },
          "cost": {
            "currency": "NGN",
            "average_monthly_minor": 1,
            "months": [
              {
                "month": "month",
                "amount_minor": 1059200
              }
            ]
          },
          "warnings": [
            "warnings"
          ],
          "truncated": [
            "truncated"
          ],
          "inventory": {
            "instances": [
              {
                "id": "id",
                "name": "web-1",
                "region": "af-abj",
                "zone": "af-abj-1",
                "instance_type": "instance-type",
                "state": "state",
                "vcpu": 2,
                "memory_mib": 1,
                "architecture": "architecture",
                "platform": "platform",
                "os_name": "os-name",
                "volume_ids": [
                  "volume-ids"
                ],
                "network_id": "net_06gk3x9tq7m2v8r4y1c5d0zp8w",
                "subnet_id": "snet_06gk3x9tq7m2v8r4y1c5d0zp8w",
                "security_group_ids": [
                  "sg_06gk3x9tq7m2v8r4y1c5d0zp8w"
                ],
                "public_ip": "public-ip",
                "private_ip": "<server-private-ip>",
                "key_name": "key-name",
                "launched_at": "2026-10-03T09:30:00Z"
              }
            ],
            "volumes": [
              {
                "id": "id",
                "region": "af-abj",
                "zone": "af-abj-1",
                "type": "compute",
                "size_gb": 20,
                "attached_to": "attached-to",
                "device": "device",
                "encrypted": true
              }
            ],
            "networks": [
              {
                "id": "id",
                "region": "af-abj",
                "name": "web-1",
                "cidr": "<vpc-cidr>",
                "is_default": true
              }
            ],
            "subnets": [
              {
                "id": "id",
                "region": "af-abj",
                "network_id": "net_06gk3x9tq7m2v8r4y1c5d0zp8w",
                "name": "web-1",
                "cidr": "<vpc-cidr>",
                "zone": "af-abj-1",
                "maps_public_ip": true
              }
            ],
            "security_groups": [
              {
                "id": "id",
                "region": "af-abj",
                "network_id": "net_06gk3x9tq7m2v8r4y1c5d0zp8w",
                "name": "web-1",
                "description": "description",
                "rules": [
                  {
                    "direction": "ingress",
                    "protocol": "protocol",
                    "from_port": 1,
                    "to_port": 1,
                    "cidr": "<vpc-cidr>",
                    "ipv6_cidr": "ipv6-cidr",
                    "source_group_id": "source-group-id",
                    "prefix_list_id": "prefix-list-id"
                  }
                ]
              }
            ],
            "public_ips": [
              {
                "id": "id",
                "region": "af-abj",
                "address": "<public-ip>",
                "instance_id": "vm_06gk3x9tq7m2v8r4y1c5d0zp8w"
              }
            ],
            "load_balancers": [
              {
                "id": "id",
                "region": "af-abj",
                "name": "web-1",
                "type": "compute",
                "scheme": "scheme",
                "network_id": "net_06gk3x9tq7m2v8r4y1c5d0zp8w",
                "listeners": [
                  {
                    "protocol": "protocol",
                    "port": 22
                  }
                ]
              }
            ],
            "databases": [
              {
                "id": "id",
                "region": "af-abj",
                "engine": "postgresql",
                "engine_version": "engine-version",
                "instance_class": "instance-class",
                "vcpu": 2,
                "memory_mib": 1,
                "storage_gb": 100,
                "multi_az": true,
                "publicly_accessible": true
              }
            ],
            "buckets": [
              {
                "name": "web-1",
                "region": "af-abj",
                "created_at": "2026-10-03T09:30:00Z"
              }
            ],
            "users": [
              {
                "id": "id",
                "name": "web-1",
                "email": "email",
                "is_admin": true,
                "source": "source",
                "access_level": "admin",
                "roles": [
                  "roles"
                ],
                "created_at": "2026-10-03T09:30:00Z"
              }
            ],
            "ssh_keys": [
              {
                "name": "web-1",
                "region": "af-abj",
                "fingerprint": "SHA256:Qm8vWv3n7rC1bK0pXcFZ9yS2t4uJ6hLdA5gE8iRqTzo",
                "public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIExample deploy@ci"
              }
            ],
            "kubernetes_clusters": [
              {
                "id": "id",
                "name": "web-1",
                "region": "af-abj",
                "provider": "provider",
                "version": "version",
                "endpoint_public": true,
                "node_pools": [
                  {
                    "name": null,
                    "instance_type": null,
                    "vcpu": null,
                    "memory_mib": null,
                    "architecture": null,
                    "gpu": null,
                    "windows": null,
                    "desired": null,
                    "autoscaling": null,
                    "min": null,
                    "max": null
                  }
                ],
                "addons": [
                  "addons"
                ],
                "created_at": "2026-10-03T09:30:00Z"
              }
            ]
          }
        }
      ],
      "next_cursor": null
    }

    Scan a cloud account

    Queues a read of everything the role can see: servers, disks, networks, firewall groups, public addresses, load balancers, databases, bucket names, users, SSH keys and the last three months of spend, in every enabled region. Follow it with GET /public/v1/cloud-scans/{scan_id} until status is succeeded or failed; most accounts take under five minutes. Reading spend costs USD 0.01 on your AWS bill. Owners and admins only.

    POST/public/v1/cloud-connections/{connection_id}/scans
    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

    • connection_idstringrequired

    Response 202

    The queued scan.
    • idstringrequired
    • connection_idstringrequired
    • runnerstringrequired

      worker (Pantech read your cloud) or agent (your agent did).

      One of worker, agent.

    • statusstringrequired

      One of queued, running, succeeded, failed.

    • failureCloudFailurerequired

      Why the last check or scan failed; null when it didn't.

      Show 2 child fields
      • codestringrequired

        One of assume_role_denied, permission_missing, provider_unavailable, scan_too_large, internal, agent_offline, token_rejected, invalid_upload.

      • messagestringrequired

        What to do about it.

    • created_atstringrequired
    • started_atstring or nullrequired
    • finished_atstring or nullrequired
    • providerstring or nullrequired
    • aws_account_idstring or nullrequired
    • external_account_idstring or nullrequired
    • regionsarray of stringrequired

      Regions read.

    • countsCloudScanCountsrequired
      Show 12 child fields
      • instancesintegerrequired
      • volumesintegerrequired
      • networksintegerrequired
      • subnetsintegerrequired
      • security_groupsintegerrequired
      • public_ipsintegerrequired
      • load_balancersintegerrequired
      • databasesintegerrequired
      • bucketsintegerrequired
      • usersintegerrequired
      • ssh_keysintegerrequired
      • kubernetes_clustersintegerrequired
    • costCloudCostrequired

      The source account's whole bill, every service.

      Show 3 child fields
      • currencystringrequired
      • average_monthly_minorintegerrequired

        Average of the months, in minor units of currency.

      • monthsarray of CloudCostMonthrequired
        Show 2 child fields
        • monthstringrequired

          YYYY-MM.

        • amount_minorintegerrequired
    • warningsarray of stringrequired

      Parts not read, e.g. cost_unavailable or region_denied:eu-south-1.

    • truncatedarray of stringrequired

      Kinds cut at 2,000 items.

    • inventoryCloudInventoryrequired

      Everything a scan found.

      Show 12 child fields
      • instancesarray of objectrequired
        Show 19 child fields
        • idstringrequired
        • namestring or nullrequired
        • regionstringrequired
        • zonestring or nullrequired
        • instance_typestringrequired
        • statestringrequired
        • vcpuinteger or nullrequired
        • memory_mibinteger or nullrequired
        • architecturestringrequired
        • platformstringrequired
        • os_namestring or nullrequired
        • volume_idsarray of stringrequired
        • network_idstring or nullrequired
        • subnet_idstring or nullrequired
        • security_group_idsarray of stringrequired
        • public_ipstring or nullrequired
        • private_ipstring or nullrequired
        • key_namestring or nullrequired
        • launched_atstring or nullrequired
      • volumesarray of objectrequired
        Show 8 child fields
        • idstringrequired
        • regionstringrequired
        • zonestring or nullrequired
        • typestringrequired
        • size_gbintegerrequired
        • attached_tostring or nullrequired
        • devicestring or nullrequired
        • encryptedbooleanrequired
      • networksarray of objectrequired
        Show 5 child fields
        • idstringrequired
        • regionstringrequired
        • namestring or nullrequired
        • cidrstringrequired
        • is_defaultbooleanrequired
      • subnetsarray of objectrequired
        Show 7 child fields
        • idstringrequired
        • regionstringrequired
        • network_idstringrequired
        • namestring or nullrequired
        • cidrstringrequired
        • zonestring or nullrequired
        • maps_public_ipbooleanrequired
      • security_groupsarray of objectrequired
        Show 6 child fields
        • idstringrequired
        • regionstringrequired
        • network_idstring or nullrequired
        • namestringrequired
        • descriptionstring or nullrequired
        • rulesarray of objectrequired
          Show 8 child fields
          • directionstringrequired

            One of ingress, egress.

          • protocolstringrequired
          • from_portinteger or nullrequired
          • to_portinteger or nullrequired
          • cidrstring or nullrequired
          • ipv6_cidrstring or nullrequired
          • source_group_idstring or nullrequired
          • prefix_list_idstring or nullrequired
      • public_ipsarray of objectrequired
        Show 4 child fields
        • idstringrequired
        • regionstringrequired
        • addressstringrequired
        • instance_idstring or nullrequired
      • load_balancersarray of objectrequired
        Show 7 child fields
        • idstringrequired
        • regionstringrequired
        • namestringrequired
        • typestringrequired
        • schemestringrequired
        • network_idstring or nullrequired
        • listenersarray of MigrationListenerrequired
          Show 2 child fields
          • protocolstringrequired
          • portintegerrequired
      • databasesarray of objectrequired
        Show 10 child fields
        • idstringrequired
        • regionstringrequired
        • enginestringrequired
        • engine_versionstringrequired
        • instance_classstringrequired
        • vcpuinteger or nullrequired
        • memory_mibinteger or nullrequired
        • storage_gbintegerrequired
        • multi_azbooleanrequired
        • publicly_accessiblebooleanrequired
      • bucketsarray of objectrequired
        Show 3 child fields
        • namestringrequired
        • regionstring or nullrequired
        • created_atstring or nullrequired
      • usersarray of objectrequired
        Show 8 child fields
        • idstring or nullrequired
        • namestringrequired
        • emailstring or nullrequired
        • is_adminbooleanrequired
        • sourcestring or nullrequired

          Where the person came from: iam_user, identity_center, gcp_iam, entra, team.

        • access_levelstring or nullrequired

          One of admin, write, read, null.

        • rolesarray of stringrequired

          The source cloud's own role names.

        • created_atstring or nullrequired
      • ssh_keysarray of objectrequired
        Show 4 child fields
        • namestringrequired
        • regionstringrequired
        • fingerprintstring or nullrequired
        • public_keystring or nullrequired
      • kubernetes_clustersarray of CloudKubernetesClusterrequired
        Show 9 child fields
        • idstringrequired
        • namestringrequired
        • regionstringrequired
        • providerstringrequired

          Who runs the control plane: eks, gke, aks, doks, lke or self_managed.

        • versionstring or nullrequired
        • endpoint_publicbooleanrequired
        • node_poolsarray of CloudNodePoolrequired
          Show 11 child fields
          • namestringrequired
          • instance_typestring or nullrequired
          • vcpuinteger or nullrequired
          • memory_mibinteger or nullrequired
          • architecturestringrequired
          • gpubooleanrequired
          • windowsbooleanrequired
          • desiredintegerrequired
          • autoscalingbooleanrequired
          • minintegerrequired
          • maxintegerrequired
        • addonsarray of stringrequired
        • created_atstring or nullrequired

    Errors

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

    Every code is explained in Errors.

    Authorization
    Path
    Idempotency
    curl -X POST "https://api.pantechdynamics.com/public/v1/cloud-connections/ccn_06gk3x9tq7m2v8r4y1c5d0zp8w/scans" \
      -H "Authorization: Bearer $PANTECH_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)"
    Response 202
    {
      "id": "csn_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "runner": "worker",
      "status": "queued",
      "failure": {
        "code": "assume_role_denied",
        "message": "message"
      },
      "created_at": "2026-10-03T09:30:00Z",
      "started_at": "2026-10-03T09:30:00Z",
      "finished_at": "2026-10-03T09:30:00Z",
      "provider": "provider",
      "aws_account_id": "aws-account-id",
      "external_account_id": "external-account-id",
      "regions": [
        "regions"
      ],
      "counts": {
        "instances": 1,
        "volumes": 1,
        "networks": 1,
        "subnets": 1,
        "security_groups": 1,
        "public_ips": 1,
        "load_balancers": 1,
        "databases": 1,
        "buckets": 1,
        "users": 1,
        "ssh_keys": 1,
        "kubernetes_clusters": 1
      },
      "cost": {
        "currency": "NGN",
        "average_monthly_minor": 1,
        "months": [
          {
            "month": "month",
            "amount_minor": 1059200
          }
        ]
      },
      "warnings": [
        "warnings"
      ],
      "truncated": [
        "truncated"
      ],
      "inventory": {
        "instances": [
          {
            "id": "id",
            "name": "web-1",
            "region": "af-abj",
            "zone": "af-abj-1",
            "instance_type": "instance-type",
            "state": "state",
            "vcpu": 2,
            "memory_mib": 1,
            "architecture": "architecture",
            "platform": "platform",
            "os_name": "os-name",
            "volume_ids": [
              "volume-ids"
            ],
            "network_id": "net_06gk3x9tq7m2v8r4y1c5d0zp8w",
            "subnet_id": "snet_06gk3x9tq7m2v8r4y1c5d0zp8w",
            "security_group_ids": [
              "sg_06gk3x9tq7m2v8r4y1c5d0zp8w"
            ],
            "public_ip": "public-ip",
            "private_ip": "<server-private-ip>",
            "key_name": "key-name",
            "launched_at": "2026-10-03T09:30:00Z"
          }
        ],
        "volumes": [
          {
            "id": "id",
            "region": "af-abj",
            "zone": "af-abj-1",
            "type": "compute",
            "size_gb": 20,
            "attached_to": "attached-to",
            "device": "device",
            "encrypted": true
          }
        ],
        "networks": [
          {
            "id": "id",
            "region": "af-abj",
            "name": "web-1",
            "cidr": "<vpc-cidr>",
            "is_default": true
          }
        ],
        "subnets": [
          {
            "id": "id",
            "region": "af-abj",
            "network_id": "net_06gk3x9tq7m2v8r4y1c5d0zp8w",
            "name": "web-1",
            "cidr": "<vpc-cidr>",
            "zone": "af-abj-1",
            "maps_public_ip": true
          }
        ],
        "security_groups": [
          {
            "id": "id",
            "region": "af-abj",
            "network_id": "net_06gk3x9tq7m2v8r4y1c5d0zp8w",
            "name": "web-1",
            "description": "description",
            "rules": [
              {
                "direction": "ingress",
                "protocol": "protocol",
                "from_port": 1,
                "to_port": 1,
                "cidr": "<vpc-cidr>",
                "ipv6_cidr": "ipv6-cidr",
                "source_group_id": "source-group-id",
                "prefix_list_id": "prefix-list-id"
              }
            ]
          }
        ],
        "public_ips": [
          {
            "id": "id",
            "region": "af-abj",
            "address": "<public-ip>",
            "instance_id": "vm_06gk3x9tq7m2v8r4y1c5d0zp8w"
          }
        ],
        "load_balancers": [
          {
            "id": "id",
            "region": "af-abj",
            "name": "web-1",
            "type": "compute",
            "scheme": "scheme",
            "network_id": "net_06gk3x9tq7m2v8r4y1c5d0zp8w",
            "listeners": [
              {
                "protocol": "protocol",
                "port": 22
              }
            ]
          }
        ],
        "databases": [
          {
            "id": "id",
            "region": "af-abj",
            "engine": "postgresql",
            "engine_version": "engine-version",
            "instance_class": "instance-class",
            "vcpu": 2,
            "memory_mib": 1,
            "storage_gb": 100,
            "multi_az": true,
            "publicly_accessible": true
          }
        ],
        "buckets": [
          {
            "name": "web-1",
            "region": "af-abj",
            "created_at": "2026-10-03T09:30:00Z"
          }
        ],
        "users": [
          {
            "id": "id",
            "name": "web-1",
            "email": "email",
            "is_admin": true,
            "source": "source",
            "access_level": "admin",
            "roles": [
              "roles"
            ],
            "created_at": "2026-10-03T09:30:00Z"
          }
        ],
        "ssh_keys": [
          {
            "name": "web-1",
            "region": "af-abj",
            "fingerprint": "SHA256:Qm8vWv3n7rC1bK0pXcFZ9yS2t4uJ6hLdA5gE8iRqTzo",
            "public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIExample deploy@ci"
          }
        ],
        "kubernetes_clusters": [
          {
            "id": "id",
            "name": "web-1",
            "region": "af-abj",
            "provider": "provider",
            "version": "version",
            "endpoint_public": true,
            "node_pools": [
              {
                "name": "web-1",
                "instance_type": "instance-type",
                "vcpu": 2,
                "memory_mib": 1,
                "architecture": "architecture",
                "gpu": true,
                "windows": true,
                "desired": 1,
                "autoscaling": true,
                "min": 1,
                "max": 1
              }
            ],
            "addons": [
              "addons"
            ],
            "created_at": "2026-10-03T09:30:00Z"
          }
        ]
      }
    }

    Get a scan

    A scan's status, what it found (counts, cost, regions), and the parts it could not read (warnings). Add include=inventory for every item it found. Names and tags in the inventory are your own text, returned unchanged.

    GET/public/v1/cloud-scans/{scan_id}
    Read keyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    Path parameters

    • scan_idstringrequired

    Query parameters

    • includestring

      inventory returns everything the scan found.

      One of inventory.

    Response 200

    The scan.
    • idstringrequired
    • connection_idstringrequired
    • runnerstringrequired

      worker (Pantech read your cloud) or agent (your agent did).

      One of worker, agent.

    • statusstringrequired

      One of queued, running, succeeded, failed.

    • failureCloudFailurerequired

      Why the last check or scan failed; null when it didn't.

      Show 2 child fields
      • codestringrequired

        One of assume_role_denied, permission_missing, provider_unavailable, scan_too_large, internal, agent_offline, token_rejected, invalid_upload.

      • messagestringrequired

        What to do about it.

    • created_atstringrequired
    • started_atstring or nullrequired
    • finished_atstring or nullrequired
    • providerstring or nullrequired
    • aws_account_idstring or nullrequired
    • external_account_idstring or nullrequired
    • regionsarray of stringrequired

      Regions read.

    • countsCloudScanCountsrequired
      Show 12 child fields
      • instancesintegerrequired
      • volumesintegerrequired
      • networksintegerrequired
      • subnetsintegerrequired
      • security_groupsintegerrequired
      • public_ipsintegerrequired
      • load_balancersintegerrequired
      • databasesintegerrequired
      • bucketsintegerrequired
      • usersintegerrequired
      • ssh_keysintegerrequired
      • kubernetes_clustersintegerrequired
    • costCloudCostrequired

      The source account's whole bill, every service.

      Show 3 child fields
      • currencystringrequired
      • average_monthly_minorintegerrequired

        Average of the months, in minor units of currency.

      • monthsarray of CloudCostMonthrequired
        Show 2 child fields
        • monthstringrequired

          YYYY-MM.

        • amount_minorintegerrequired
    • warningsarray of stringrequired

      Parts not read, e.g. cost_unavailable or region_denied:eu-south-1.

    • truncatedarray of stringrequired

      Kinds cut at 2,000 items.

    • inventoryCloudInventoryrequired

      Everything a scan found.

      Show 12 child fields
      • instancesarray of objectrequired
        Show 19 child fields
        • idstringrequired
        • namestring or nullrequired
        • regionstringrequired
        • zonestring or nullrequired
        • instance_typestringrequired
        • statestringrequired
        • vcpuinteger or nullrequired
        • memory_mibinteger or nullrequired
        • architecturestringrequired
        • platformstringrequired
        • os_namestring or nullrequired
        • volume_idsarray of stringrequired
        • network_idstring or nullrequired
        • subnet_idstring or nullrequired
        • security_group_idsarray of stringrequired
        • public_ipstring or nullrequired
        • private_ipstring or nullrequired
        • key_namestring or nullrequired
        • launched_atstring or nullrequired
      • volumesarray of objectrequired
        Show 8 child fields
        • idstringrequired
        • regionstringrequired
        • zonestring or nullrequired
        • typestringrequired
        • size_gbintegerrequired
        • attached_tostring or nullrequired
        • devicestring or nullrequired
        • encryptedbooleanrequired
      • networksarray of objectrequired
        Show 5 child fields
        • idstringrequired
        • regionstringrequired
        • namestring or nullrequired
        • cidrstringrequired
        • is_defaultbooleanrequired
      • subnetsarray of objectrequired
        Show 7 child fields
        • idstringrequired
        • regionstringrequired
        • network_idstringrequired
        • namestring or nullrequired
        • cidrstringrequired
        • zonestring or nullrequired
        • maps_public_ipbooleanrequired
      • security_groupsarray of objectrequired
        Show 6 child fields
        • idstringrequired
        • regionstringrequired
        • network_idstring or nullrequired
        • namestringrequired
        • descriptionstring or nullrequired
        • rulesarray of objectrequired
          Show 8 child fields
          • directionstringrequired

            One of ingress, egress.

          • protocolstringrequired
          • from_portinteger or nullrequired
          • to_portinteger or nullrequired
          • cidrstring or nullrequired
          • ipv6_cidrstring or nullrequired
          • source_group_idstring or nullrequired
          • prefix_list_idstring or nullrequired
      • public_ipsarray of objectrequired
        Show 4 child fields
        • idstringrequired
        • regionstringrequired
        • addressstringrequired
        • instance_idstring or nullrequired
      • load_balancersarray of objectrequired
        Show 7 child fields
        • idstringrequired
        • regionstringrequired
        • namestringrequired
        • typestringrequired
        • schemestringrequired
        • network_idstring or nullrequired
        • listenersarray of MigrationListenerrequired
          Show 2 child fields
          • protocolstringrequired
          • portintegerrequired
      • databasesarray of objectrequired
        Show 10 child fields
        • idstringrequired
        • regionstringrequired
        • enginestringrequired
        • engine_versionstringrequired
        • instance_classstringrequired
        • vcpuinteger or nullrequired
        • memory_mibinteger or nullrequired
        • storage_gbintegerrequired
        • multi_azbooleanrequired
        • publicly_accessiblebooleanrequired
      • bucketsarray of objectrequired
        Show 3 child fields
        • namestringrequired
        • regionstring or nullrequired
        • created_atstring or nullrequired
      • usersarray of objectrequired
        Show 8 child fields
        • idstring or nullrequired
        • namestringrequired
        • emailstring or nullrequired
        • is_adminbooleanrequired
        • sourcestring or nullrequired

          Where the person came from: iam_user, identity_center, gcp_iam, entra, team.

        • access_levelstring or nullrequired

          One of admin, write, read, null.

        • rolesarray of stringrequired

          The source cloud's own role names.

        • created_atstring or nullrequired
      • ssh_keysarray of objectrequired
        Show 4 child fields
        • namestringrequired
        • regionstringrequired
        • fingerprintstring or nullrequired
        • public_keystring or nullrequired
      • kubernetes_clustersarray of CloudKubernetesClusterrequired
        Show 9 child fields
        • idstringrequired
        • namestringrequired
        • regionstringrequired
        • providerstringrequired

          Who runs the control plane: eks, gke, aks, doks, lke or self_managed.

        • versionstring or nullrequired
        • endpoint_publicbooleanrequired
        • node_poolsarray of CloudNodePoolrequired
          Show 11 child fields
          • namestringrequired
          • instance_typestring or nullrequired
          • vcpuinteger or nullrequired
          • memory_mibinteger or nullrequired
          • architecturestringrequired
          • gpubooleanrequired
          • windowsbooleanrequired
          • desiredintegerrequired
          • autoscalingbooleanrequired
          • minintegerrequired
          • maxintegerrequired
        • addonsarray of stringrequired
        • created_atstring or nullrequired

    Errors

    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (read for GET, write for changes; an AI app's key also needs delete for a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access. FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin. AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps.
    • 404CLOUD_SCAN_NOT_FOUND: no scan with this id exists in your organization.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later. 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/cloud-scans/csn_06gk3x9tq7m2v8r4y1c5d0zp8w" \
      -H "Authorization: Bearer $PANTECH_API_KEY"
    Response 200
    {
      "id": "csn_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "runner": "worker",
      "status": "queued",
      "failure": {
        "code": "assume_role_denied",
        "message": "message"
      },
      "created_at": "2026-10-03T09:30:00Z",
      "started_at": "2026-10-03T09:30:00Z",
      "finished_at": "2026-10-03T09:30:00Z",
      "provider": "provider",
      "aws_account_id": "aws-account-id",
      "external_account_id": "external-account-id",
      "regions": [
        "regions"
      ],
      "counts": {
        "instances": 1,
        "volumes": 1,
        "networks": 1,
        "subnets": 1,
        "security_groups": 1,
        "public_ips": 1,
        "load_balancers": 1,
        "databases": 1,
        "buckets": 1,
        "users": 1,
        "ssh_keys": 1,
        "kubernetes_clusters": 1
      },
      "cost": {
        "currency": "NGN",
        "average_monthly_minor": 1,
        "months": [
          {
            "month": "month",
            "amount_minor": 1059200
          }
        ]
      },
      "warnings": [
        "warnings"
      ],
      "truncated": [
        "truncated"
      ],
      "inventory": {
        "instances": [
          {
            "id": "id",
            "name": "web-1",
            "region": "af-abj",
            "zone": "af-abj-1",
            "instance_type": "instance-type",
            "state": "state",
            "vcpu": 2,
            "memory_mib": 1,
            "architecture": "architecture",
            "platform": "platform",
            "os_name": "os-name",
            "volume_ids": [
              "volume-ids"
            ],
            "network_id": "net_06gk3x9tq7m2v8r4y1c5d0zp8w",
            "subnet_id": "snet_06gk3x9tq7m2v8r4y1c5d0zp8w",
            "security_group_ids": [
              "sg_06gk3x9tq7m2v8r4y1c5d0zp8w"
            ],
            "public_ip": "public-ip",
            "private_ip": "<server-private-ip>",
            "key_name": "key-name",
            "launched_at": "2026-10-03T09:30:00Z"
          }
        ],
        "volumes": [
          {
            "id": "id",
            "region": "af-abj",
            "zone": "af-abj-1",
            "type": "compute",
            "size_gb": 20,
            "attached_to": "attached-to",
            "device": "device",
            "encrypted": true
          }
        ],
        "networks": [
          {
            "id": "id",
            "region": "af-abj",
            "name": "web-1",
            "cidr": "<vpc-cidr>",
            "is_default": true
          }
        ],
        "subnets": [
          {
            "id": "id",
            "region": "af-abj",
            "network_id": "net_06gk3x9tq7m2v8r4y1c5d0zp8w",
            "name": "web-1",
            "cidr": "<vpc-cidr>",
            "zone": "af-abj-1",
            "maps_public_ip": true
          }
        ],
        "security_groups": [
          {
            "id": "id",
            "region": "af-abj",
            "network_id": "net_06gk3x9tq7m2v8r4y1c5d0zp8w",
            "name": "web-1",
            "description": "description",
            "rules": [
              {
                "direction": "ingress",
                "protocol": "protocol",
                "from_port": 1,
                "to_port": 1,
                "cidr": "<vpc-cidr>",
                "ipv6_cidr": "ipv6-cidr",
                "source_group_id": "source-group-id",
                "prefix_list_id": "prefix-list-id"
              }
            ]
          }
        ],
        "public_ips": [
          {
            "id": "id",
            "region": "af-abj",
            "address": "<public-ip>",
            "instance_id": "vm_06gk3x9tq7m2v8r4y1c5d0zp8w"
          }
        ],
        "load_balancers": [
          {
            "id": "id",
            "region": "af-abj",
            "name": "web-1",
            "type": "compute",
            "scheme": "scheme",
            "network_id": "net_06gk3x9tq7m2v8r4y1c5d0zp8w",
            "listeners": [
              {
                "protocol": "protocol",
                "port": 22
              }
            ]
          }
        ],
        "databases": [
          {
            "id": "id",
            "region": "af-abj",
            "engine": "postgresql",
            "engine_version": "engine-version",
            "instance_class": "instance-class",
            "vcpu": 2,
            "memory_mib": 1,
            "storage_gb": 100,
            "multi_az": true,
            "publicly_accessible": true
          }
        ],
        "buckets": [
          {
            "name": "web-1",
            "region": "af-abj",
            "created_at": "2026-10-03T09:30:00Z"
          }
        ],
        "users": [
          {
            "id": "id",
            "name": "web-1",
            "email": "email",
            "is_admin": true,
            "source": "source",
            "access_level": "admin",
            "roles": [
              "roles"
            ],
            "created_at": "2026-10-03T09:30:00Z"
          }
        ],
        "ssh_keys": [
          {
            "name": "web-1",
            "region": "af-abj",
            "fingerprint": "SHA256:Qm8vWv3n7rC1bK0pXcFZ9yS2t4uJ6hLdA5gE8iRqTzo",
            "public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIExample deploy@ci"
          }
        ],
        "kubernetes_clusters": [
          {
            "id": "id",
            "name": "web-1",
            "region": "af-abj",
            "provider": "provider",
            "version": "version",
            "endpoint_public": true,
            "node_pools": [
              {
                "name": "web-1",
                "instance_type": "instance-type",
                "vcpu": 2,
                "memory_mib": 1,
                "architecture": "architecture",
                "gpu": true,
                "windows": true,
                "desired": 1,
                "autoscaling": true,
                "min": 1,
                "max": 1
              }
            ],
            "addons": [
              "addons"
            ],
            "created_at": "2026-10-03T09:30:00Z"
          }
        ]
      }
    }

    List migrations

    Your organization's migration plans, newest first, without their items or estimate.

    GET/public/v1/migrations
    Read keyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    Response 200

    Migrations.
    • dataarray of Migrationrequired
      Show 12 child fields
      • idstringrequired
      • namestringrequired
      • regionstringrequired
      • connection_idstringrequired
      • scan_idstringrequired
      • stagestringrequired

        planning. Copying arrives in a later release.

        One of planning.

      • versionintegerrequired
      • summaryMigrationSummaryrequired
        Show 4 child fields
        • plannedintegerrequired
        • excludedintegerrequired
        • unsupportedintegerrequired
        • by_kindobjectrequired

          Planned items per kind.

      • estimateMigrationEstimaterequired

        Pantech's monthly price for the plan next to the source's monthly bill, computed when read.

        Show 10 child fields
        • currencystringrequired
        • pantech_pricedbooleanrequired

          False when part of the plan could not be priced; then pantech_monthly_minor is null.

        • pantech_monthly_minorinteger or nullrequired
        • coversarray of stringrequired

          What the Pantech price includes: servers, volumes, networks.

        • not_coveredarray of stringrequired

          Planned items the price leaves out, e.g. databases.

        • source_knownbooleanrequired
        • source_monthly_minorinteger or nullrequired
        • source_currencystring or nullrequired
        • source_monthsintegerrequired
        • source_scopestringrequired

          whole_account: the source figure is the whole cloud bill.

          One of whole_account.

      • itemsarray of MigrationItemrequired

        Null in a list.

        Show 6 child fields
        • keystringrequired

          Stable across edits: kind, region and the source id.

        • kindstringrequired

          One of network, subnet, security_group, instance, volume, public_ip, load_balancer, database, ssh_key, user, bucket, kubernetes_cluster.

        • sourceMigrationItemSourcerequired
          Show 7 child fields
          • idstringrequired
          • namestring or nullrequired
          • regionstring or nullrequired
          • summarystringrequired
          • vcpuinteger or nullrequired
          • memory_mibinteger or nullrequired
          • disk_gbinteger or nullrequired
        • statusstringrequired

          One of planned, excluded, unsupported.

        • flagsarray of MigrationFlagrequired
          Show 3 child fields
          • codestringrequired
          • messagestringrequired
          • blockingbooleanrequired

            A blocking flag makes the item unsupported.

        • targetMigrationItemTargetrequired

          What the item becomes on Pantech; fields that don't apply to its kind are null or empty.

          Show 19 child fields
          • bucketMigrationBucketTargetrequired

            The Pantech bucket a bucket item becomes; null for every other kind.

            Show 7 child fields
            • namestring or nullrequired

              A valid Pantech bucket name made from the source's; null when none could be made.

            • regionstringrequired
            • versioningbooleanrequired
            • public_readbooleanrequired

              The source bucket was public. The Pantech bucket stays private unless the copy asks.

            • size_bytesinteger or nullrequired

              The source's own daily metric, read by the scan; null when unknown.

            • object_countinteger or nullrequired

              The source's own daily metric, read by the scan; null when unknown.

            • size_as_ofstring or nullrequired

              The day (YYYY-MM-DD) the size and object count describe: show them as "as of" this day.

          • plan_slugstring or nullrequired
          • disk_gbinteger or nullrequired
          • cidrstring or nullrequired
          • network_keystring or nullrequired
          • subnet_keystring or nullrequired
          • instance_keystring or nullrequired
          • rulesarray of MigrationRulerequired
            Show 4 child fields
            • directionstringrequired

              One of ingress, egress.

            • protocolstringrequired

              One of tcp, udp, icmp, all.

            • port_rangestring or nullrequired
            • cidrstringrequired
          • enginestring or nullrequired
          • engine_versionstring or nullrequired
          • storage_gbinteger or nullrequired
          • rolestring or nullrequired

            One of admin, member, null.

          • emailstring or nullrequired
          • public_keystring or nullrequired
          • listenersarray of MigrationListenerrequired
            Show 2 child fields
            • protocolstringrequired
            • portintegerrequired
          • image_slugstring or nullrequired

            The image a server is planned on when its operating system decides it (Windows Server).

          • invite_idstring or nullrequired

            The Pantech invite sent to this person from this plan.

          • invited_atstring or nullrequired
          • kubernetesMigrationKubernetesTargetrequired

            What a kubernetes_cluster item becomes on Pantech; null for every other kind.

            Show 5 child fields
            • version_idstring or nullrequired
            • versionstring or nullrequired
            • node_poolsarray of MigrationNodePoolrequired
            • addonsarray of stringrequired
            • allow_downgradebooleanrequired

              The customer consented to a lower Kubernetes version than the source runs.

      • 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.
    • 503MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later. 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/migrations" \
      -H "Authorization: Bearer $PANTECH_API_KEY"
    Response 200
    {
      "data": [
        {
          "id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
          "name": "web-1",
          "region": "af-abj",
          "connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
          "scan_id": "csn_06gk3x9tq7m2v8r4y1c5d0zp8w",
          "stage": "planning",
          "version": 1,
          "summary": {
            "planned": 1,
            "excluded": 1,
            "unsupported": 1,
            "by_kind": {}
          },
          "estimate": {
            "currency": "NGN",
            "pantech_priced": true,
            "pantech_monthly_minor": 1,
            "covers": [
              "covers"
            ],
            "not_covered": [
              "not-covered"
            ],
            "source_known": true,
            "source_monthly_minor": 1,
            "source_currency": "source-currency",
            "source_months": 1,
            "source_scope": "whole_account"
          },
          "items": [
            {
              "key": "key",
              "kind": "network",
              "source": {
                "id": "id",
                "name": "web-1",
                "region": "af-abj",
                "summary": "summary",
                "vcpu": 2,
                "memory_mib": 1,
                "disk_gb": 80
              },
              "status": "planned",
              "flags": [
                {
                  "code": "starter",
                  "message": "message",
                  "blocking": true
                }
              ],
              "target": {
                "bucket": {
                  "name": "web-1",
                  "region": "af-abj",
                  "versioning": true,
                  "public_read": true,
                  "size_bytes": 1610612736,
                  "object_count": 1,
                  "size_as_of": "2030-11-14"
                },
                "plan_slug": "starter",
                "disk_gb": 80,
                "cidr": "<vpc-cidr>",
                "network_key": "network-key",
                "subnet_key": "subnet-key",
                "instance_key": "instance-key",
                "rules": [
                  {
                    "direction": null,
                    "protocol": null,
                    "port_range": null,
                    "cidr": null
                  }
                ],
                "engine": "postgresql",
                "engine_version": "engine-version",
                "storage_gb": 100,
                "role": "admin",
                "email": "email",
                "public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIExample deploy@ci",
                "listeners": [
                  {
                    "protocol": null,
                    "port": null
                  }
                ],
                "image_slug": "ubuntu-24-04",
                "invite_id": "invite-id",
                "invited_at": "2026-10-03T09:30:00Z",
                "kubernetes": {
                  "version_id": "version-id",
                  "version": "version",
                  "node_pools": [
                    null
                  ],
                  "addons": [
                    null
                  ],
                  "allow_downgrade": true
                }
              }
            }
          ],
          "created_at": "2026-10-03T09:30:00Z",
          "updated_at": "2026-10-03T09:30:00Z"
        }
      ],
      "next_cursor": null
    }

    Plan a migration

    Builds a plan from a scan that succeeded: each server, disk, network, firewall group, database, key and person mapped to its Pantech equivalent, sized against today's plans, with anything that cannot move yet flagged and explained. Nothing is created: the plan is something to review, edit and export. region defaults to the first Pantech region. At most 25 migrations per organization. Owners and admins only.

    The response includes a live price comparison: Pantech's monthly price for the planned servers, disks and networks next to the source account's average monthly bill.

    POST/public/v1/migrations
    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.

    Body

    application/json
    • scan_idstringrequired
    • namestringrequired
    • regionstring

      A Pantech region code; the first region when left out.

    Response 201

    The plan.
    • idstringrequired
    • namestringrequired
    • regionstringrequired
    • connection_idstringrequired
    • scan_idstringrequired
    • stagestringrequired

      planning. Copying arrives in a later release.

      One of planning.

    • versionintegerrequired
    • summaryMigrationSummaryrequired
      Show 4 child fields
      • plannedintegerrequired
      • excludedintegerrequired
      • unsupportedintegerrequired
      • by_kindobjectrequired

        Planned items per kind.

    • estimateMigrationEstimaterequired

      Pantech's monthly price for the plan next to the source's monthly bill, computed when read.

      Show 10 child fields
      • currencystringrequired
      • pantech_pricedbooleanrequired

        False when part of the plan could not be priced; then pantech_monthly_minor is null.

      • pantech_monthly_minorinteger or nullrequired
      • coversarray of stringrequired

        What the Pantech price includes: servers, volumes, networks.

      • not_coveredarray of stringrequired

        Planned items the price leaves out, e.g. databases.

      • source_knownbooleanrequired
      • source_monthly_minorinteger or nullrequired
      • source_currencystring or nullrequired
      • source_monthsintegerrequired
      • source_scopestringrequired

        whole_account: the source figure is the whole cloud bill.

        One of whole_account.

    • itemsarray of MigrationItemrequired

      Null in a list.

      Show 6 child fields
      • keystringrequired

        Stable across edits: kind, region and the source id.

      • kindstringrequired

        One of network, subnet, security_group, instance, volume, public_ip, load_balancer, database, ssh_key, user, bucket, kubernetes_cluster.

      • sourceMigrationItemSourcerequired
        Show 7 child fields
        • idstringrequired
        • namestring or nullrequired
        • regionstring or nullrequired
        • summarystringrequired
        • vcpuinteger or nullrequired
        • memory_mibinteger or nullrequired
        • disk_gbinteger or nullrequired
      • statusstringrequired

        One of planned, excluded, unsupported.

      • flagsarray of MigrationFlagrequired
        Show 3 child fields
        • codestringrequired
        • messagestringrequired
        • blockingbooleanrequired

          A blocking flag makes the item unsupported.

      • targetMigrationItemTargetrequired

        What the item becomes on Pantech; fields that don't apply to its kind are null or empty.

        Show 19 child fields
        • bucketMigrationBucketTargetrequired

          The Pantech bucket a bucket item becomes; null for every other kind.

          Show 7 child fields
          • namestring or nullrequired

            A valid Pantech bucket name made from the source's; null when none could be made.

          • regionstringrequired
          • versioningbooleanrequired
          • public_readbooleanrequired

            The source bucket was public. The Pantech bucket stays private unless the copy asks.

          • size_bytesinteger or nullrequired

            The source's own daily metric, read by the scan; null when unknown.

          • object_countinteger or nullrequired

            The source's own daily metric, read by the scan; null when unknown.

          • size_as_ofstring or nullrequired

            The day (YYYY-MM-DD) the size and object count describe: show them as "as of" this day.

        • plan_slugstring or nullrequired
        • disk_gbinteger or nullrequired
        • cidrstring or nullrequired
        • network_keystring or nullrequired
        • subnet_keystring or nullrequired
        • instance_keystring or nullrequired
        • rulesarray of MigrationRulerequired
          Show 4 child fields
          • directionstringrequired

            One of ingress, egress.

          • protocolstringrequired

            One of tcp, udp, icmp, all.

          • port_rangestring or nullrequired
          • cidrstringrequired
        • enginestring or nullrequired
        • engine_versionstring or nullrequired
        • storage_gbinteger or nullrequired
        • rolestring or nullrequired

          One of admin, member, null.

        • emailstring or nullrequired
        • public_keystring or nullrequired
        • listenersarray of MigrationListenerrequired
          Show 2 child fields
          • protocolstringrequired
          • portintegerrequired
        • image_slugstring or nullrequired

          The image a server is planned on when its operating system decides it (Windows Server).

        • invite_idstring or nullrequired

          The Pantech invite sent to this person from this plan.

        • invited_atstring or nullrequired
        • kubernetesMigrationKubernetesTargetrequired

          What a kubernetes_cluster item becomes on Pantech; null for every other kind.

          Show 5 child fields
          • version_idstring or nullrequired
          • versionstring or nullrequired
          • node_poolsarray of MigrationNodePoolrequired
            Show 7 child fields
            • namestringrequired
            • plan_slugstring or nullrequired
            • countintegerrequired
            • autoscalingbooleanrequired
            • minintegerrequired
            • maxintegerrequired
            • source_namestringrequired
          • addonsarray of stringrequired
          • allow_downgradebooleanrequired

            The customer consented to a lower Kubernetes version than the source runs.

    • 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.
    • 404CLOUD_SCAN_NOT_FOUND: no scan with this id exists in your organization.
    • 409CLOUD_SCAN_NOT_READY: the scan has not succeeded. IDEMPOTENCY_CONFLICT: this Idempotency-Key was used with another scan.
    • 422VALIDATION_FAILED: a field is invalid; errors names it. region must be a Pantech region code.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    Body
    Idempotency
    curl -X POST "https://api.pantechdynamics.com/public/v1/migrations" \
      -H "Authorization: Bearer $PANTECH_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d '{
        "scan_id": "csn_06gk3x9tq7m2v8r4y1c5d0zp8w",
        "name": "web-1"
      }'
    Response 201
    {
      "id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "name": "web-1",
      "region": "af-abj",
      "connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "scan_id": "csn_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "stage": "planning",
      "version": 1,
      "summary": {
        "planned": 1,
        "excluded": 1,
        "unsupported": 1,
        "by_kind": {}
      },
      "estimate": {
        "currency": "NGN",
        "pantech_priced": true,
        "pantech_monthly_minor": 1,
        "covers": [
          "covers"
        ],
        "not_covered": [
          "not-covered"
        ],
        "source_known": true,
        "source_monthly_minor": 1,
        "source_currency": "source-currency",
        "source_months": 1,
        "source_scope": "whole_account"
      },
      "items": [
        {
          "key": "key",
          "kind": "network",
          "source": {
            "id": "id",
            "name": "web-1",
            "region": "af-abj",
            "summary": "summary",
            "vcpu": 2,
            "memory_mib": 1,
            "disk_gb": 80
          },
          "status": "planned",
          "flags": [
            {
              "code": "starter",
              "message": "message",
              "blocking": true
            }
          ],
          "target": {
            "bucket": {
              "name": "web-1",
              "region": "af-abj",
              "versioning": true,
              "public_read": true,
              "size_bytes": 1610612736,
              "object_count": 1,
              "size_as_of": "2030-11-14"
            },
            "plan_slug": "starter",
            "disk_gb": 80,
            "cidr": "<vpc-cidr>",
            "network_key": "network-key",
            "subnet_key": "subnet-key",
            "instance_key": "instance-key",
            "rules": [
              {
                "direction": "ingress",
                "protocol": "tcp",
                "port_range": "22",
                "cidr": "<vpc-cidr>"
              }
            ],
            "engine": "postgresql",
            "engine_version": "engine-version",
            "storage_gb": 100,
            "role": "admin",
            "email": "email",
            "public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIExample deploy@ci",
            "listeners": [
              {
                "protocol": "protocol",
                "port": 22
              }
            ],
            "image_slug": "ubuntu-24-04",
            "invite_id": "invite-id",
            "invited_at": "2026-10-03T09:30:00Z",
            "kubernetes": {
              "version_id": "version-id",
              "version": "version",
              "node_pools": [
                {
                  "name": "web-1",
                  "plan_slug": "starter",
                  "count": 1,
                  "autoscaling": true,
                  "min": 1,
                  "max": 1,
                  "source_name": "source-name"
                }
              ],
              "addons": [
                "addons"
              ],
              "allow_downgrade": true
            }
          }
        }
      ],
      "created_at": "2026-10-03T09:30:00Z",
      "updated_at": "2026-10-03T09:30:00Z"
    }

    Get a migration

    A plan with every item and a price comparison computed now, from current prices.

    GET/public/v1/migrations/{migration_id}
    Read keyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    Path parameters

    • migration_idstringrequired

    Response 200

    The plan.
    • idstringrequired
    • namestringrequired
    • regionstringrequired
    • connection_idstringrequired
    • scan_idstringrequired
    • stagestringrequired

      planning. Copying arrives in a later release.

      One of planning.

    • versionintegerrequired
    • summaryMigrationSummaryrequired
      Show 4 child fields
      • plannedintegerrequired
      • excludedintegerrequired
      • unsupportedintegerrequired
      • by_kindobjectrequired

        Planned items per kind.

    • estimateMigrationEstimaterequired

      Pantech's monthly price for the plan next to the source's monthly bill, computed when read.

      Show 10 child fields
      • currencystringrequired
      • pantech_pricedbooleanrequired

        False when part of the plan could not be priced; then pantech_monthly_minor is null.

      • pantech_monthly_minorinteger or nullrequired
      • coversarray of stringrequired

        What the Pantech price includes: servers, volumes, networks.

      • not_coveredarray of stringrequired

        Planned items the price leaves out, e.g. databases.

      • source_knownbooleanrequired
      • source_monthly_minorinteger or nullrequired
      • source_currencystring or nullrequired
      • source_monthsintegerrequired
      • source_scopestringrequired

        whole_account: the source figure is the whole cloud bill.

        One of whole_account.

    • itemsarray of MigrationItemrequired

      Null in a list.

      Show 6 child fields
      • keystringrequired

        Stable across edits: kind, region and the source id.

      • kindstringrequired

        One of network, subnet, security_group, instance, volume, public_ip, load_balancer, database, ssh_key, user, bucket, kubernetes_cluster.

      • sourceMigrationItemSourcerequired
        Show 7 child fields
        • idstringrequired
        • namestring or nullrequired
        • regionstring or nullrequired
        • summarystringrequired
        • vcpuinteger or nullrequired
        • memory_mibinteger or nullrequired
        • disk_gbinteger or nullrequired
      • statusstringrequired

        One of planned, excluded, unsupported.

      • flagsarray of MigrationFlagrequired
        Show 3 child fields
        • codestringrequired
        • messagestringrequired
        • blockingbooleanrequired

          A blocking flag makes the item unsupported.

      • targetMigrationItemTargetrequired

        What the item becomes on Pantech; fields that don't apply to its kind are null or empty.

        Show 19 child fields
        • bucketMigrationBucketTargetrequired

          The Pantech bucket a bucket item becomes; null for every other kind.

          Show 7 child fields
          • namestring or nullrequired

            A valid Pantech bucket name made from the source's; null when none could be made.

          • regionstringrequired
          • versioningbooleanrequired
          • public_readbooleanrequired

            The source bucket was public. The Pantech bucket stays private unless the copy asks.

          • size_bytesinteger or nullrequired

            The source's own daily metric, read by the scan; null when unknown.

          • object_countinteger or nullrequired

            The source's own daily metric, read by the scan; null when unknown.

          • size_as_ofstring or nullrequired

            The day (YYYY-MM-DD) the size and object count describe: show them as "as of" this day.

        • plan_slugstring or nullrequired
        • disk_gbinteger or nullrequired
        • cidrstring or nullrequired
        • network_keystring or nullrequired
        • subnet_keystring or nullrequired
        • instance_keystring or nullrequired
        • rulesarray of MigrationRulerequired
          Show 4 child fields
          • directionstringrequired

            One of ingress, egress.

          • protocolstringrequired

            One of tcp, udp, icmp, all.

          • port_rangestring or nullrequired
          • cidrstringrequired
        • enginestring or nullrequired
        • engine_versionstring or nullrequired
        • storage_gbinteger or nullrequired
        • rolestring or nullrequired

          One of admin, member, null.

        • emailstring or nullrequired
        • public_keystring or nullrequired
        • listenersarray of MigrationListenerrequired
          Show 2 child fields
          • protocolstringrequired
          • portintegerrequired
        • image_slugstring or nullrequired

          The image a server is planned on when its operating system decides it (Windows Server).

        • invite_idstring or nullrequired

          The Pantech invite sent to this person from this plan.

        • invited_atstring or nullrequired
        • kubernetesMigrationKubernetesTargetrequired

          What a kubernetes_cluster item becomes on Pantech; null for every other kind.

          Show 5 child fields
          • version_idstring or nullrequired
          • versionstring or nullrequired
          • node_poolsarray of MigrationNodePoolrequired
            Show 7 child fields
            • namestringrequired
            • plan_slugstring or nullrequired
            • countintegerrequired
            • autoscalingbooleanrequired
            • minintegerrequired
            • maxintegerrequired
            • source_namestringrequired
          • addonsarray of stringrequired
          • allow_downgradebooleanrequired

            The customer consented to a lower Kubernetes version than the source runs.

    • 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.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later. 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/migrations/mig_06gk3x9tq7m2v8r4y1c5d0zp8w" \
      -H "Authorization: Bearer $PANTECH_API_KEY"
    Response 200
    {
      "id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "name": "web-1",
      "region": "af-abj",
      "connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "scan_id": "csn_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "stage": "planning",
      "version": 1,
      "summary": {
        "planned": 1,
        "excluded": 1,
        "unsupported": 1,
        "by_kind": {}
      },
      "estimate": {
        "currency": "NGN",
        "pantech_priced": true,
        "pantech_monthly_minor": 1,
        "covers": [
          "covers"
        ],
        "not_covered": [
          "not-covered"
        ],
        "source_known": true,
        "source_monthly_minor": 1,
        "source_currency": "source-currency",
        "source_months": 1,
        "source_scope": "whole_account"
      },
      "items": [
        {
          "key": "key",
          "kind": "network",
          "source": {
            "id": "id",
            "name": "web-1",
            "region": "af-abj",
            "summary": "summary",
            "vcpu": 2,
            "memory_mib": 1,
            "disk_gb": 80
          },
          "status": "planned",
          "flags": [
            {
              "code": "starter",
              "message": "message",
              "blocking": true
            }
          ],
          "target": {
            "bucket": {
              "name": "web-1",
              "region": "af-abj",
              "versioning": true,
              "public_read": true,
              "size_bytes": 1610612736,
              "object_count": 1,
              "size_as_of": "2030-11-14"
            },
            "plan_slug": "starter",
            "disk_gb": 80,
            "cidr": "<vpc-cidr>",
            "network_key": "network-key",
            "subnet_key": "subnet-key",
            "instance_key": "instance-key",
            "rules": [
              {
                "direction": "ingress",
                "protocol": "tcp",
                "port_range": "22",
                "cidr": "<vpc-cidr>"
              }
            ],
            "engine": "postgresql",
            "engine_version": "engine-version",
            "storage_gb": 100,
            "role": "admin",
            "email": "email",
            "public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIExample deploy@ci",
            "listeners": [
              {
                "protocol": "protocol",
                "port": 22
              }
            ],
            "image_slug": "ubuntu-24-04",
            "invite_id": "invite-id",
            "invited_at": "2026-10-03T09:30:00Z",
            "kubernetes": {
              "version_id": "version-id",
              "version": "version",
              "node_pools": [
                {
                  "name": "web-1",
                  "plan_slug": "starter",
                  "count": 1,
                  "autoscaling": true,
                  "min": 1,
                  "max": 1,
                  "source_name": "source-name"
                }
              ],
              "addons": [
                "addons"
              ],
              "allow_downgrade": true
            }
          }
        }
      ],
      "created_at": "2026-10-03T09:30:00Z",
      "updated_at": "2026-10-03T09:30:00Z"
    }

    Rename a migration

    Changes a plan's name. Owners and admins only.

    PATCH/public/v1/migrations/{migration_id}
    Write keyNeeds Idempotency-KeyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    • Idempotency-Keystringrequired

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

      At most 255 characters.

    Path parameters

    • migration_idstringrequired

    Body

    application/json
    • namestringrequired

    Response 200

    The plan.
    • idstringrequired
    • namestringrequired
    • regionstringrequired
    • connection_idstringrequired
    • scan_idstringrequired
    • stagestringrequired

      planning. Copying arrives in a later release.

      One of planning.

    • versionintegerrequired
    • summaryMigrationSummaryrequired
      Show 4 child fields
      • plannedintegerrequired
      • excludedintegerrequired
      • unsupportedintegerrequired
      • by_kindobjectrequired

        Planned items per kind.

    • estimateMigrationEstimaterequired

      Pantech's monthly price for the plan next to the source's monthly bill, computed when read.

      Show 10 child fields
      • currencystringrequired
      • pantech_pricedbooleanrequired

        False when part of the plan could not be priced; then pantech_monthly_minor is null.

      • pantech_monthly_minorinteger or nullrequired
      • coversarray of stringrequired

        What the Pantech price includes: servers, volumes, networks.

      • not_coveredarray of stringrequired

        Planned items the price leaves out, e.g. databases.

      • source_knownbooleanrequired
      • source_monthly_minorinteger or nullrequired
      • source_currencystring or nullrequired
      • source_monthsintegerrequired
      • source_scopestringrequired

        whole_account: the source figure is the whole cloud bill.

        One of whole_account.

    • itemsarray of MigrationItemrequired

      Null in a list.

      Show 6 child fields
      • keystringrequired

        Stable across edits: kind, region and the source id.

      • kindstringrequired

        One of network, subnet, security_group, instance, volume, public_ip, load_balancer, database, ssh_key, user, bucket, kubernetes_cluster.

      • sourceMigrationItemSourcerequired
        Show 7 child fields
        • idstringrequired
        • namestring or nullrequired
        • regionstring or nullrequired
        • summarystringrequired
        • vcpuinteger or nullrequired
        • memory_mibinteger or nullrequired
        • disk_gbinteger or nullrequired
      • statusstringrequired

        One of planned, excluded, unsupported.

      • flagsarray of MigrationFlagrequired
        Show 3 child fields
        • codestringrequired
        • messagestringrequired
        • blockingbooleanrequired

          A blocking flag makes the item unsupported.

      • targetMigrationItemTargetrequired

        What the item becomes on Pantech; fields that don't apply to its kind are null or empty.

        Show 19 child fields
        • bucketMigrationBucketTargetrequired

          The Pantech bucket a bucket item becomes; null for every other kind.

          Show 7 child fields
          • namestring or nullrequired

            A valid Pantech bucket name made from the source's; null when none could be made.

          • regionstringrequired
          • versioningbooleanrequired
          • public_readbooleanrequired

            The source bucket was public. The Pantech bucket stays private unless the copy asks.

          • size_bytesinteger or nullrequired

            The source's own daily metric, read by the scan; null when unknown.

          • object_countinteger or nullrequired

            The source's own daily metric, read by the scan; null when unknown.

          • size_as_ofstring or nullrequired

            The day (YYYY-MM-DD) the size and object count describe: show them as "as of" this day.

        • plan_slugstring or nullrequired
        • disk_gbinteger or nullrequired
        • cidrstring or nullrequired
        • network_keystring or nullrequired
        • subnet_keystring or nullrequired
        • instance_keystring or nullrequired
        • rulesarray of MigrationRulerequired
          Show 4 child fields
          • directionstringrequired

            One of ingress, egress.

          • protocolstringrequired

            One of tcp, udp, icmp, all.

          • port_rangestring or nullrequired
          • cidrstringrequired
        • enginestring or nullrequired
        • engine_versionstring or nullrequired
        • storage_gbinteger or nullrequired
        • rolestring or nullrequired

          One of admin, member, null.

        • emailstring or nullrequired
        • public_keystring or nullrequired
        • listenersarray of MigrationListenerrequired
          Show 2 child fields
          • protocolstringrequired
          • portintegerrequired
        • image_slugstring or nullrequired

          The image a server is planned on when its operating system decides it (Windows Server).

        • invite_idstring or nullrequired

          The Pantech invite sent to this person from this plan.

        • invited_atstring or nullrequired
        • kubernetesMigrationKubernetesTargetrequired

          What a kubernetes_cluster item becomes on Pantech; null for every other kind.

          Show 5 child fields
          • version_idstring or nullrequired
          • versionstring or nullrequired
          • node_poolsarray of MigrationNodePoolrequired
            Show 7 child fields
            • namestringrequired
            • plan_slugstring or nullrequired
            • countintegerrequired
            • autoscalingbooleanrequired
            • minintegerrequired
            • maxintegerrequired
            • source_namestringrequired
          • addonsarray of stringrequired
          • allow_downgradebooleanrequired

            The customer consented to a lower Kubernetes version than the source runs.

    • 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.
    • 409CONFLICT: the plan changed at the same time. Read it again and retry.
    • 422VALIDATION_FAILED: a field is invalid; errors names it.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later. 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 PATCH "https://api.pantechdynamics.com/public/v1/migrations/mig_06gk3x9tq7m2v8r4y1c5d0zp8w" \
      -H "Authorization: Bearer $PANTECH_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d '{
        "name": "web-1"
      }'
    Response 200
    {
      "id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "name": "web-1",
      "region": "af-abj",
      "connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "scan_id": "csn_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "stage": "planning",
      "version": 1,
      "summary": {
        "planned": 1,
        "excluded": 1,
        "unsupported": 1,
        "by_kind": {}
      },
      "estimate": {
        "currency": "NGN",
        "pantech_priced": true,
        "pantech_monthly_minor": 1,
        "covers": [
          "covers"
        ],
        "not_covered": [
          "not-covered"
        ],
        "source_known": true,
        "source_monthly_minor": 1,
        "source_currency": "source-currency",
        "source_months": 1,
        "source_scope": "whole_account"
      },
      "items": [
        {
          "key": "key",
          "kind": "network",
          "source": {
            "id": "id",
            "name": "web-1",
            "region": "af-abj",
            "summary": "summary",
            "vcpu": 2,
            "memory_mib": 1,
            "disk_gb": 80
          },
          "status": "planned",
          "flags": [
            {
              "code": "starter",
              "message": "message",
              "blocking": true
            }
          ],
          "target": {
            "bucket": {
              "name": "web-1",
              "region": "af-abj",
              "versioning": true,
              "public_read": true,
              "size_bytes": 1610612736,
              "object_count": 1,
              "size_as_of": "2030-11-14"
            },
            "plan_slug": "starter",
            "disk_gb": 80,
            "cidr": "<vpc-cidr>",
            "network_key": "network-key",
            "subnet_key": "subnet-key",
            "instance_key": "instance-key",
            "rules": [
              {
                "direction": "ingress",
                "protocol": "tcp",
                "port_range": "22",
                "cidr": "<vpc-cidr>"
              }
            ],
            "engine": "postgresql",
            "engine_version": "engine-version",
            "storage_gb": 100,
            "role": "admin",
            "email": "email",
            "public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIExample deploy@ci",
            "listeners": [
              {
                "protocol": "protocol",
                "port": 22
              }
            ],
            "image_slug": "ubuntu-24-04",
            "invite_id": "invite-id",
            "invited_at": "2026-10-03T09:30:00Z",
            "kubernetes": {
              "version_id": "version-id",
              "version": "version",
              "node_pools": [
                {
                  "name": "web-1",
                  "plan_slug": "starter",
                  "count": 1,
                  "autoscaling": true,
                  "min": 1,
                  "max": 1,
                  "source_name": "source-name"
                }
              ],
              "addons": [
                "addons"
              ],
              "allow_downgrade": true
            }
          }
        }
      ],
      "created_at": "2026-10-03T09:30:00Z",
      "updated_at": "2026-10-03T09:30:00Z"
    }

    Delete a migration

    Deletes a plan. Nothing in Pantech or in your other cloud is touched. Owners and admins only.

    Scope: write. Destructive: an AI app's key also needs delete.

    DELETE/public/v1/migrations/{migration_id}
    Write keyNeeds Idempotency-KeyReturns204No Content

    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

    Response 204

    Deleted. No body.

    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.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    Path
    Idempotency
    curl -X DELETE "https://api.pantechdynamics.com/public/v1/migrations/mig_06gk3x9tq7m2v8r4y1c5d0zp8w" \
      -H "Authorization: Bearer $PANTECH_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)"
    HTTP/1.1 204 No Content

    Edit a plan item

    Changes one item, named by its key: leave it out of the move (excluded), choose another plan (plan_slug, for servers and databases), a size (storage_gb, for disks and databases), an address range (cidr, for networks and subnets), or a person's role and email. Items flagged as unsupported stay unsupported. Owners and admins only.

    PATCH/public/v1/migrations/{migration_id}/items
    Write keyNeeds Idempotency-KeyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    • Idempotency-Keystringrequired

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

      At most 255 characters.

    Path parameters

    • migration_idstringrequired

    Body

    application/json
    • keystringrequired
    • excludedboolean
    • plan_slugstring
    • storage_gbinteger

      At least 1.

    • cidrstring
    • rolestring

      One of member, admin.

    • emailstring
    • allow_version_downgradeboolean

      On a kubernetes_cluster item: consent to a lower Kubernetes version than the source runs.

    Response 200

    The plan.
    • idstringrequired
    • namestringrequired
    • regionstringrequired
    • connection_idstringrequired
    • scan_idstringrequired
    • stagestringrequired

      planning. Copying arrives in a later release.

      One of planning.

    • versionintegerrequired
    • summaryMigrationSummaryrequired
      Show 4 child fields
      • plannedintegerrequired
      • excludedintegerrequired
      • unsupportedintegerrequired
      • by_kindobjectrequired

        Planned items per kind.

    • estimateMigrationEstimaterequired

      Pantech's monthly price for the plan next to the source's monthly bill, computed when read.

      Show 10 child fields
      • currencystringrequired
      • pantech_pricedbooleanrequired

        False when part of the plan could not be priced; then pantech_monthly_minor is null.

      • pantech_monthly_minorinteger or nullrequired
      • coversarray of stringrequired

        What the Pantech price includes: servers, volumes, networks.

      • not_coveredarray of stringrequired

        Planned items the price leaves out, e.g. databases.

      • source_knownbooleanrequired
      • source_monthly_minorinteger or nullrequired
      • source_currencystring or nullrequired
      • source_monthsintegerrequired
      • source_scopestringrequired

        whole_account: the source figure is the whole cloud bill.

        One of whole_account.

    • itemsarray of MigrationItemrequired

      Null in a list.

      Show 6 child fields
      • keystringrequired

        Stable across edits: kind, region and the source id.

      • kindstringrequired

        One of network, subnet, security_group, instance, volume, public_ip, load_balancer, database, ssh_key, user, bucket, kubernetes_cluster.

      • sourceMigrationItemSourcerequired
        Show 7 child fields
        • idstringrequired
        • namestring or nullrequired
        • regionstring or nullrequired
        • summarystringrequired
        • vcpuinteger or nullrequired
        • memory_mibinteger or nullrequired
        • disk_gbinteger or nullrequired
      • statusstringrequired

        One of planned, excluded, unsupported.

      • flagsarray of MigrationFlagrequired
        Show 3 child fields
        • codestringrequired
        • messagestringrequired
        • blockingbooleanrequired

          A blocking flag makes the item unsupported.

      • targetMigrationItemTargetrequired

        What the item becomes on Pantech; fields that don't apply to its kind are null or empty.

        Show 19 child fields
        • bucketMigrationBucketTargetrequired

          The Pantech bucket a bucket item becomes; null for every other kind.

          Show 7 child fields
          • namestring or nullrequired

            A valid Pantech bucket name made from the source's; null when none could be made.

          • regionstringrequired
          • versioningbooleanrequired
          • public_readbooleanrequired

            The source bucket was public. The Pantech bucket stays private unless the copy asks.

          • size_bytesinteger or nullrequired

            The source's own daily metric, read by the scan; null when unknown.

          • object_countinteger or nullrequired

            The source's own daily metric, read by the scan; null when unknown.

          • size_as_ofstring or nullrequired

            The day (YYYY-MM-DD) the size and object count describe: show them as "as of" this day.

        • plan_slugstring or nullrequired
        • disk_gbinteger or nullrequired
        • cidrstring or nullrequired
        • network_keystring or nullrequired
        • subnet_keystring or nullrequired
        • instance_keystring or nullrequired
        • rulesarray of MigrationRulerequired
          Show 4 child fields
          • directionstringrequired

            One of ingress, egress.

          • protocolstringrequired

            One of tcp, udp, icmp, all.

          • port_rangestring or nullrequired
          • cidrstringrequired
        • enginestring or nullrequired
        • engine_versionstring or nullrequired
        • storage_gbinteger or nullrequired
        • rolestring or nullrequired

          One of admin, member, null.

        • emailstring or nullrequired
        • public_keystring or nullrequired
        • listenersarray of MigrationListenerrequired
          Show 2 child fields
          • protocolstringrequired
          • portintegerrequired
        • image_slugstring or nullrequired

          The image a server is planned on when its operating system decides it (Windows Server).

        • invite_idstring or nullrequired

          The Pantech invite sent to this person from this plan.

        • invited_atstring or nullrequired
        • kubernetesMigrationKubernetesTargetrequired

          What a kubernetes_cluster item becomes on Pantech; null for every other kind.

          Show 5 child fields
          • version_idstring or nullrequired
          • versionstring or nullrequired
          • node_poolsarray of MigrationNodePoolrequired
            Show 7 child fields
            • namestringrequired
            • plan_slugstring or nullrequired
            • countintegerrequired
            • autoscalingbooleanrequired
            • minintegerrequired
            • maxintegerrequired
            • source_namestringrequired
          • addonsarray of stringrequired
          • allow_downgradebooleanrequired

            The customer consented to a lower Kubernetes version than the source runs.

    • 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.
    • 409CONFLICT: the plan changed at the same time. Read it again and retry.
    • 422VALIDATION_FAILED: key names no item (UNKNOWN_ITEM), or the change doesn't apply to it (INVALID_TARGET).
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later. 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 PATCH "https://api.pantechdynamics.com/public/v1/migrations/mig_06gk3x9tq7m2v8r4y1c5d0zp8w/items" \
      -H "Authorization: Bearer $PANTECH_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d '{
        "key": "key"
      }'
    Response 200
    {
      "id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "name": "web-1",
      "region": "af-abj",
      "connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "scan_id": "csn_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "stage": "planning",
      "version": 1,
      "summary": {
        "planned": 1,
        "excluded": 1,
        "unsupported": 1,
        "by_kind": {}
      },
      "estimate": {
        "currency": "NGN",
        "pantech_priced": true,
        "pantech_monthly_minor": 1,
        "covers": [
          "covers"
        ],
        "not_covered": [
          "not-covered"
        ],
        "source_known": true,
        "source_monthly_minor": 1,
        "source_currency": "source-currency",
        "source_months": 1,
        "source_scope": "whole_account"
      },
      "items": [
        {
          "key": "key",
          "kind": "network",
          "source": {
            "id": "id",
            "name": "web-1",
            "region": "af-abj",
            "summary": "summary",
            "vcpu": 2,
            "memory_mib": 1,
            "disk_gb": 80
          },
          "status": "planned",
          "flags": [
            {
              "code": "starter",
              "message": "message",
              "blocking": true
            }
          ],
          "target": {
            "bucket": {
              "name": "web-1",
              "region": "af-abj",
              "versioning": true,
              "public_read": true,
              "size_bytes": 1610612736,
              "object_count": 1,
              "size_as_of": "2030-11-14"
            },
            "plan_slug": "starter",
            "disk_gb": 80,
            "cidr": "<vpc-cidr>",
            "network_key": "network-key",
            "subnet_key": "subnet-key",
            "instance_key": "instance-key",
            "rules": [
              {
                "direction": "ingress",
                "protocol": "tcp",
                "port_range": "22",
                "cidr": "<vpc-cidr>"
              }
            ],
            "engine": "postgresql",
            "engine_version": "engine-version",
            "storage_gb": 100,
            "role": "admin",
            "email": "email",
            "public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIExample deploy@ci",
            "listeners": [
              {
                "protocol": "protocol",
                "port": 22
              }
            ],
            "image_slug": "ubuntu-24-04",
            "invite_id": "invite-id",
            "invited_at": "2026-10-03T09:30:00Z",
            "kubernetes": {
              "version_id": "version-id",
              "version": "version",
              "node_pools": [
                {
                  "name": "web-1",
                  "plan_slug": "starter",
                  "count": 1,
                  "autoscaling": true,
                  "min": 1,
                  "max": 1,
                  "source_name": "source-name"
                }
              ],
              "addons": [
                "addons"
              ],
              "allow_downgrade": true
            }
          }
        }
      ],
      "created_at": "2026-10-03T09:30:00Z",
      "updated_at": "2026-10-03T09:30:00Z"
    }

    Export a migration as Terraform

    The plan's planned items as Terraform for the Pantech-Dynamics/pantechdynamics provider: main.tf and variables.tf. Values Pantech cannot know (the image to start from, an SSH key, disk offerings, database passwords) are variables without defaults. Review it, then run terraform plan.

    GET/public/v1/migrations/{migration_id}/terraform
    Read keyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    Path parameters

    • migration_idstringrequired

    Response 200

    The files.
    • filesarray of objectrequired
      Show 2 child fields
      • namestringrequired
      • contentstringrequired

    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.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later. 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/migrations/mig_06gk3x9tq7m2v8r4y1c5d0zp8w/terraform" \
      -H "Authorization: Bearer $PANTECH_API_KEY"
    Response 200
    {
      "files": [
        {
          "name": "web-1",
          "content": "content"
        }
      ]
    }

    List the clouds Migrate can read

    Every cloud Pantech Migrate can connect, how it reads each (federated: Pantech signs short-lived tokens your cloud trusts; agent: you run the Pantech Migrate agent, which keeps your read-only token on your machine), and whether a scan reads its spend and its people.

    GET/public/v1/cloud-providers
    Read keyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    Response 200

    The providers.
    • dataarray of CloudProviderrequired
      Show 6 child fields
      • slugstringrequired

        One of aws, gcp, azure, huawei, digitalocean, hetzner, linode, vultr, contabo, openstack.

      • namestringrequired
      • accessstringrequired

        One of federated, agent.

      • cost_readablebooleanrequired

        Whether a scan reads the source's spend. When false the comparison says the spend is not available.

      • people_readablebooleanrequired

        Whether a scan lists the people with access. When false, add them to the plan by hand.

      • availablebooleanrequired

        Whether this deployment can connect it now.

    • next_cursorstring or nullrequired

      Always null: this list is returned whole.

    Errors

    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (read for GET, write for changes; an AI app's key also needs delete for a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access. FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin. AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later. MIGRATE_AGENT_UNAVAILABLE / MIGRATE_INVITES_UNAVAILABLE: this part of Pantech Migrate is 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/cloud-providers" \
      -H "Authorization: Bearer $PANTECH_API_KEY"
    Response 200
    {
      "data": [
        {
          "slug": "aws",
          "name": "web-1",
          "access": "federated",
          "cost_readable": true,
          "people_readable": true,
          "available": true
        }
      ],
      "next_cursor": null
    }

    Enroll a Migrate agent

    A one-time enrollment code for the connection's Pantech Migrate agent, shown only in this response, valid once for an hour. Any connection may have an agent: for AWS, Google Cloud, Azure and Huawei Cloud it runs server copies, database imports and Kubernetes moves (Pantech scans those clouds itself); for the other clouds it scans too. Run enroll_command where the agent will run. Issuing a code replaces any unused one; redeeming it replaces the connection's earlier agent. Owners and admins only.

    Idempotency: not replayed: each call issues a new code.

    POST/public/v1/cloud-connections/{connection_id}/agent-enrollments
    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

    • connection_idstringrequired

    Response 201

    The code.
    • codestringrequired

      The one-time enrollment code, shown only now. It works once, for an hour.

    • expires_atstringrequired
    • enroll_commandstringrequired

    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.
    • 404CLOUD_CONNECTION_NOT_FOUND: no cloud connection with this id exists in your organization.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later. MIGRATE_AGENT_UNAVAILABLE / MIGRATE_INVITES_UNAVAILABLE: this part of Pantech Migrate is 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
    Idempotency
    curl -X POST "https://api.pantechdynamics.com/public/v1/cloud-connections/ccn_06gk3x9tq7m2v8r4y1c5d0zp8w/agent-enrollments" \
      -H "Authorization: Bearer $PANTECH_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)"
    Response 201
    {
      "code": "starter",
      "expires_at": "2026-10-03T09:30:00Z",
      "enroll_command": "enroll-command"
    }

    Revoke a connection's agent

    Ends the connection's Migrate agent at once: its credential stops working on its next request, and the server copies, database imports and Kubernetes moves it was running stop until a new agent is enrolled. A connection to a cloud Pantech scans with an agent then waits for a new one; a connection to AWS, Google Cloud, Azure or Huawei Cloud stays connected. Like disconnecting, this only takes access away. Owners and admins only.

    Idempotency: revoking again changes nothing.

    DELETE/public/v1/cloud-connections/{connection_id}/agent
    Write keyNeeds Idempotency-KeyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    • Idempotency-Keystringrequired

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

      At most 255 characters.

    Path parameters

    • connection_idstringrequired

    Response 200

    The connection.
    • idstringrequired
    • providerstringrequired

      One of aws, gcp, azure, huawei, digitalocean, hetzner, linode, vultr, contabo, openstack.

    • namestringrequired
    • statusstringrequired

      awaiting_role (federated providers: waiting for what the setup printed), awaiting_agent (other clouds: no agent enrolled; on AWS, Google Cloud, Azure and Huawei Cloud an agent never changes the status), verifying, connected or failed.

      One of awaiting_role, awaiting_agent, verifying, connected, failed.

    • failureCloudFailurerequired

      Why the last check or scan failed; null when it didn't.

      Show 2 child fields
      • codestringrequired

        One of assume_role_denied, permission_missing, provider_unavailable, scan_too_large, internal, agent_offline, token_rejected, invalid_upload.

      • messagestringrequired

        What to do about it.

    • role_arnstring or nullrequired
    • aws_account_idstring or nullrequired

      Set for AWS connections only; see external_account_id.

    • external_account_idstring or nullrequired

      The source account: an AWS account, a Google Cloud pool's project number, an Azure tenant, or what the agent reported.

    • gcpCloudGCPFederationrequired

      What the Google Cloud setup printed.

      Show 5 child fields
      • project_numberstringrequired
      • pool_idstringrequired
      • provider_idstringrequired
      • service_account_emailstringrequired
      • project_idsarray of stringrequired

        The projects to scan, 1 to 20.

    • azureCloudAzureFederationrequired

      What the Azure setup printed.

      Show 3 child fields
      • tenant_idstringrequired
      • client_idstringrequired

        The app registration's application (client) ID.

      • subscription_idsarray of stringrequired

        The subscriptions to scan, 1 to 20.

    • huaweiCloudHuaweiFederationrequired

      Your Huawei Cloud identity provider and the projects to scan.

      Show 2 child fields
      • identity_provider_idstringrequired
      • projectsarray of objectrequired

        1 to 20 region projects.

        Show 2 child fields
        • regionstringrequired
        • idstringrequired
    • agentCloudAgentStatusrequired

      The connection's enrolled agent; null when none is.

      Show 7 child fields
      • idstringrequired
      • onlinebooleanrequired

        Whether it polled in the last 2 minutes.

      • agent_versionstringrequired
      • platformstringrequired
      • enrolled_atstringrequired
      • last_seen_atstringrequired
      • credential_expires_atstringrequired
    • verified_atstring or nullrequired
    • created_atstringrequired
    • updated_atstringrequired
    • setupCloudConnectionSetuprequired

      What you run in your own cloud to connect it. Every setup grants read-only access, listed one permission at a time in permissions; none creates a key Pantech holds.

      Show 10 child fields
      • accessstringrequired

        federated: Pantech reads your cloud with 5-minute tokens it signs for this connection only (AWS, Google Cloud, Azure, Huawei Cloud). agent: you run the Pantech Migrate agent, which keeps your read-only token on your machine.

        One of federated, agent.

      • issuer_urlstring or nullrequired

        Pantech's identity provider URL, which your cloud trusts; null for agent providers.

      • audiencestring or nullrequired

        The audience every token carries; null for agent providers.

      • subjectstringrequired

        The subject your trust policy requires: this connection's id.

      • quick_create_urlstring or nullrequired

        Opens AWS's create-stack page with this template and connection filled in; null when not offered.

      • templatestringrequired

        The main setup file: AWS's CloudFormation template (JSON), Google Cloud's gcloud script, Azure's Azure CLI script, Huawei Cloud's steps, or, for agent providers, how to make a read-only token.

      • template_formatstringrequired

        One of cloudformation, shell, markdown, agent.

      • filesarray of objectrequired

        Further setup files, such as a Terraform version of the setup or JSON documents to paste.

        Show 2 child fields
        • namestringrequired
        • contentstringrequired
      • permissionsarray of stringrequired

        Every read-only permission the setup grants.

      • agentCloudAgentSetuprequired

        How to run the connection's Pantech Migrate agent. Every connection may have one: for AWS, Google Cloud, Azure and Huawei Cloud it runs server copies, database imports and Kubernetes moves and needs no cloud credential (token_variables is empty); for the other clouds it also scans, with your read-only credential. Null when the agent is not available.

        Show 8 child fields
        • imagestringrequired

          The agent's container image.

        • download_urlstring or nullrequired

          Where the agent's binaries are published.

        • api_urlstringrequired
        • token_variablesarray of stringrequired

          The environment variables the agent reads your read-only credential from, on your machine. It is never sent to Pantech. Empty for AWS, Google Cloud, Azure and Huawei Cloud, where Pantech scans without one.

        • token_how_tostringrequired
        • enroll_commandstringrequired

          Contains <ENROLLMENT_CODE> where the one-time code goes.

        • run_commandstringrequired
        • container_commandstringrequired

    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.
    • 404CLOUD_CONNECTION_NOT_FOUND: no cloud connection with this id exists in your organization.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later. MIGRATE_AGENT_UNAVAILABLE / MIGRATE_INVITES_UNAVAILABLE: this part of Pantech Migrate is 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
    Idempotency
    curl -X DELETE "https://api.pantechdynamics.com/public/v1/cloud-connections/ccn_06gk3x9tq7m2v8r4y1c5d0zp8w/agent" \
      -H "Authorization: Bearer $PANTECH_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)"
    Response 200
    {
      "id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "provider": "aws",
      "name": "web-1",
      "status": "awaiting_role",
      "failure": {
        "code": "assume_role_denied",
        "message": "message"
      },
      "role_arn": "role-arn",
      "aws_account_id": "aws-account-id",
      "external_account_id": "external-account-id",
      "gcp": {
        "project_number": "project-number",
        "pool_id": "pool-id",
        "provider_id": "provider-id",
        "service_account_email": "service-account-email",
        "project_ids": [
          "project-ids"
        ]
      },
      "azure": {
        "tenant_id": "tenant-id",
        "client_id": "client-id",
        "subscription_ids": [
          "subscription-ids"
        ]
      },
      "huawei": {
        "identity_provider_id": "identity-provider-id",
        "projects": [
          {
            "region": "af-abj",
            "id": "id"
          }
        ]
      },
      "agent": {
        "id": "cag_06gk3x9tq7m2v8r4y1c5d0zp8w",
        "online": true,
        "agent_version": "agent-version",
        "platform": "platform",
        "enrolled_at": "2026-10-03T09:30:00Z",
        "last_seen_at": "2026-10-03T09:30:00Z",
        "credential_expires_at": "2026-10-03T09:30:00Z"
      },
      "verified_at": "2026-10-03T09:30:00Z",
      "created_at": "2026-10-03T09:30:00Z",
      "updated_at": "2026-10-03T09:30:00Z",
      "setup": {
        "access": "federated",
        "issuer_url": "issuer-url",
        "audience": "audience",
        "subject": "subject",
        "quick_create_url": "quick-create-url",
        "template": "template",
        "template_format": "cloudformation",
        "files": [
          {
            "name": "web-1",
            "content": "content"
          }
        ],
        "permissions": [
          "permissions"
        ],
        "agent": {
          "image": "image",
          "download_url": "download-url",
          "api_url": "api-url",
          "token_variables": [
            "token-variables"
          ],
          "token_how_to": "token-how-to",
          "enroll_command": "enroll-command",
          "run_command": "run-command",
          "container_command": "container-command"
        }
      }
    }

    Invite a plan's people

    Sends Pantech invites to the people a plan lists (items of kind user), by key, with each item's role, through the organization's ordinary invite flow: the same email, rules and audit as inviting from Members. An admin can invite members only; a person suggested as admin comes back role_not_allowed. Owners and admins only.

    Idempotency: safe to repeat: a person already invited from this plan, already holding a pending invite, or already a member is reported and never invited twice.

    POST/public/v1/migrations/{migration_id}/invites
    Write keyNeeds Idempotency-KeyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    • Idempotency-Keystringrequired

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

      At most 255 characters.

    Path parameters

    • migration_idstringrequired

    Body

    application/json
    • keysarray of stringrequired

      The user items to invite, by key: 1 to 50.

    Response 200

    What happened to each person, and the plan.
    • resultsarray of MigrationInviteResultrequired
      Show 6 child fields
      • keystringrequired
      • emailstring or nullrequired
      • rolestring or nullrequired
      • outcomestringrequired

        invited; already_invited (from this plan or by hand); already_member; role_not_allowed (an admin can't invite an admin: change the person's role to member or ask an owner); skipped (see reason); failed (try again).

        One of invited, already_invited, already_member, role_not_allowed, skipped, failed.

      • reasonstring or nullrequired

        Why a person was skipped: email_missing, excluded, not_a_person, unknown_item.

      • invite_idstring or nullrequired
    • migrationMigrationrequired
      Show 12 child fields
      • idstringrequired
      • namestringrequired
      • regionstringrequired
      • connection_idstringrequired
      • scan_idstringrequired
      • stagestringrequired

        planning. Copying arrives in a later release.

        One of planning.

      • versionintegerrequired
      • summaryMigrationSummaryrequired
        Show 4 child fields
        • plannedintegerrequired
        • excludedintegerrequired
        • unsupportedintegerrequired
        • by_kindobjectrequired

          Planned items per kind.

      • estimateMigrationEstimaterequired

        Pantech's monthly price for the plan next to the source's monthly bill, computed when read.

        Show 10 child fields
        • currencystringrequired
        • pantech_pricedbooleanrequired

          False when part of the plan could not be priced; then pantech_monthly_minor is null.

        • pantech_monthly_minorinteger or nullrequired
        • coversarray of stringrequired

          What the Pantech price includes: servers, volumes, networks.

        • not_coveredarray of stringrequired

          Planned items the price leaves out, e.g. databases.

        • source_knownbooleanrequired
        • source_monthly_minorinteger or nullrequired
        • source_currencystring or nullrequired
        • source_monthsintegerrequired
        • source_scopestringrequired

          whole_account: the source figure is the whole cloud bill.

          One of whole_account.

      • itemsarray of MigrationItemrequired

        Null in a list.

        Show 6 child fields
        • keystringrequired

          Stable across edits: kind, region and the source id.

        • kindstringrequired

          One of network, subnet, security_group, instance, volume, public_ip, load_balancer, database, ssh_key, user, bucket, kubernetes_cluster.

        • sourceMigrationItemSourcerequired
          Show 7 child fields
          • idstringrequired
          • namestring or nullrequired
          • regionstring or nullrequired
          • summarystringrequired
          • vcpuinteger or nullrequired
          • memory_mibinteger or nullrequired
          • disk_gbinteger or nullrequired
        • statusstringrequired

          One of planned, excluded, unsupported.

        • flagsarray of MigrationFlagrequired
          Show 3 child fields
          • codestringrequired
          • messagestringrequired
          • blockingbooleanrequired

            A blocking flag makes the item unsupported.

        • targetMigrationItemTargetrequired

          What the item becomes on Pantech; fields that don't apply to its kind are null or empty.

          Show 19 child fields
          • bucketMigrationBucketTargetrequired

            The Pantech bucket a bucket item becomes; null for every other kind.

            Show 7 child fields
            • namestring or nullrequired

              A valid Pantech bucket name made from the source's; null when none could be made.

            • regionstringrequired
            • versioningbooleanrequired
            • public_readbooleanrequired

              The source bucket was public. The Pantech bucket stays private unless the copy asks.

            • size_bytesinteger or nullrequired

              The source's own daily metric, read by the scan; null when unknown.

            • object_countinteger or nullrequired

              The source's own daily metric, read by the scan; null when unknown.

            • size_as_ofstring or nullrequired

              The day (YYYY-MM-DD) the size and object count describe: show them as "as of" this day.

          • plan_slugstring or nullrequired
          • disk_gbinteger or nullrequired
          • cidrstring or nullrequired
          • network_keystring or nullrequired
          • subnet_keystring or nullrequired
          • instance_keystring or nullrequired
          • rulesarray of MigrationRulerequired
            Show 4 child fields
            • directionstringrequired

              One of ingress, egress.

            • protocolstringrequired

              One of tcp, udp, icmp, all.

            • port_rangestring or nullrequired
            • cidrstringrequired
          • enginestring or nullrequired
          • engine_versionstring or nullrequired
          • storage_gbinteger or nullrequired
          • rolestring or nullrequired

            One of admin, member, null.

          • emailstring or nullrequired
          • public_keystring or nullrequired
          • listenersarray of MigrationListenerrequired
            Show 2 child fields
            • protocolstringrequired
            • portintegerrequired
          • image_slugstring or nullrequired

            The image a server is planned on when its operating system decides it (Windows Server).

          • invite_idstring or nullrequired

            The Pantech invite sent to this person from this plan.

          • invited_atstring or nullrequired
          • kubernetesMigrationKubernetesTargetrequired

            What a kubernetes_cluster item becomes on Pantech; null for every other kind.

            Show 5 child fields
            • version_idstring or nullrequired
            • versionstring or nullrequired
            • node_poolsarray of MigrationNodePoolrequired
            • addonsarray of stringrequired
            • allow_downgradebooleanrequired

              The customer consented to a lower Kubernetes version than the source runs.

      • 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.
    • 422VALIDATION_FAILED: keys must name 1 to 50 items.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later. MIGRATE_AGENT_UNAVAILABLE / MIGRATE_INVITES_UNAVAILABLE: this part of Pantech Migrate is 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/invites" \
      -H "Authorization: Bearer $PANTECH_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d '{
        "keys": [
          "keys"
        ]
      }'
    Response 200
    {
      "results": [
        {
          "key": "key",
          "email": "email",
          "role": "role",
          "outcome": "invited",
          "reason": null,
          "invite_id": "invite-id"
        }
      ],
      "migration": {
        "id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
        "name": "web-1",
        "region": "af-abj",
        "connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
        "scan_id": "csn_06gk3x9tq7m2v8r4y1c5d0zp8w",
        "stage": "planning",
        "version": 1,
        "summary": {
          "planned": 1,
          "excluded": 1,
          "unsupported": 1,
          "by_kind": {}
        },
        "estimate": {
          "currency": "NGN",
          "pantech_priced": true,
          "pantech_monthly_minor": 1,
          "covers": [
            "covers"
          ],
          "not_covered": [
            "not-covered"
          ],
          "source_known": true,
          "source_monthly_minor": 1,
          "source_currency": "source-currency",
          "source_months": 1,
          "source_scope": "whole_account"
        },
        "items": [
          {
            "key": "key",
            "kind": "network",
            "source": {
              "id": "id",
              "name": "web-1",
              "region": "af-abj",
              "summary": "summary",
              "vcpu": 2,
              "memory_mib": 1,
              "disk_gb": 80
            },
            "status": "planned",
            "flags": [
              {
                "code": "starter",
                "message": "message",
                "blocking": true
              }
            ],
            "target": {
              "bucket": {
                "name": "web-1",
                "region": "af-abj",
                "versioning": true,
                "public_read": true,
                "size_bytes": 1610612736,
                "object_count": 1,
                "size_as_of": "2030-11-14"
              },
              "plan_slug": "starter",
              "disk_gb": 80,
              "cidr": "<vpc-cidr>",
              "network_key": "network-key",
              "subnet_key": "subnet-key",
              "instance_key": "instance-key",
              "rules": [
                {
                  "direction": "ingress",
                  "protocol": "tcp",
                  "port_range": "22",
                  "cidr": "<vpc-cidr>"
                }
              ],
              "engine": "postgresql",
              "engine_version": "engine-version",
              "storage_gb": 100,
              "role": "admin",
              "email": "email",
              "public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIExample deploy@ci",
              "listeners": [
                {
                  "protocol": "protocol",
                  "port": 22
                }
              ],
              "image_slug": "ubuntu-24-04",
              "invite_id": "invite-id",
              "invited_at": "2026-10-03T09:30:00Z",
              "kubernetes": {
                "version_id": "version-id",
                "version": "version",
                "node_pools": [
                  null
                ],
                "addons": [
                  "addons"
                ],
                "allow_downgrade": true
              }
            }
          }
        ],
        "created_at": "2026-10-03T09:30:00Z",
        "updated_at": "2026-10-03T09:30:00Z"
      }
    }

    Was this page helpful?

    Updated