Documentation

esc
    API reference · Move to Pantech / Bucket imports

    Bucket imports

    Copy a scanned S3 bucket's objects into Pantech object storage, keyless, then resync until you switch over.

    Copying objects needs a second, opt-in role in your AWS account: choose the buckets with PUT /cloud-connections/{connection_id}/copy-access, create a stack from the template it returns, and send its CopyRoleArn output. That role may read only the buckets you chose, and Pantech checks it without reading any object. Then start an import per bucket, into a new Pantech bucket or one you have, and follow it until it succeeded. A resync copies only what changed; run a last one after writes to the source stop. Object storage is available on request: until it is on for your organization, starting an import answers 403 OBJECT_STORAGE_NOT_ENABLED. See moving buckets.

    The copy access object

    Fields

    • connection_idstringrequired
    • statusstringrequired

      One of not_requested, awaiting_role, verifying, verified, failed.

    • failureBucketImportFailurerequired

      Why it failed; null when it didn't. message says what to do.

      Show 2 child fields
      • codestringrequired
      • messagestringrequired
    • role_arnstring or nullrequired
    • bucketsarray of CopyAccessBucketrequired
      Show 5 child fields
      • namestringrequired
      • regionstring or nullrequired
      • versioningstring or nullrequired

        One of enabled, suspended, off, null.

      • readybooleanrequired

        Verified: an import may copy this bucket.

      • failureBucketImportFailurerequired

        Why it failed; null when it didn't. message says what to do.

        Show 2 child fields
        • codestringrequired
        • messagestringrequired
    • verified_atstring or nullrequired
    • setupCopyAccessSetuprequired
      Show 4 child fields
      • issuer_urlstringrequired
      • audiencestringrequired
      • subjectstringrequired

        The copy role's token subject: the connection id followed by :copy.

      • templatestring or nullrequired

        The CloudFormation template (JSON text) for a role that may read only the chosen buckets; null until buckets are chosen.

    The bucket import object

    Fields

    • idstringrequired
    • connection_idstringrequired
    • migration_idstring or nullrequired
    • sourceobjectrequired
      Show 3 child fields
      • providerstringrequired
      • bucketstringrequired
      • regionstring or nullrequired
    • destinationobjectrequired
      Show 3 child fields
      • bucket_idstringrequired
      • bucket_namestringrequired
      • public_readbooleanrequired
    • statusstringrequired

      One of queued, running, succeeded, failed, cancelled.

    • failureBucketImportFailurerequired

      Why it failed; null when it didn't. message says what to do.

      Show 2 child fields
      • codestringrequired
      • messagestringrequired
    • cancel_requestedbooleanrequired
    • passintegerrequired

      1 for the first copy; each resync adds one.

    • progressBucketImportProgressrequired
      Show 5 child fields
      • objects_copiedintegerrequired
      • objects_skippedintegerrequired

        Already in the Pantech bucket unchanged.

      • objects_failedintegerrequired
      • bytes_copiedintegerrequired
      • bytes_skippedintegerrequired
    • total_bytes_copiedintegerrequired

      Bytes copied over every pass.

    • mirror_deletesbooleanrequired

      The current pass was asked to delete what this import copied and the source no longer has.

    • objects_deletedintegerrequired

      Objects deleted by mirror passes, over every pass.

    • next_attempt_atstring or nullrequired

      When a queued import waiting on an unreachable side is tried again.

    • created_atstringrequired
    • started_atstring or nullrequired
    • finished_atstring or nullrequired
    • updated_atstringrequired
    • failuresarray of BucketImportObjectFailurerequired

      The first 100 objects that failed this pass; null in a list.

      Show 4 child fields
      • keystringrequired
      • reasonstringrequired

        One of object_archived, object_access_denied, invalid_key, object_too_large, source_changed, verification_failed, transfer_failed, destination_rejected.

      • messagestringrequired
      • atstringrequired
    • eventsarray of BucketImportEventrequired

      The audit trail; null in a list.

      Show 4 child fields
      • actionstringrequired

        One of started, cancel_requested, resync_requested, succeeded, failed, cancelled, mirror_deleted, mirror_skipped.

      • actor_user_idstring or nullrequired

        Null for Pantech's own steps.

      • detailstring or nullrequired
      • occurred_atstringrequired

    Get copy access

    The connection's opt-in copy access: the buckets chosen for copying, the copy role and what its last verification found, and the CloudFormation template for that role. status is not_requested until buckets are chosen. The copy role is separate from the connection's read-only role and may read only the chosen buckets' objects.

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

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    Path parameters

    • connection_idstringrequired

    Response 200

    The copy access.
    • connection_idstringrequired
    • statusstringrequired

      One of not_requested, awaiting_role, verifying, verified, failed.

    • failureBucketImportFailurerequired

      Why it failed; null when it didn't. message says what to do.

      Show 2 child fields
      • codestringrequired
      • messagestringrequired
    • role_arnstring or nullrequired
    • bucketsarray of CopyAccessBucketrequired
      Show 5 child fields
      • namestringrequired
      • regionstring or nullrequired
      • versioningstring or nullrequired

        One of enabled, suspended, off, null.

      • readybooleanrequired

        Verified: an import may copy this bucket.

      • failureBucketImportFailurerequired

        Why it failed; null when it didn't. message says what to do.

        Show 2 child fields
        • codestringrequired
        • messagestringrequired
    • verified_atstring or nullrequired
    • setupCopyAccessSetuprequired
      Show 4 child fields
      • issuer_urlstringrequired
      • audiencestringrequired
      • subjectstringrequired

        The copy role's token subject: the connection id followed by :copy.

      • templatestring or nullrequired

        The CloudFormation template (JSON text) for a role that may read only the chosen buckets; null until buckets are chosen.

    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/copy-access" \
      -H "Authorization: Bearer $PANTECH_API_KEY"
    Response 200
    {
      "connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "status": "not_requested",
      "failure": {
        "code": "starter",
        "message": "message"
      },
      "role_arn": "role-arn",
      "buckets": [
        {
          "name": "web-1",
          "region": "af-abj",
          "versioning": "enabled",
          "ready": true,
          "failure": {
            "code": "starter",
            "message": "message"
          }
        }
      ],
      "verified_at": "2026-10-03T09:30:00Z",
      "setup": {
        "issuer_url": "issuer-url",
        "audience": "audience",
        "subject": "subject",
        "template": "template"
      }
    }

    Set copy access

    Chooses the buckets Pantech may copy (buckets, needed the first time; at most 50) and returns the CloudFormation template for a copy role that may read only those buckets. Create a stack from it (or update the stack when the list changes), then set role_arn to its CopyRoleArn output; Pantech then verifies the role against each bucket without reading any object. retry: true verifies again. Owners and admins only.

    PUT/public/v1/cloud-connections/{connection_id}/copy-access
    Write keyNeeds Idempotency-KeyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    • Idempotency-Keystringrequired

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

      At most 255 characters.

    Path parameters

    • connection_idstringrequired

    Body

    application/json
    • bucketsarray of string

      The source buckets Pantech may copy, 1 to 50, each once. Required the first time.

      At most 50 items.

    • role_arnstring

      The copy stack's CopyRoleArn output. Setting it queues a verification.

    • retryboolean

      Verify the role again.

    Response 200

    The copy access.
    • connection_idstringrequired
    • statusstringrequired

      One of not_requested, awaiting_role, verifying, verified, failed.

    • failureBucketImportFailurerequired

      Why it failed; null when it didn't. message says what to do.

      Show 2 child fields
      • codestringrequired
      • messagestringrequired
    • role_arnstring or nullrequired
    • bucketsarray of CopyAccessBucketrequired
      Show 5 child fields
      • namestringrequired
      • regionstring or nullrequired
      • versioningstring or nullrequired

        One of enabled, suspended, off, null.

      • readybooleanrequired

        Verified: an import may copy this bucket.

      • failureBucketImportFailurerequired

        Why it failed; null when it didn't. message says what to do.

        Show 2 child fields
        • codestringrequired
        • messagestringrequired
    • verified_atstring or nullrequired
    • setupCopyAccessSetuprequired
      Show 4 child fields
      • issuer_urlstringrequired
      • audiencestringrequired
      • subjectstringrequired

        The copy role's token subject: the connection id followed by :copy.

      • templatestring or nullrequired

        The CloudFormation template (JSON text) for a role that may read only the chosen buckets; null until buckets are chosen.

    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.
    • 409COPY_ACCESS_VERIFYING: the copy access is still being checked. CONFLICT: it changed at the same time.
    • 422VALIDATION_FAILED: buckets must name 1 to 50 buckets, each once; role_arn must be a role in the connected account.
    • 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 PUT "https://api.pantechdynamics.com/public/v1/cloud-connections/ccn_06gk3x9tq7m2v8r4y1c5d0zp8w/copy-access" \
      -H "Authorization: Bearer $PANTECH_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d '{}'
    Response 200
    {
      "connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "status": "not_requested",
      "failure": {
        "code": "starter",
        "message": "message"
      },
      "role_arn": "role-arn",
      "buckets": [
        {
          "name": "web-1",
          "region": "af-abj",
          "versioning": "enabled",
          "ready": true,
          "failure": {
            "code": "starter",
            "message": "message"
          }
        }
      ],
      "verified_at": "2026-10-03T09:30:00Z",
      "setup": {
        "issuer_url": "issuer-url",
        "audience": "audience",
        "subject": "subject",
        "template": "template"
      }
    }

    List bucket imports

    The organization's bucket imports, newest first.

    GET/public/v1/bucket-imports
    Read keyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    Response 200

    Bucket imports.
    • dataarray of BucketImportrequired
      Show 20 child fields
      • idstringrequired
      • connection_idstringrequired
      • migration_idstring or nullrequired
      • sourceobjectrequired
        Show 3 child fields
        • providerstringrequired
        • bucketstringrequired
        • regionstring or nullrequired
      • destinationobjectrequired
        Show 3 child fields
        • bucket_idstringrequired
        • bucket_namestringrequired
        • public_readbooleanrequired
      • statusstringrequired

        One of queued, running, succeeded, failed, cancelled.

      • failureBucketImportFailurerequired

        Why it failed; null when it didn't. message says what to do.

        Show 2 child fields
        • codestringrequired
        • messagestringrequired
      • cancel_requestedbooleanrequired
      • passintegerrequired

        1 for the first copy; each resync adds one.

      • progressBucketImportProgressrequired
        Show 5 child fields
        • objects_copiedintegerrequired
        • objects_skippedintegerrequired

          Already in the Pantech bucket unchanged.

        • objects_failedintegerrequired
        • bytes_copiedintegerrequired
        • bytes_skippedintegerrequired
      • total_bytes_copiedintegerrequired

        Bytes copied over every pass.

      • mirror_deletesbooleanrequired

        The current pass was asked to delete what this import copied and the source no longer has.

      • objects_deletedintegerrequired

        Objects deleted by mirror passes, over every pass.

      • next_attempt_atstring or nullrequired

        When a queued import waiting on an unreachable side is tried again.

      • created_atstringrequired
      • started_atstring or nullrequired
      • finished_atstring or nullrequired
      • updated_atstringrequired
      • failuresarray of BucketImportObjectFailurerequired

        The first 100 objects that failed this pass; null in a list.

        Show 4 child fields
        • keystringrequired
        • reasonstringrequired

          One of object_archived, object_access_denied, invalid_key, object_too_large, source_changed, verification_failed, transfer_failed, destination_rejected.

        • messagestringrequired
        • atstringrequired
      • eventsarray of BucketImportEventrequired

        The audit trail; null in a list.

        Show 4 child fields
        • actionstringrequired

          One of started, cancel_requested, resync_requested, succeeded, failed, cancelled, mirror_deleted, mirror_skipped.

        • actor_user_idstring or nullrequired

          Null for Pantech's own steps.

        • detailstring or nullrequired
        • occurred_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/bucket-imports" \
      -H "Authorization: Bearer $PANTECH_API_KEY"
    Response 200
    {
      "data": [
        {
          "id": "bim_06gk3x9tq7m2v8r4y1c5d0zp8w",
          "connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
          "migration_id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
          "source": {
            "provider": "provider",
            "bucket": "bucket",
            "region": "af-abj"
          },
          "destination": {
            "bucket_id": "bkt_06gk3x9tq7m2v8r4y1c5d0zp8w",
            "bucket_name": "bucket-name",
            "public_read": true
          },
          "status": "queued",
          "failure": {
            "code": "starter",
            "message": "message"
          },
          "cancel_requested": true,
          "pass": 1,
          "progress": {
            "objects_copied": 1,
            "objects_skipped": 1,
            "objects_failed": 1,
            "bytes_copied": 1,
            "bytes_skipped": 1
          },
          "total_bytes_copied": 1,
          "mirror_deletes": true,
          "objects_deleted": 1,
          "next_attempt_at": "2026-10-03T09:30:00Z",
          "created_at": "2026-10-03T09:30:00Z",
          "started_at": "2026-10-03T09:30:00Z",
          "finished_at": "2026-10-03T09:30:00Z",
          "updated_at": "2026-10-03T09:30:00Z",
          "failures": [
            {
              "key": "key",
              "reason": "object_archived",
              "message": "message",
              "at": "2026-10-03T09:30:00Z"
            }
          ],
          "events": [
            {
              "action": "started",
              "actor_user_id": "actor-user-id",
              "detail": "detail",
              "occurred_at": "2026-10-03T09:30:00Z"
            }
          ]
        }
      ],
      "next_cursor": null
    }

    Copy a bucket into Pantech

    Copies one source bucket's objects into a Pantech bucket: a new one (destination_bucket_name, made now and billed as any bucket) or one the organization has (destination_bucket_id). The bucket must have verified copy access. Objects stream from the source, are checked against their MD5s, and keep their content type, cache control, content disposition, user metadata and tags; only current versions are copied and nothing is deleted on either side. Follow it with GET /public/v1/bucket-imports/{import_id}. Moving is free; stored data bills as usual. Owners and admins only.

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

    Body

    application/json
    • connection_idstringrequired
    • source_bucketstringrequired

      The source bucket's name. It must have verified copy access.

    • destination_bucket_namestring

      A new Pantech bucket to make and copy into.

    • destination_bucket_idstring

      An existing Pantech bucket of the organization to copy into.

    • versioningboolean

      Versioning on a new bucket.

    • public_readboolean

      Make a new bucket publicly readable. Off unless asked, even when the source was public.

    • migration_idstring

      The plan the move belongs to; its size for the bucket is checked against the storage left.

    Response 202

    The queued import.
    • idstringrequired
    • connection_idstringrequired
    • migration_idstring or nullrequired
    • sourceobjectrequired
      Show 3 child fields
      • providerstringrequired
      • bucketstringrequired
      • regionstring or nullrequired
    • destinationobjectrequired
      Show 3 child fields
      • bucket_idstringrequired
      • bucket_namestringrequired
      • public_readbooleanrequired
    • statusstringrequired

      One of queued, running, succeeded, failed, cancelled.

    • failureBucketImportFailurerequired

      Why it failed; null when it didn't. message says what to do.

      Show 2 child fields
      • codestringrequired
      • messagestringrequired
    • cancel_requestedbooleanrequired
    • passintegerrequired

      1 for the first copy; each resync adds one.

    • progressBucketImportProgressrequired
      Show 5 child fields
      • objects_copiedintegerrequired
      • objects_skippedintegerrequired

        Already in the Pantech bucket unchanged.

      • objects_failedintegerrequired
      • bytes_copiedintegerrequired
      • bytes_skippedintegerrequired
    • total_bytes_copiedintegerrequired

      Bytes copied over every pass.

    • mirror_deletesbooleanrequired

      The current pass was asked to delete what this import copied and the source no longer has.

    • objects_deletedintegerrequired

      Objects deleted by mirror passes, over every pass.

    • next_attempt_atstring or nullrequired

      When a queued import waiting on an unreachable side is tried again.

    • created_atstringrequired
    • started_atstring or nullrequired
    • finished_atstring or nullrequired
    • updated_atstringrequired
    • failuresarray of BucketImportObjectFailurerequired

      The first 100 objects that failed this pass; null in a list.

      Show 4 child fields
      • keystringrequired
      • reasonstringrequired

        One of object_archived, object_access_denied, invalid_key, object_too_large, source_changed, verification_failed, transfer_failed, destination_rejected.

      • messagestringrequired
      • atstringrequired
    • eventsarray of BucketImportEventrequired

      The audit trail; null in a list.

      Show 4 child fields
      • actionstringrequired

        One of started, cancel_requested, resync_requested, succeeded, failed, cancelled, mirror_deleted, mirror_skipped.

      • actor_user_idstring or nullrequired

        Null for Pantech's own steps.

      • detailstring or nullrequired
      • occurred_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.
    • 403FORBIDDEN or INSUFFICIENT_SCOPE: the key may not do this. BUCKET_IMPORT_LIMIT_REACHED: 20 imports are already in progress. BUCKET_IMPORT_TOO_LARGE: the bucket is larger than the storage your organization has left. OBJECT_STORAGE_NOT_ENABLED: object storage is not enabled for your organization. BUCKET_LIMIT_REACHED: the organization has the most buckets allowed.
    • 404CLOUD_CONNECTION_NOT_FOUND, MIGRATION_NOT_FOUND or BUCKET_NOT_FOUND.
    • 409COPY_ACCESS_NOT_READY: grant and verify copy access to this bucket first. BUCKET_IMPORT_IN_PROGRESS: the bucket is already being copied. BUCKET_NAME_TAKEN: a bucket with that name exists. CLOUD_CONNECTION_NOT_CONNECTED, CLOUD_CONNECTION_VERIFYING or IDEMPOTENCY_CONFLICT.
    • 422VALIDATION_FAILED: name the source bucket, and exactly one of destination_bucket_name (a valid bucket name) and destination_bucket_id.
    • 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/bucket-imports" \
      -H "Authorization: Bearer $PANTECH_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d '{
        "connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
        "source_bucket": "source-bucket"
      }'
    Response 202
    {
      "id": "bim_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "migration_id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "source": {
        "provider": "provider",
        "bucket": "bucket",
        "region": "af-abj"
      },
      "destination": {
        "bucket_id": "bkt_06gk3x9tq7m2v8r4y1c5d0zp8w",
        "bucket_name": "bucket-name",
        "public_read": true
      },
      "status": "queued",
      "failure": {
        "code": "starter",
        "message": "message"
      },
      "cancel_requested": true,
      "pass": 1,
      "progress": {
        "objects_copied": 1,
        "objects_skipped": 1,
        "objects_failed": 1,
        "bytes_copied": 1,
        "bytes_skipped": 1
      },
      "total_bytes_copied": 1,
      "mirror_deletes": true,
      "objects_deleted": 1,
      "next_attempt_at": "2026-10-03T09:30:00Z",
      "created_at": "2026-10-03T09:30:00Z",
      "started_at": "2026-10-03T09:30:00Z",
      "finished_at": "2026-10-03T09:30:00Z",
      "updated_at": "2026-10-03T09:30:00Z",
      "failures": [
        {
          "key": "key",
          "reason": "object_archived",
          "message": "message",
          "at": "2026-10-03T09:30:00Z"
        }
      ],
      "events": [
        {
          "action": "started",
          "actor_user_id": "actor-user-id",
          "detail": "detail",
          "occurred_at": "2026-10-03T09:30:00Z"
        }
      ]
    }

    Get a bucket import

    An import's status and progress for its current pass, the first 100 objects that failed it with the reason, and its audit trail (who started, resynced and cancelled it, and how each pass ended).

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

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    Path parameters

    • import_idstringrequired

    Response 200

    The import.
    • idstringrequired
    • connection_idstringrequired
    • migration_idstring or nullrequired
    • sourceobjectrequired
      Show 3 child fields
      • providerstringrequired
      • bucketstringrequired
      • regionstring or nullrequired
    • destinationobjectrequired
      Show 3 child fields
      • bucket_idstringrequired
      • bucket_namestringrequired
      • public_readbooleanrequired
    • statusstringrequired

      One of queued, running, succeeded, failed, cancelled.

    • failureBucketImportFailurerequired

      Why it failed; null when it didn't. message says what to do.

      Show 2 child fields
      • codestringrequired
      • messagestringrequired
    • cancel_requestedbooleanrequired
    • passintegerrequired

      1 for the first copy; each resync adds one.

    • progressBucketImportProgressrequired
      Show 5 child fields
      • objects_copiedintegerrequired
      • objects_skippedintegerrequired

        Already in the Pantech bucket unchanged.

      • objects_failedintegerrequired
      • bytes_copiedintegerrequired
      • bytes_skippedintegerrequired
    • total_bytes_copiedintegerrequired

      Bytes copied over every pass.

    • mirror_deletesbooleanrequired

      The current pass was asked to delete what this import copied and the source no longer has.

    • objects_deletedintegerrequired

      Objects deleted by mirror passes, over every pass.

    • next_attempt_atstring or nullrequired

      When a queued import waiting on an unreachable side is tried again.

    • created_atstringrequired
    • started_atstring or nullrequired
    • finished_atstring or nullrequired
    • updated_atstringrequired
    • failuresarray of BucketImportObjectFailurerequired

      The first 100 objects that failed this pass; null in a list.

      Show 4 child fields
      • keystringrequired
      • reasonstringrequired

        One of object_archived, object_access_denied, invalid_key, object_too_large, source_changed, verification_failed, transfer_failed, destination_rejected.

      • messagestringrequired
      • atstringrequired
    • eventsarray of BucketImportEventrequired

      The audit trail; null in a list.

      Show 4 child fields
      • actionstringrequired

        One of started, cancel_requested, resync_requested, succeeded, failed, cancelled, mirror_deleted, mirror_skipped.

      • actor_user_idstring or nullrequired

        Null for Pantech's own steps.

      • detailstring or nullrequired
      • occurred_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.
    • 404BUCKET_IMPORT_NOT_FOUND: no bucket import with this id exists in your organization.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later. 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/bucket-imports/bim_06gk3x9tq7m2v8r4y1c5d0zp8w" \
      -H "Authorization: Bearer $PANTECH_API_KEY"
    Response 200
    {
      "id": "bim_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "migration_id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "source": {
        "provider": "provider",
        "bucket": "bucket",
        "region": "af-abj"
      },
      "destination": {
        "bucket_id": "bkt_06gk3x9tq7m2v8r4y1c5d0zp8w",
        "bucket_name": "bucket-name",
        "public_read": true
      },
      "status": "queued",
      "failure": {
        "code": "starter",
        "message": "message"
      },
      "cancel_requested": true,
      "pass": 1,
      "progress": {
        "objects_copied": 1,
        "objects_skipped": 1,
        "objects_failed": 1,
        "bytes_copied": 1,
        "bytes_skipped": 1
      },
      "total_bytes_copied": 1,
      "mirror_deletes": true,
      "objects_deleted": 1,
      "next_attempt_at": "2026-10-03T09:30:00Z",
      "created_at": "2026-10-03T09:30:00Z",
      "started_at": "2026-10-03T09:30:00Z",
      "finished_at": "2026-10-03T09:30:00Z",
      "updated_at": "2026-10-03T09:30:00Z",
      "failures": [
        {
          "key": "key",
          "reason": "object_archived",
          "message": "message",
          "at": "2026-10-03T09:30:00Z"
        }
      ],
      "events": [
        {
          "action": "started",
          "actor_user_id": "actor-user-id",
          "detail": "detail",
          "occurred_at": "2026-10-03T09:30:00Z"
        }
      ]
    }

    Cancel a bucket import

    Stops the import: a queued one at once, a running one at its next checkpoint. Uploads in flight are abandoned; objects already copied stay. Owners and admins only.

    POST/public/v1/bucket-imports/{import_id}/cancel
    Write keyNeeds Idempotency-KeyReturns202Accepted

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    • Idempotency-Keystringrequired

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

      At most 255 characters.

    Path parameters

    • import_idstringrequired

    Response 202

    The import.
    • idstringrequired
    • connection_idstringrequired
    • migration_idstring or nullrequired
    • sourceobjectrequired
      Show 3 child fields
      • providerstringrequired
      • bucketstringrequired
      • regionstring or nullrequired
    • destinationobjectrequired
      Show 3 child fields
      • bucket_idstringrequired
      • bucket_namestringrequired
      • public_readbooleanrequired
    • statusstringrequired

      One of queued, running, succeeded, failed, cancelled.

    • failureBucketImportFailurerequired

      Why it failed; null when it didn't. message says what to do.

      Show 2 child fields
      • codestringrequired
      • messagestringrequired
    • cancel_requestedbooleanrequired
    • passintegerrequired

      1 for the first copy; each resync adds one.

    • progressBucketImportProgressrequired
      Show 5 child fields
      • objects_copiedintegerrequired
      • objects_skippedintegerrequired

        Already in the Pantech bucket unchanged.

      • objects_failedintegerrequired
      • bytes_copiedintegerrequired
      • bytes_skippedintegerrequired
    • total_bytes_copiedintegerrequired

      Bytes copied over every pass.

    • mirror_deletesbooleanrequired

      The current pass was asked to delete what this import copied and the source no longer has.

    • objects_deletedintegerrequired

      Objects deleted by mirror passes, over every pass.

    • next_attempt_atstring or nullrequired

      When a queued import waiting on an unreachable side is tried again.

    • created_atstringrequired
    • started_atstring or nullrequired
    • finished_atstring or nullrequired
    • updated_atstringrequired
    • failuresarray of BucketImportObjectFailurerequired

      The first 100 objects that failed this pass; null in a list.

      Show 4 child fields
      • keystringrequired
      • reasonstringrequired

        One of object_archived, object_access_denied, invalid_key, object_too_large, source_changed, verification_failed, transfer_failed, destination_rejected.

      • messagestringrequired
      • atstringrequired
    • eventsarray of BucketImportEventrequired

      The audit trail; null in a list.

      Show 4 child fields
      • actionstringrequired

        One of started, cancel_requested, resync_requested, succeeded, failed, cancelled, mirror_deleted, mirror_skipped.

      • actor_user_idstring or nullrequired

        Null for Pantech's own steps.

      • detailstring or nullrequired
      • occurred_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.
    • 404BUCKET_IMPORT_NOT_FOUND: no bucket import with this id exists in your organization.
    • 409BUCKET_IMPORT_FINISHED: the import has already finished.
    • 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/bucket-imports/bim_06gk3x9tq7m2v8r4y1c5d0zp8w/cancel" \
      -H "Authorization: Bearer $PANTECH_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)"
    Response 202
    {
      "id": "bim_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "migration_id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "source": {
        "provider": "provider",
        "bucket": "bucket",
        "region": "af-abj"
      },
      "destination": {
        "bucket_id": "bkt_06gk3x9tq7m2v8r4y1c5d0zp8w",
        "bucket_name": "bucket-name",
        "public_read": true
      },
      "status": "queued",
      "failure": {
        "code": "starter",
        "message": "message"
      },
      "cancel_requested": true,
      "pass": 1,
      "progress": {
        "objects_copied": 1,
        "objects_skipped": 1,
        "objects_failed": 1,
        "bytes_copied": 1,
        "bytes_skipped": 1
      },
      "total_bytes_copied": 1,
      "mirror_deletes": true,
      "objects_deleted": 1,
      "next_attempt_at": "2026-10-03T09:30:00Z",
      "created_at": "2026-10-03T09:30:00Z",
      "started_at": "2026-10-03T09:30:00Z",
      "finished_at": "2026-10-03T09:30:00Z",
      "updated_at": "2026-10-03T09:30:00Z",
      "failures": [
        {
          "key": "key",
          "reason": "object_archived",
          "message": "message",
          "at": "2026-10-03T09:30:00Z"
        }
      ],
      "events": [
        {
          "action": "started",
          "actor_user_id": "actor-user-id",
          "detail": "detail",
          "occurred_at": "2026-10-03T09:30:00Z"
        }
      ]
    }

    Resync a bucket import

    Queues another pass over the source. Objects Pantech already holds unchanged are skipped, so it copies only what changed. Run a last resync after writes to the source stop, then switch over. mirror_deletes: true (off by default, for that pass only) also deletes the objects this import copied that the source no longer has; it never deletes an object the import did not write, needs the delete scope, and is recorded in the import's audit trail. Owners and admins only.

    POST/public/v1/bucket-imports/{import_id}/resync
    Write keyNeeds Idempotency-KeyReturns202Accepted

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    • Idempotency-Keystringrequired

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

      At most 255 characters.

    Path parameters

    • import_idstringrequired

    Body

    application/json
    • mirror_deletesboolean

      Off unless set. After this pass has listed the whole source, delete the objects this import copied that the source no longer has, and only those still holding the bytes the import wrote. Objects the import did not write are never deleted. Needs the delete scope.

    Response 202

    The import, queued.
    • idstringrequired
    • connection_idstringrequired
    • migration_idstring or nullrequired
    • sourceobjectrequired
      Show 3 child fields
      • providerstringrequired
      • bucketstringrequired
      • regionstring or nullrequired
    • destinationobjectrequired
      Show 3 child fields
      • bucket_idstringrequired
      • bucket_namestringrequired
      • public_readbooleanrequired
    • statusstringrequired

      One of queued, running, succeeded, failed, cancelled.

    • failureBucketImportFailurerequired

      Why it failed; null when it didn't. message says what to do.

      Show 2 child fields
      • codestringrequired
      • messagestringrequired
    • cancel_requestedbooleanrequired
    • passintegerrequired

      1 for the first copy; each resync adds one.

    • progressBucketImportProgressrequired
      Show 5 child fields
      • objects_copiedintegerrequired
      • objects_skippedintegerrequired

        Already in the Pantech bucket unchanged.

      • objects_failedintegerrequired
      • bytes_copiedintegerrequired
      • bytes_skippedintegerrequired
    • total_bytes_copiedintegerrequired

      Bytes copied over every pass.

    • mirror_deletesbooleanrequired

      The current pass was asked to delete what this import copied and the source no longer has.

    • objects_deletedintegerrequired

      Objects deleted by mirror passes, over every pass.

    • next_attempt_atstring or nullrequired

      When a queued import waiting on an unreachable side is tried again.

    • created_atstringrequired
    • started_atstring or nullrequired
    • finished_atstring or nullrequired
    • updated_atstringrequired
    • failuresarray of BucketImportObjectFailurerequired

      The first 100 objects that failed this pass; null in a list.

      Show 4 child fields
      • keystringrequired
      • reasonstringrequired

        One of object_archived, object_access_denied, invalid_key, object_too_large, source_changed, verification_failed, transfer_failed, destination_rejected.

      • messagestringrequired
      • atstringrequired
    • eventsarray of BucketImportEventrequired

      The audit trail; null in a list.

      Show 4 child fields
      • actionstringrequired

        One of started, cancel_requested, resync_requested, succeeded, failed, cancelled, mirror_deleted, mirror_skipped.

      • actor_user_idstring or nullrequired

        Null for Pantech's own steps.

      • detailstring or nullrequired
      • occurred_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.
    • 404BUCKET_IMPORT_NOT_FOUND: no bucket import with this id exists in your organization.
    • 409BUCKET_IMPORT_RUNNING: the import is still queued or running. COPY_ACCESS_NOT_READY: copy access to the bucket was withdrawn. BUCKET_IMPORT_IN_PROGRESS: another import of the bucket is open.
    • 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 POST "https://api.pantechdynamics.com/public/v1/bucket-imports/bim_06gk3x9tq7m2v8r4y1c5d0zp8w/resync" \
      -H "Authorization: Bearer $PANTECH_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d '{}'
    Response 202
    {
      "id": "bim_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "migration_id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "source": {
        "provider": "provider",
        "bucket": "bucket",
        "region": "af-abj"
      },
      "destination": {
        "bucket_id": "bkt_06gk3x9tq7m2v8r4y1c5d0zp8w",
        "bucket_name": "bucket-name",
        "public_read": true
      },
      "status": "queued",
      "failure": {
        "code": "starter",
        "message": "message"
      },
      "cancel_requested": true,
      "pass": 1,
      "progress": {
        "objects_copied": 1,
        "objects_skipped": 1,
        "objects_failed": 1,
        "bytes_copied": 1,
        "bytes_skipped": 1
      },
      "total_bytes_copied": 1,
      "mirror_deletes": true,
      "objects_deleted": 1,
      "next_attempt_at": "2026-10-03T09:30:00Z",
      "created_at": "2026-10-03T09:30:00Z",
      "started_at": "2026-10-03T09:30:00Z",
      "finished_at": "2026-10-03T09:30:00Z",
      "updated_at": "2026-10-03T09:30:00Z",
      "failures": [
        {
          "key": "key",
          "reason": "object_archived",
          "message": "message",
          "at": "2026-10-03T09:30:00Z"
        }
      ],
      "events": [
        {
          "action": "started",
          "actor_user_id": "actor-user-id",
          "detail": "detail",
          "occurred_at": "2026-10-03T09:30:00Z"
        }
      ]
    }

    Was this page helpful?

    Updated