Claude Platform Docs

External Storage

External Storage erstellen
BetaExternalStorage beta().organization().externalStorage().create(params, requestOptions = RequestOptions.none())
POST/v1/organizations/external_storage
Requires anthropic-beta: efs-2026-10-01. Learn how to send beta headers.

Registriert einen Bucket im eigenen Cloud-Konto der Organisation. Er wird als pending_configuration gespeichert und bei der Aktivierung verifiziert.

External Storage auflisten
ExternalStorageListPage beta().organization().externalStorage().list(params = ExternalStorageListParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/external_storage
Requires anthropic-beta: efs-2026-10-01. Learn how to send beta headers.

Listet die External Storage der Organisation auf, neueste zuerst.

External Storage abrufen
BetaExternalStorage beta().organization().externalStorage().retrieve(params = ExternalStorageRetrieveParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/external_storage/{external_storage_id}
Requires anthropic-beta: efs-2026-10-01. Learn how to send beta headers.

Ruft einen External Storage in der Organisation ab.

External Storage aktualisieren
BetaExternalStorage beta().organization().externalStorage().update(params, requestOptions = RequestOptions.none())
POST/v1/organizations/external_storage/{external_storage_id}
Requires anthropic-beta: efs-2026-10-01. Learn how to send beta headers.

Benennt External Storage um oder entfernt seinen Namen, in jedem Status.

External Storage löschen
BetaDeletedExternalStorage beta().organization().externalStorage().delete(params = ExternalStorageDeleteParams.none(), requestOptions = RequestOptions.none())
DELETE/v1/organizations/external_storage/{external_storage_id}
Requires anthropic-beta: efs-2026-10-01. Learn how to send beta headers.

Löscht External Storage. Speicher, dessen Konfiguration aussteht, der verfügbar ist oder der aktiv, aber nie angehängt ist, wird sofort gelöscht, es sei denn, eine Workspace-Richtlinie von Enterprise Frontier Safeguards führt ihn auf. Für anderen Speicher kommt ein 400-Fehler zurück, der angibt, was als Nächstes zu tun ist. Bei Speicher im Status draining kann dieser 400-Fehler bedeuten, dass dieses Löschen eine Entfernung gestartet hat, die nicht rückgängig gemacht werden kann. Um das zu prüfen, rufe den Speicher ab: Wenn status.removal_started true ist, lösche ihn später erneut, um den Vorgang abzuschließen.

External Storage aktivieren
BetaExternalStorage beta().organization().externalStorage().activate(params = ExternalStorageActivateParams.none(), requestOptions = RequestOptions.none())
POST/v1/organizations/external_storage/{external_storage_id}/activate
Requires anthropic-beta: efs-2026-10-01. Learn how to send beta headers.

Verifiziert ausstehenden External Storage und macht ihn verfügbar. Speicher, der bereits verfügbar, aktiv oder im Status „Draining“ ist, wird unverändert und ohne Prüfung zurückgegeben.

Models
class BetaActiveExternalStorageStatus { type = "active"; healthy; lastCheckedAt; }

At least one Workspace has the storage attached.

JsonValue type = "active"
boolean healthy

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

OffsetDateTime lastCheckedAt

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

formatdate-time
class BetaAvailableExternalStorageStatus { type = "available"; healthy; lastCheckedAt; }

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

JsonValue type = "available"
boolean healthy

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

OffsetDateTime lastCheckedAt

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

formatdate-time
class BetaAwsExternalStorageConfig { type = "aws"; accountId; bucketName; region; }

An Amazon S3 bucket.

JsonValue type = "aws"
String accountId

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

String bucketName

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

String region

The bucket's AWS region.

class BetaAwsExternalStorageConfigParam { type = "aws"; accountId; bucketName; region; }

An Amazon S3 bucket.

JsonValue type = "aws"
String accountId

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

String bucketName

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

String region

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; }
JsonValue type = "external_storage_deleted"
String id

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; lastCheckedAt; removalStarted; }

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

JsonValue type = "draining"
boolean healthy

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

OffsetDateTime lastCheckedAt

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

formatdate-time
boolean removalStarted

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; 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.

class BetaExternalStorageFailedCheck { check; message; role; }

One check that an External Storage's verification failed.

class BetaExternalStorageInUseErrorDetails { errorCode; }
JsonValue errorCode = "external_storage_in_use"
class BetaExternalStorageInWorkspacePolicyErrorDetails { errorCode; }
JsonValue errorCode = "external_storage_in_workspace_policy"
class BetaExternalStorageNotAvailableErrorDetails { errorCode; }
JsonValue errorCode = "external_storage_not_available"
class BetaGcpExternalStorageConfig { type = "gcp"; bucketName; projectNumber; region; }

A Google Cloud Storage bucket.

JsonValue type = "gcp"
String bucketName

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

String projectNumber

Number of the Google Cloud project that holds the bucket.

String region

The bucket's Google Cloud region.

class BetaGcpExternalStorageConfigParam { type = "gcp"; bucketName; projectNumber; region; }

A Google Cloud Storage bucket.

JsonValue type = "gcp"
String bucketName

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.

String projectNumber

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

String region

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 { errorCode; }
JsonValue errorCode = "grant_required"
class BetaInvalidStorageArnErrorDetails { errorCode; }
JsonValue errorCode = "invalid_storage_arn"
class BetaPendingConfigurationExternalStorageStatus { type = "pending_configuration"; }

The storage isn't verified yet.

JsonValue type = "pending_configuration"
class BetaProviderNotAllowedErrorDetails { errorCode; }
JsonValue errorCode = "provider_not_allowed"
class BetaStorageAlreadyRegisteredErrorDetails { errorCode; }
JsonValue errorCode = "storage_already_registered"
class BetaStorageAttachLimitReachedErrorDetails { errorCode; }
JsonValue errorCode = "storage_attach_limit_reached"
class BetaStorageChangedConcurrentlyErrorDetails { errorCode; field; }
JsonValue errorCode = "storage_changed_concurrently"
String field

The storage setting that changed.

class BetaStorageNotAttachableErrorDetails { errorCode; field; }
JsonValue errorCode = "storage_not_attachable"
String field

The request field at fault.

class BetaStorageProfileStillRequiredErrorDetails { errorCode; }
JsonValue errorCode = "storage_profile_still_required"
class BetaStorageVerificationFailedErrorDetails { errorCode; failedChecks; field; }
class BetaUnsupportedRegionErrorDetails { errorCode; }
JsonValue errorCode = "unsupported_region"
Errors
class BetaExternalStorageInUseException extends BadRequestException { 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.

JsonValue errorCode = "external_storage_in_use"
class BetaExternalStorageInWorkspacePolicyException extends BadRequestException { details; }⁠HTTP status 400

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

JsonValue errorCode = "external_storage_in_workspace_policy"
class BetaExternalStorageNotAvailableException extends BadRequestException { details; }⁠HTTP status 400

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

JsonValue errorCode = "external_storage_not_available"
class BetaGrantRequiredException extends BadRequestException { 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.

JsonValue errorCode = "grant_required"
class BetaInvalidStorageArnException extends BadRequestException { 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.

JsonValue errorCode = "invalid_storage_arn"
class BetaProviderNotAllowedException extends BadRequestException { details; }⁠HTTP status 400

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

JsonValue errorCode = "provider_not_allowed"
class BetaStorageAttachLimitReachedException extends BadRequestException { 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.

JsonValue errorCode = "storage_attach_limit_reached"
class BetaStorageNotAttachableException extends BadRequestException { details; }⁠HTTP status 400

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

JsonValue errorCode = "storage_not_attachable"
String field

The request field at fault.

class BetaStorageProfileStillRequiredException extends BadRequestException { 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.

JsonValue errorCode = "storage_profile_still_required"
class BetaStorageVerificationFailedException extends BadRequestException { details; }⁠HTTP status 400

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

class BetaUnsupportedRegionException extends BadRequestException { details; }⁠HTTP status 400

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

JsonValue errorCode = "unsupported_region"
class BetaStorageAlreadyRegisteredException extends ConflictException { 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.

JsonValue errorCode = "storage_already_registered"
class BetaStorageChangedConcurrentlyException extends ConflictException { 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.

JsonValue errorCode = "storage_changed_concurrently"
String field

The storage setting that changed.