Claude Platform Docs

External Storage

Criar External Storage
beta.organization.external_storage.create(**kwargs) -> BetaExternalStorage
POST/v1/organizations/external_storage
Requires anthropic-beta: efs-2026-10-01. Learn how to send beta headers.

Registra um bucket na própria conta de nuvem da organização. Ele é salvo como pending_configuration e verificado quando ativado.

Listar External Storage
beta.organization.external_storage.list(**kwargs) -> PageCursor<BetaExternalStorage>
GET/v1/organizations/external_storage
Requires anthropic-beta: efs-2026-10-01. Learn how to send beta headers.

Lista o External Storage da organização, do mais recente para o mais antigo.

Obter External Storage
beta.organization.external_storage.retrieve(external_storage_id, **kwargs) -> BetaExternalStorage
GET/v1/organizations/external_storage/{external_storage_id}
Requires anthropic-beta: efs-2026-10-01. Learn how to send beta headers.

Obtém um External Storage da organização.

Atualizar External Storage
beta.organization.external_storage.update(external_storage_id, **kwargs) -> BetaExternalStorage
POST/v1/organizations/external_storage/{external_storage_id}
Requires anthropic-beta: efs-2026-10-01. Learn how to send beta headers.

Renomeia o External Storage ou remove seu nome, em qualquer status.

Excluir External Storage
beta.organization.external_storage.delete(external_storage_id, **kwargs) -> BetaDeletedExternalStorage
DELETE/v1/organizations/external_storage/{external_storage_id}
Requires anthropic-beta: efs-2026-10-01. Learn how to send beta headers.

Exclui o External Storage. Um armazenamento com configuração pendente, disponível ou ativo mas nunca anexado é excluído imediatamente, a menos que uma política de workspace do Enterprise Frontier Safeguards o liste. Qualquer outro armazenamento recebe um 400 que informa o que fazer em seguida. Em um armazenamento draining, esse 400 pode significar que esta exclusão iniciou uma remoção que não pode ser desfeita. Para verificar, obtenha o armazenamento: se status.removal_started for true, exclua-o novamente mais tarde para concluir.

Ativar External Storage
beta.organization.external_storage.activate(external_storage_id, **kwargs) -> BetaExternalStorage
POST/v1/organizations/external_storage/{external_storage_id}/activate
Requires anthropic-beta: efs-2026-10-01. Learn how to send beta headers.

Verifica o External Storage pendente e o torna disponível. Um armazenamento que já está disponível, ativo ou em draining é retornado inalterado, sem nenhuma verificação.

Models
class BetaActiveExternalStorageStatus { type: :active, healthy, last_checked_at }

At least one Workspace has the storage attached.

type: :active
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.

last_checked_at: Time

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

formatdate-time
class BetaAvailableExternalStorageStatus { type: :available, healthy, last_checked_at }

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

type: :available
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.

last_checked_at: Time

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

formatdate-time
class BetaAWSExternalStorageConfig { type: :aws, account_id, bucket_name, region }

An Amazon S3 bucket.

type: :aws
account_id: String

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

bucket_name: String

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

region: String

The bucket's AWS region.

class BetaAWSExternalStorageConfigParam { type: :aws, account_id, bucket_name, region }

An Amazon S3 bucket.

type: :aws
account_id: String

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

bucket_name: 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.

class BetaDeletedExternalStorage { type: :external_storage_deleted, id }
type: :external_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.

class BetaDrainingExternalStorageStatus { type: :draining, healthy, last_checked_at, removal_started }

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

type: :draining
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.

last_checked_at: Time

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

formatdate-time
removal_started: 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.

class BetaExternalStorage { type: :external_storage, id, created_at, 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.

class BetaExternalStorageFailedCheck { check, message, role }

One check that an External Storage's verification failed.

class BetaExternalStorageInUseErrorDetails { error_code }
error_code: :external_storage_in_use
class BetaExternalStorageInWorkspacePolicyErrorDetails { error_code }
error_code: :external_storage_in_workspace_policy
class BetaExternalStorageNotAvailableErrorDetails { error_code }
error_code: :external_storage_not_available
class BetaGCPExternalStorageConfig { type: :gcp, bucket_name, project_number, region }

A Google Cloud Storage bucket.

type: :gcp
bucket_name: String

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

project_number: String

Number of the Google Cloud project that holds the bucket.

region: String

The bucket's Google Cloud region.

class BetaGCPExternalStorageConfigParam { type: :gcp, bucket_name, project_number, region }

A Google Cloud Storage bucket.

type: :gcp
bucket_name: 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.

project_number: 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.

class BetaGrantRequiredErrorDetails { error_code }
error_code: :grant_required
class BetaInvalidStorageARNErrorDetails { error_code }
error_code: :invalid_storage_arn
class BetaPendingConfigurationExternalStorageStatus { type: :pending_configuration }

The storage isn't verified yet.

type: :pending_configuration
class BetaProviderNotAllowedErrorDetails { error_code }
error_code: :provider_not_allowed
class BetaStorageAlreadyRegisteredErrorDetails { error_code }
error_code: :storage_already_registered
class BetaStorageAttachLimitReachedErrorDetails { error_code }
error_code: :storage_attach_limit_reached
class BetaStorageChangedConcurrentlyErrorDetails { error_code, field }
error_code: :storage_changed_concurrently
field: String

The storage setting that changed.

class BetaStorageNotAttachableErrorDetails { error_code, field }
error_code: :storage_not_attachable
field: String

The request field at fault.

class BetaStorageProfileStillRequiredErrorDetails { error_code }
error_code: :storage_profile_still_required
class BetaStorageVerificationFailedErrorDetails { error_code, failed_checks, field }
class BetaUnsupportedRegionErrorDetails { error_code }
error_code: :unsupported_region
Errors
class BetaExternalStorageInUseError < Anthropic::Errors::BadRequestError { error_code, details }⁠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.

error_code: :external_storage_in_use
details: BetaExternalStorageInUseErrorDetails { error_code }
error_code: :external_storage_in_use
class BetaExternalStorageInWorkspacePolicyError < Anthropic::Errors::BadRequestError { error_code, details }⁠HTTP status 400

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

error_code: :external_storage_in_workspace_policy
error_code: :external_storage_in_workspace_policy
class BetaExternalStorageNotAvailableError < Anthropic::Errors::BadRequestError { error_code, details }⁠HTTP status 400

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

error_code: :external_storage_not_available
error_code: :external_storage_not_available
class BetaGrantRequiredError < Anthropic::Errors::BadRequestError { error_code, details }⁠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.

error_code: :grant_required
details: BetaGrantRequiredErrorDetails { error_code }
error_code: :grant_required
class BetaInvalidStorageARNError < Anthropic::Errors::BadRequestError { error_code, details }⁠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.

error_code: :invalid_storage_arn
details: BetaInvalidStorageARNErrorDetails { error_code }
error_code: :invalid_storage_arn
class BetaProviderNotAllowedError < Anthropic::Errors::BadRequestError { error_code, details }⁠HTTP status 400

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

error_code: :provider_not_allowed
details: BetaProviderNotAllowedErrorDetails { error_code }
error_code: :provider_not_allowed
class BetaStorageAttachLimitReachedError < Anthropic::Errors::BadRequestError { error_code, details }⁠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.

error_code: :storage_attach_limit_reached
error_code: :storage_attach_limit_reached
class BetaStorageNotAttachableError < Anthropic::Errors::BadRequestError { error_code, details }⁠HTTP status 400

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

error_code: :storage_not_attachable
details: BetaStorageNotAttachableErrorDetails { error_code, field }
error_code: :storage_not_attachable
field: String

The request field at fault.

class BetaStorageProfileStillRequiredError < Anthropic::Errors::BadRequestError { error_code, details }⁠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.

error_code: :storage_profile_still_required
error_code: :storage_profile_still_required
class BetaStorageVerificationFailedError < Anthropic::Errors::BadRequestError { error_code, details }⁠HTTP status 400

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

error_code: :storage_verification_failed
details: BetaStorageVerificationFailedErrorDetails { error_code, failed_checks, field }
class BetaUnsupportedRegionError < Anthropic::Errors::BadRequestError { error_code, details }⁠HTTP status 400

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

error_code: :unsupported_region
details: BetaUnsupportedRegionErrorDetails { error_code }
error_code: :unsupported_region
class BetaStorageAlreadyRegisteredError < Anthropic::Errors::ConflictError { error_code, details }⁠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.

error_code: :storage_already_registered
error_code: :storage_already_registered
class BetaStorageChangedConcurrentlyError < Anthropic::Errors::ConflictError { error_code, details }⁠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.

error_code: :storage_changed_concurrently
details: BetaStorageChangedConcurrentlyErrorDetails { error_code, field }
error_code: :storage_changed_concurrently
field: String

The storage setting that changed.