Claude Platform Docs

External Storage

External Storageを作成
client.Beta.Organization.ExternalStorage.New(ctx, params) (*BetaExternalStorage, error)
POST/v1/organizations/external_storage
Requires anthropic-beta: efs-2026-10-01. Learn how to send beta headers.

組織自身のクラウドアカウント内のバケットを登録します。登録したバケットは pending_configuration として保存され、有効化時に検証されます。

External Storageを一覧表示
client.Beta.Organization.ExternalStorage.List(ctx, params) (*PageCursor[BetaExternalStorage], error)
GET/v1/organizations/external_storage
Requires anthropic-beta: efs-2026-10-01. Learn how to send beta headers.

組織のExternal Storageを新しい順に一覧表示します。

External Storageを取得
client.Beta.Organization.ExternalStorage.Get(ctx, externalStorageID, query) (*BetaExternalStorage, error)
GET/v1/organizations/external_storage/{external_storage_id}
Requires anthropic-beta: efs-2026-10-01. Learn how to send beta headers.

組織内のExternal Storageを1件取得します。

External Storageを更新
client.Beta.Organization.ExternalStorage.Update(ctx, externalStorageID, params) (*BetaExternalStorage, error)
POST/v1/organizations/external_storage/{external_storage_id}
Requires anthropic-beta: efs-2026-10-01. Learn how to send beta headers.

ステータスに関係なく、External Storageの名前を変更するか、名前をクリアします。

External Storageを削除
client.Beta.Organization.ExternalStorage.Delete(ctx, externalStorageID, body) (*BetaDeletedExternalStorage, error)
DELETE/v1/organizations/external_storage/{external_storage_id}
Requires anthropic-beta: efs-2026-10-01. Learn how to send beta headers.

External Storageを削除します。構成保留中または利用可能なストレージ、およびアクティブだが一度もアタッチされていないストレージは、 Enterprise Frontier Safeguardsのワークスペースポリシーに記載されていない限り、即座に削除されます。 その他のストレージには、次に行うべきことを示す400が返されます。 draining のストレージでは、この400は、今回の削除によって取り消しできない削除処理が開始されたことを意味する場合があります。 確認するには、ストレージを取得してください。status.removal_started がtrueの場合は、後でもう一度削除して完了させてください。

External Storageを有効化
client.Beta.Organization.ExternalStorage.Activate(ctx, externalStorageID, body) (*BetaExternalStorage, error)
POST/v1/organizations/external_storage/{external_storage_id}/activate
Requires anthropic-beta: efs-2026-10-01. Learn how to send beta headers.

保留中のExternal Storageを検証し、利用可能にします。すでに利用可能、 アクティブ、またはDrainingのストレージは、チェックを行わずに そのまま返されます。

Models
type BetaActiveExternalStorageStatus struct { Type: "active"; Healthy; LastCheckedAt }

At least one Workspace has the storage attached.

Type Active
defaultactive
Healthy bool

Whether the bucket passed its latest recorded check. It can stay true after the bucket stops working, so don't use it for monitoring.

LastCheckedAt Time

When the bucket's latest recorded check ran, in RFC 3339.

formatdate-time
type BetaAvailableExternalStorageStatus struct { Type: "available"; Healthy; LastCheckedAt }

The storage is verified, no Workspace has it attached, and Anthropic doesn't use the bucket.

Type Available
defaultavailable
Healthy bool

Whether the bucket passed its latest recorded check. It can stay true after the bucket stops working, so don't use it for monitoring.

LastCheckedAt Time

When the bucket's latest recorded check ran, in RFC 3339.

formatdate-time
type BetaAWSExternalStorageConfig struct { Type: "aws"; AccountID; BucketName; Region }

An Amazon S3 bucket.

Type AWS
defaultaws
AccountID string

12-digit ID of the AWS account that owns the bucket.

BucketName string

The bucket's name, without s3://.

Region string

The bucket's AWS region.

type BetaAWSExternalStorageConfigParam struct { Type: "aws"; AccountID; BucketName; Region }

An Amazon S3 bucket.

Type AWS
AccountID string

12-digit ID of the AWS account that owns the bucket.

BucketName string

The bucket's name, without s3://: 3 to 63 lower-case letters, digits and hyphens, starting and ending with a letter or digit.

Region string

The bucket's AWS region. Activating the storage fails if Anthropic can't use buckets in that region.

type BetaDeletedExternalStorage struct { Type: "external_storage_deleted"; ID }
Type ExternalStorageDeleted
defaultexternal_storage_deleted
ID string

The External Storage ID, which starts with estrg_. Through Claude Platform on AWS, storage whose provider_config.type is aws has its bucket ARN as its ID instead: arn:<partition>:s3:::<bucket_name>, where <partition> is the partition of the bucket's region.

type BetaDrainingExternalStorageStatus struct { Type: "draining"; Healthy; LastCheckedAt; RemovalStarted }

No Workspace has the storage attached. A Workspace can attach it again, unless removal_started is true.

Type Draining
defaultdraining
Healthy bool

Whether the bucket passed its latest recorded check. It can stay true after the bucket stops working, so don't use it for monitoring.

LastCheckedAt Time

When the bucket's latest recorded check ran, in RFC 3339.

formatdate-time
RemovalStarted bool

True once a delete has started removing this storage, which can't be undone. It then can't be attached, and another delete finishes the removal.

defaultfalse
type BetaExternalStorage struct { Type: "external_storage"; ID; CreatedAt; /* 6 more */ }

A storage bucket in the organization's own cloud account. Anthropic writes inference data to it from each Workspace it is attached to.

type BetaExternalStorageFailedCheck struct { Check; Message; Role }

One check that an External Storage's verification failed.

type BetaExternalStorageInUseErrorDetails struct { ErrorCode }
ErrorCode BetaExternalStorageInUseErrorCode
type BetaExternalStorageInWorkspacePolicyErrorDetails struct { ErrorCode }
ErrorCode BetaExternalStorageInWorkspacePolicyErrorCode
type BetaExternalStorageNotAvailableErrorDetails struct { ErrorCode }
ErrorCode BetaExternalStorageNotAvailableErrorCode
type BetaGCPExternalStorageConfig struct { Type: "gcp"; BucketName; ProjectNumber; Region }

A Google Cloud Storage bucket.

Type GCP
defaultgcp
BucketName string

The bucket's name, without gs://.

ProjectNumber string

Number of the Google Cloud project that holds the bucket.

Region string

The bucket's Google Cloud region.

type BetaGCPExternalStorageConfigParam struct { Type: "gcp"; BucketName; ProjectNumber; Region }

A Google Cloud Storage bucket.

Type GCP
BucketName string

The bucket's name, without gs://: 3 to 63 lower-case letters, digits and hyphens, starting and ending with a letter or digit. It can't start with goog or contain google.

ProjectNumber string

Project number, not project ID, of the Google Cloud project that holds the bucket.

Region string

The bucket's Google Cloud region, such as us-east5: one of the single regions that the setup guide lists. Dual-regions and multi-regions aren't supported.

type BetaGrantRequiredErrorDetails struct { ErrorCode }
ErrorCode BetaGrantRequiredErrorCode
type BetaInvalidStorageARNErrorDetails struct { ErrorCode }
ErrorCode BetaInvalidStorageARNErrorCode
type BetaPendingConfigurationExternalStorageStatus struct { Type: "pending_configuration" }

The storage isn't verified yet.

Type PendingConfiguration
defaultpending_configuration
type BetaProviderNotAllowedErrorDetails struct { ErrorCode }
ErrorCode BetaProviderNotAllowedErrorCode
type BetaStorageAlreadyRegisteredErrorDetails struct { ErrorCode }
ErrorCode BetaStorageAlreadyRegisteredErrorCode
type BetaStorageAttachLimitReachedErrorDetails struct { ErrorCode }
ErrorCode BetaStorageAttachLimitReachedErrorCode
type BetaStorageChangedConcurrentlyErrorDetails struct { ErrorCode; Field }
ErrorCode BetaStorageChangedConcurrentlyErrorCode
Field string

The storage setting that changed.

type BetaStorageNotAttachableErrorDetails struct { ErrorCode; Field }
ErrorCode BetaStorageNotAttachableErrorCode
Field string

The request field at fault.

type BetaStorageProfileStillRequiredErrorDetails struct { ErrorCode }
ErrorCode BetaStorageProfileStillRequiredErrorCode
type BetaStorageVerificationFailedErrorDetails struct { ErrorCode; FailedChecks; Field }
type BetaUnsupportedRegionErrorDetails struct { ErrorCode }
ErrorCode BetaUnsupportedRegionErrorCode
Errors
const ErrorCodeBetaExternalStorageInUse ErrorCode = "external_storage_in_use"⁠HTTP status 400

The External Storage is active or draining, so this delete didn't erase it. The message says what to do next. On draining storage this delete may have started a removal that can't be undone: get the storage and read status.removal_started.

const ErrorCodeBetaExternalStorageInWorkspacePolicy ErrorCode = "external_storage_in_workspace_policy"⁠HTTP status 400

The External Storage can't be deleted while an Enterprise Frontier Safeguards workspace policy lists it as allowed storage.

const ErrorCodeBetaExternalStorageNotAvailable ErrorCode = "external_storage_not_available"⁠HTTP status 400

External Storage isn't available for this Workspace, so only internal storage is accepted. The error's message says why.

const ErrorCodeBetaGrantRequired ErrorCode = "grant_required"⁠HTTP status 400

Anthropic has not approved External Storage for the organization, for the Workspace or, for storage bound to a user profile, for that user profile. Contact your Anthropic account team.

const ErrorCodeBetaInvalidStorageARN ErrorCode = "invalid_storage_arn"⁠HTTP status 400

On Claude Platform on AWS, the External Storage ID in the request is neither a bucket ARN nor an estrg_ ID, or is the estrg_ ID of AWS storage. Name AWS storage by its bucket ARN, arn:<partition>:s3:::<bucket_name>, which responses return as its id.

const ErrorCodeBetaProviderNotAllowed ErrorCode = "provider_not_allowed"⁠HTTP status 400

The request can't use External Storage on this cloud provider. The error's message says why.

const ErrorCodeBetaStorageAttachLimitReached ErrorCode = "storage_attach_limit_reached"⁠HTTP status 400

The Workspace has reached its limit of 100 different External Storage resources attached over its lifetime. Detached storage counts toward the limit until it is deleted.

const ErrorCodeBetaStorageNotAttachable ErrorCode = "storage_not_attachable"⁠HTTP status 400

This External Storage can't be attached to the setting named in field. The error's message says why.

const ErrorCodeBetaStorageProfileStillRequired ErrorCode = "storage_profile_still_required"⁠HTTP status 400

This storage is bound to a different user profile from storage the Workspace has attached, or from active or draining storage it once had for safeguards data. Detaching storage the Workspace uses only for transcripts clears this. Detaching safeguards storage doesn't, so use a new Workspace instead.

const ErrorCodeBetaStorageVerificationFailed ErrorCode = "storage_verification_failed"⁠HTTP status 400

The External Storage failed verification, so the request changed nothing. failed_checks lists what to fix.

const ErrorCodeBetaUnsupportedRegion ErrorCode = "unsupported_region"⁠HTTP status 400

provider_config.region is not a region where External Storage is available.

const ErrorCodeBetaStorageAlreadyRegistered ErrorCode = "storage_already_registered"⁠HTTP status 409

The organization already has External Storage for this bucket that it has not deleted. List the organization's External Storage to find it.

const ErrorCodeBetaStorageChangedConcurrently ErrorCode = "storage_changed_concurrently"⁠HTTP status 409

Another request changed this storage setting while this one was running, so this request left it as it is. Read the Workspace and send the request again if you still want the change.