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_idstringrequiredstatusstringrequiredOne of
not_requested,awaiting_role,verifying,verified,failed.failureBucketImportFailurerequiredWhy it failed; null when it didn't.
messagesays what to do.Show 2 child fieldsHide child fields
codestringrequiredmessagestringrequired
role_arnstring or nullrequiredbucketsarray of CopyAccessBucketrequiredShow 5 child fieldsHide child fields
namestringrequiredregionstring or nullrequiredversioningstring or nullrequiredOne of
enabled,suspended,off,null.readybooleanrequiredVerified: an import may copy this bucket.
failureBucketImportFailurerequiredWhy it failed; null when it didn't.
messagesays what to do.Show 2 child fieldsHide child fields
codestringrequiredmessagestringrequired
verified_atstring or nullrequiredsetupCopyAccessSetuprequiredShow 4 child fieldsHide child fields
issuer_urlstringrequiredaudiencestringrequiredsubjectstringrequiredThe copy role's token subject: the connection id followed by
:copy.templatestring or nullrequiredThe CloudFormation template (JSON text) for a role that may read only the chosen buckets; null until buckets are chosen.
The bucket import object
Fields
idstringrequiredconnection_idstringrequiredmigration_idstring or nullrequiredsourceobjectrequiredShow 3 child fieldsHide child fields
providerstringrequiredbucketstringrequiredregionstring or nullrequired
destinationobjectrequiredShow 3 child fieldsHide child fields
bucket_idstringrequiredbucket_namestringrequiredpublic_readbooleanrequired
statusstringrequiredOne of
queued,running,succeeded,failed,cancelled.failureBucketImportFailurerequiredWhy it failed; null when it didn't.
messagesays what to do.Show 2 child fieldsHide child fields
codestringrequiredmessagestringrequired
cancel_requestedbooleanrequiredpassintegerrequired1 for the first copy; each resync adds one.
progressBucketImportProgressrequiredShow 5 child fieldsHide child fields
objects_copiedintegerrequiredobjects_skippedintegerrequiredAlready in the Pantech bucket unchanged.
objects_failedintegerrequiredbytes_copiedintegerrequiredbytes_skippedintegerrequired
total_bytes_copiedintegerrequiredBytes copied over every pass.
mirror_deletesbooleanrequiredThe current pass was asked to delete what this import copied and the source no longer has.
objects_deletedintegerrequiredObjects deleted by mirror passes, over every pass.
next_attempt_atstring or nullrequiredWhen a queued import waiting on an unreachable side is tried again.
created_atstringrequiredstarted_atstring or nullrequiredfinished_atstring or nullrequiredupdated_atstringrequiredfailuresarray of BucketImportObjectFailurerequiredThe first 100 objects that failed this pass; null in a list.
Show 4 child fieldsHide child fields
keystringrequiredreasonstringrequiredOne of
object_archived,object_access_denied,invalid_key,object_too_large,source_changed,verification_failed,transfer_failed,destination_rejected.messagestringrequiredatstringrequired
eventsarray of BucketImportEventrequiredThe audit trail; null in a list.
Show 4 child fieldsHide child fields
actionstringrequiredOne of
started,cancel_requested,resync_requested,succeeded,failed,cancelled,mirror_deleted,mirror_skipped.actor_user_idstring or nullrequiredNull for Pantech's own steps.
detailstring or nullrequiredoccurred_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.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….
Path parameters
connection_idstringrequired
Response 200
The copy access.connection_idstringrequiredstatusstringrequiredOne of
not_requested,awaiting_role,verifying,verified,failed.failureBucketImportFailurerequiredWhy it failed; null when it didn't.
messagesays what to do.Show 2 child fieldsHide child fields
codestringrequiredmessagestringrequired
role_arnstring or nullrequiredbucketsarray of CopyAccessBucketrequiredShow 5 child fieldsHide child fields
namestringrequiredregionstring or nullrequiredversioningstring or nullrequiredOne of
enabled,suspended,off,null.readybooleanrequiredVerified: an import may copy this bucket.
failureBucketImportFailurerequiredWhy it failed; null when it didn't.
messagesays what to do.Show 2 child fieldsHide child fields
codestringrequiredmessagestringrequired
verified_atstring or nullrequiredsetupCopyAccessSetuprequiredShow 4 child fieldsHide child fields
issuer_urlstringrequiredaudiencestringrequiredsubjectstringrequiredThe copy role's token subject: the connection id followed by
:copy.templatestring or nullrequiredThe CloudFormation template (JSON text) for a role that may read only the chosen buckets; null until buckets are chosen.
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 404
CLOUD_CONNECTION_NOT_FOUND: no cloud connection with this id exists in your organization. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl "https://api.pantechdynamics.com/public/v1/cloud-connections/ccn_06gk3x9tq7m2v8r4y1c5d0zp8w/copy-access" \
-H "Authorization: Bearer $PANTECH_API_KEY"{
"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.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….Idempotency-KeystringrequiredA new value, such as a UUID, for each change. Resend with the same value to retry safely.
At most 255 characters.
Path parameters
connection_idstringrequired
Body
application/jsonbucketsarray of stringThe source buckets Pantech may copy, 1 to 50, each once. Required the first time.
At most 50 items.
role_arnstringThe copy stack's
CopyRoleArnoutput. Setting it queues a verification.retrybooleanVerify the role again.
Response 200
The copy access.connection_idstringrequiredstatusstringrequiredOne of
not_requested,awaiting_role,verifying,verified,failed.failureBucketImportFailurerequiredWhy it failed; null when it didn't.
messagesays what to do.Show 2 child fieldsHide child fields
codestringrequiredmessagestringrequired
role_arnstring or nullrequiredbucketsarray of CopyAccessBucketrequiredShow 5 child fieldsHide child fields
namestringrequiredregionstring or nullrequiredversioningstring or nullrequiredOne of
enabled,suspended,off,null.readybooleanrequiredVerified: an import may copy this bucket.
failureBucketImportFailurerequiredWhy it failed; null when it didn't.
messagesays what to do.Show 2 child fieldsHide child fields
codestringrequiredmessagestringrequired
verified_atstring or nullrequiredsetupCopyAccessSetuprequiredShow 4 child fieldsHide child fields
issuer_urlstringrequiredaudiencestringrequiredsubjectstringrequiredThe copy role's token subject: the connection id followed by
:copy.templatestring or nullrequiredThe CloudFormation template (JSON text) for a role that may read only the chosen buckets; null until buckets are chosen.
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 404
CLOUD_CONNECTION_NOT_FOUND: no cloud connection with this id exists in your organization. - 409
COPY_ACCESS_VERIFYING: the copy access is still being checked.CONFLICT: it changed at the same time. - 422
VALIDATION_FAILED:bucketsmust name 1 to 50 buckets, each once;role_arnmust be a role in the connected account. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
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 '{}'{
"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.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….
Response 200
Bucket imports.dataarray of BucketImportrequiredShow 20 child fieldsHide child fields
idstringrequiredconnection_idstringrequiredmigration_idstring or nullrequiredsourceobjectrequiredShow 3 child fieldsHide child fields
providerstringrequiredbucketstringrequiredregionstring or nullrequired
destinationobjectrequiredShow 3 child fieldsHide child fields
bucket_idstringrequiredbucket_namestringrequiredpublic_readbooleanrequired
statusstringrequiredOne of
queued,running,succeeded,failed,cancelled.failureBucketImportFailurerequiredWhy it failed; null when it didn't.
messagesays what to do.Show 2 child fieldsHide child fields
codestringrequiredmessagestringrequired
cancel_requestedbooleanrequiredpassintegerrequired1 for the first copy; each resync adds one.
progressBucketImportProgressrequiredShow 5 child fieldsHide child fields
objects_copiedintegerrequiredobjects_skippedintegerrequiredAlready in the Pantech bucket unchanged.
objects_failedintegerrequiredbytes_copiedintegerrequiredbytes_skippedintegerrequired
total_bytes_copiedintegerrequiredBytes copied over every pass.
mirror_deletesbooleanrequiredThe current pass was asked to delete what this import copied and the source no longer has.
objects_deletedintegerrequiredObjects deleted by mirror passes, over every pass.
next_attempt_atstring or nullrequiredWhen a queued import waiting on an unreachable side is tried again.
created_atstringrequiredstarted_atstring or nullrequiredfinished_atstring or nullrequiredupdated_atstringrequiredfailuresarray of BucketImportObjectFailurerequiredThe first 100 objects that failed this pass; null in a list.
Show 4 child fieldsHide child fields
keystringrequiredreasonstringrequiredOne of
object_archived,object_access_denied,invalid_key,object_too_large,source_changed,verification_failed,transfer_failed,destination_rejected.messagestringrequiredatstringrequired
eventsarray of BucketImportEventrequiredThe audit trail; null in a list.
Show 4 child fieldsHide child fields
actionstringrequiredOne of
started,cancel_requested,resync_requested,succeeded,failed,cancelled,mirror_deleted,mirror_skipped.actor_user_idstring or nullrequiredNull for Pantech's own steps.
detailstring or nullrequiredoccurred_atstringrequired
next_cursorstring or nullrequiredAlways null: this list is returned whole.
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_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.
curl "https://api.pantechdynamics.com/public/v1/bucket-imports" \
-H "Authorization: Bearer $PANTECH_API_KEY"{
"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.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….Idempotency-KeystringrequiredA new value, such as a UUID, for each change. Resend with the same value to retry safely.
At most 255 characters.
Body
application/jsonconnection_idstringrequiredsource_bucketstringrequiredThe source bucket's name. It must have verified copy access.
destination_bucket_namestringA new Pantech bucket to make and copy into.
destination_bucket_idstringAn existing Pantech bucket of the organization to copy into.
versioningbooleanVersioning on a new bucket.
public_readbooleanMake a new bucket publicly readable. Off unless asked, even when the source was public.
migration_idstringThe plan the move belongs to; its size for the bucket is checked against the storage left.
Response 202
The queued import.idstringrequiredconnection_idstringrequiredmigration_idstring or nullrequiredsourceobjectrequiredShow 3 child fieldsHide child fields
providerstringrequiredbucketstringrequiredregionstring or nullrequired
destinationobjectrequiredShow 3 child fieldsHide child fields
bucket_idstringrequiredbucket_namestringrequiredpublic_readbooleanrequired
statusstringrequiredOne of
queued,running,succeeded,failed,cancelled.failureBucketImportFailurerequiredWhy it failed; null when it didn't.
messagesays what to do.Show 2 child fieldsHide child fields
codestringrequiredmessagestringrequired
cancel_requestedbooleanrequiredpassintegerrequired1 for the first copy; each resync adds one.
progressBucketImportProgressrequiredShow 5 child fieldsHide child fields
objects_copiedintegerrequiredobjects_skippedintegerrequiredAlready in the Pantech bucket unchanged.
objects_failedintegerrequiredbytes_copiedintegerrequiredbytes_skippedintegerrequired
total_bytes_copiedintegerrequiredBytes copied over every pass.
mirror_deletesbooleanrequiredThe current pass was asked to delete what this import copied and the source no longer has.
objects_deletedintegerrequiredObjects deleted by mirror passes, over every pass.
next_attempt_atstring or nullrequiredWhen a queued import waiting on an unreachable side is tried again.
created_atstringrequiredstarted_atstring or nullrequiredfinished_atstring or nullrequiredupdated_atstringrequiredfailuresarray of BucketImportObjectFailurerequiredThe first 100 objects that failed this pass; null in a list.
Show 4 child fieldsHide child fields
keystringrequiredreasonstringrequiredOne of
object_archived,object_access_denied,invalid_key,object_too_large,source_changed,verification_failed,transfer_failed,destination_rejected.messagestringrequiredatstringrequired
eventsarray of BucketImportEventrequiredThe audit trail; null in a list.
Show 4 child fieldsHide child fields
actionstringrequiredOne of
started,cancel_requested,resync_requested,succeeded,failed,cancelled,mirror_deleted,mirror_skipped.actor_user_idstring or nullrequiredNull for Pantech's own steps.
detailstring or nullrequiredoccurred_atstringrequired
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
FORBIDDENorINSUFFICIENT_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. - 404
CLOUD_CONNECTION_NOT_FOUND,MIGRATION_NOT_FOUNDorBUCKET_NOT_FOUND. - 409
COPY_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_VERIFYINGorIDEMPOTENCY_CONFLICT. - 422
VALIDATION_FAILED: name the source bucket, and exactly one ofdestination_bucket_name(a valid bucket name) anddestination_bucket_id. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl -X POST "https://api.pantechdynamics.com/public/v1/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"
}'{
"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).
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….
Path parameters
import_idstringrequired
Response 200
The import.idstringrequiredconnection_idstringrequiredmigration_idstring or nullrequiredsourceobjectrequiredShow 3 child fieldsHide child fields
providerstringrequiredbucketstringrequiredregionstring or nullrequired
destinationobjectrequiredShow 3 child fieldsHide child fields
bucket_idstringrequiredbucket_namestringrequiredpublic_readbooleanrequired
statusstringrequiredOne of
queued,running,succeeded,failed,cancelled.failureBucketImportFailurerequiredWhy it failed; null when it didn't.
messagesays what to do.Show 2 child fieldsHide child fields
codestringrequiredmessagestringrequired
cancel_requestedbooleanrequiredpassintegerrequired1 for the first copy; each resync adds one.
progressBucketImportProgressrequiredShow 5 child fieldsHide child fields
objects_copiedintegerrequiredobjects_skippedintegerrequiredAlready in the Pantech bucket unchanged.
objects_failedintegerrequiredbytes_copiedintegerrequiredbytes_skippedintegerrequired
total_bytes_copiedintegerrequiredBytes copied over every pass.
mirror_deletesbooleanrequiredThe current pass was asked to delete what this import copied and the source no longer has.
objects_deletedintegerrequiredObjects deleted by mirror passes, over every pass.
next_attempt_atstring or nullrequiredWhen a queued import waiting on an unreachable side is tried again.
created_atstringrequiredstarted_atstring or nullrequiredfinished_atstring or nullrequiredupdated_atstringrequiredfailuresarray of BucketImportObjectFailurerequiredThe first 100 objects that failed this pass; null in a list.
Show 4 child fieldsHide child fields
keystringrequiredreasonstringrequiredOne of
object_archived,object_access_denied,invalid_key,object_too_large,source_changed,verification_failed,transfer_failed,destination_rejected.messagestringrequiredatstringrequired
eventsarray of BucketImportEventrequiredThe audit trail; null in a list.
Show 4 child fieldsHide child fields
actionstringrequiredOne of
started,cancel_requested,resync_requested,succeeded,failed,cancelled,mirror_deleted,mirror_skipped.actor_user_idstring or nullrequiredNull for Pantech's own steps.
detailstring or nullrequiredoccurred_atstringrequired
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 404
BUCKET_IMPORT_NOT_FOUND: no bucket import with this id exists in your organization. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl "https://api.pantechdynamics.com/public/v1/bucket-imports/bim_06gk3x9tq7m2v8r4y1c5d0zp8w" \
-H "Authorization: Bearer $PANTECH_API_KEY"{
"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.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….Idempotency-KeystringrequiredA new value, such as a UUID, for each change. Resend with the same value to retry safely.
At most 255 characters.
Path parameters
import_idstringrequired
Response 202
The import.idstringrequiredconnection_idstringrequiredmigration_idstring or nullrequiredsourceobjectrequiredShow 3 child fieldsHide child fields
providerstringrequiredbucketstringrequiredregionstring or nullrequired
destinationobjectrequiredShow 3 child fieldsHide child fields
bucket_idstringrequiredbucket_namestringrequiredpublic_readbooleanrequired
statusstringrequiredOne of
queued,running,succeeded,failed,cancelled.failureBucketImportFailurerequiredWhy it failed; null when it didn't.
messagesays what to do.Show 2 child fieldsHide child fields
codestringrequiredmessagestringrequired
cancel_requestedbooleanrequiredpassintegerrequired1 for the first copy; each resync adds one.
progressBucketImportProgressrequiredShow 5 child fieldsHide child fields
objects_copiedintegerrequiredobjects_skippedintegerrequiredAlready in the Pantech bucket unchanged.
objects_failedintegerrequiredbytes_copiedintegerrequiredbytes_skippedintegerrequired
total_bytes_copiedintegerrequiredBytes copied over every pass.
mirror_deletesbooleanrequiredThe current pass was asked to delete what this import copied and the source no longer has.
objects_deletedintegerrequiredObjects deleted by mirror passes, over every pass.
next_attempt_atstring or nullrequiredWhen a queued import waiting on an unreachable side is tried again.
created_atstringrequiredstarted_atstring or nullrequiredfinished_atstring or nullrequiredupdated_atstringrequiredfailuresarray of BucketImportObjectFailurerequiredThe first 100 objects that failed this pass; null in a list.
Show 4 child fieldsHide child fields
keystringrequiredreasonstringrequiredOne of
object_archived,object_access_denied,invalid_key,object_too_large,source_changed,verification_failed,transfer_failed,destination_rejected.messagestringrequiredatstringrequired
eventsarray of BucketImportEventrequiredThe audit trail; null in a list.
Show 4 child fieldsHide child fields
actionstringrequiredOne of
started,cancel_requested,resync_requested,succeeded,failed,cancelled,mirror_deleted,mirror_skipped.actor_user_idstring or nullrequiredNull for Pantech's own steps.
detailstring or nullrequiredoccurred_atstringrequired
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 404
BUCKET_IMPORT_NOT_FOUND: no bucket import with this id exists in your organization. - 409
BUCKET_IMPORT_FINISHED: the import has already finished. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl -X POST "https://api.pantechdynamics.com/public/v1/bucket-imports/bim_06gk3x9tq7m2v8r4y1c5d0zp8w/cancel" \
-H "Authorization: Bearer $PANTECH_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"{
"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.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….Idempotency-KeystringrequiredA new value, such as a UUID, for each change. Resend with the same value to retry safely.
At most 255 characters.
Path parameters
import_idstringrequired
Body
application/jsonmirror_deletesbooleanOff 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.idstringrequiredconnection_idstringrequiredmigration_idstring or nullrequiredsourceobjectrequiredShow 3 child fieldsHide child fields
providerstringrequiredbucketstringrequiredregionstring or nullrequired
destinationobjectrequiredShow 3 child fieldsHide child fields
bucket_idstringrequiredbucket_namestringrequiredpublic_readbooleanrequired
statusstringrequiredOne of
queued,running,succeeded,failed,cancelled.failureBucketImportFailurerequiredWhy it failed; null when it didn't.
messagesays what to do.Show 2 child fieldsHide child fields
codestringrequiredmessagestringrequired
cancel_requestedbooleanrequiredpassintegerrequired1 for the first copy; each resync adds one.
progressBucketImportProgressrequiredShow 5 child fieldsHide child fields
objects_copiedintegerrequiredobjects_skippedintegerrequiredAlready in the Pantech bucket unchanged.
objects_failedintegerrequiredbytes_copiedintegerrequiredbytes_skippedintegerrequired
total_bytes_copiedintegerrequiredBytes copied over every pass.
mirror_deletesbooleanrequiredThe current pass was asked to delete what this import copied and the source no longer has.
objects_deletedintegerrequiredObjects deleted by mirror passes, over every pass.
next_attempt_atstring or nullrequiredWhen a queued import waiting on an unreachable side is tried again.
created_atstringrequiredstarted_atstring or nullrequiredfinished_atstring or nullrequiredupdated_atstringrequiredfailuresarray of BucketImportObjectFailurerequiredThe first 100 objects that failed this pass; null in a list.
Show 4 child fieldsHide child fields
keystringrequiredreasonstringrequiredOne of
object_archived,object_access_denied,invalid_key,object_too_large,source_changed,verification_failed,transfer_failed,destination_rejected.messagestringrequiredatstringrequired
eventsarray of BucketImportEventrequiredThe audit trail; null in a list.
Show 4 child fieldsHide child fields
actionstringrequiredOne of
started,cancel_requested,resync_requested,succeeded,failed,cancelled,mirror_deleted,mirror_skipped.actor_user_idstring or nullrequiredNull for Pantech's own steps.
detailstring or nullrequiredoccurred_atstringrequired
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 404
BUCKET_IMPORT_NOT_FOUND: no bucket import with this id exists in your organization. - 409
BUCKET_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. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl -X POST "https://api.pantechdynamics.com/public/v1/bucket-imports/bim_06gk3x9tq7m2v8r4y1c5d0zp8w/resync" \
-H "Authorization: Bearer $PANTECH_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{}'{
"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"
}
]
}