Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One capture · api

One read of Claude Developer Platformapi-20261201T210709Z

10 pages moved out of 992 read.

Pages moved 10 significant first
Pages read 992 in this capture
Captured 21:07 UTC
Corpus hash c380e6fe3bc9 corpus-hash

What this read moved

1-10 of 10

api/migration-2026-10-21 Changed · +11 / -2 lines

from line 528
528528 * `BetaManagedAgentsEventParamsOfUserToolConfirmation`
529529 * `BetaManagedAgentsEventParamsOfUserDefineOutcome`
530530 * `BetaManagedAgentsDeploymentInitialEventParamsOfUserDefineOutcome`
531 * `BetaManagedAgentsMultiagentRosterEntryParamsOfBetaManagedAgentsAgents`
532 * `BetaManagedAgentsMultiagentRosterEntryParamsOfBetaManagedAgentsAdvisors`
531 * `BetaManagedAgentsMultiagentRosterEntryParamsOfBetaManagedAgentsAgents` (`BetaManagedAgentsMultiagentRosterEntryParamsOfBetaManagedAgentsAgent` in the latest version)
532 * `BetaManagedAgentsMultiagentRosterEntryParamsOfBetaManagedAgentsAdvisors` (`BetaManagedAgentsMultiagentRosterEntryParamsOfBetaManagedAgentsAdvisor` in the latest version)
533533 
534534 These four took no other argument, so they are gone. Set the union’s field to a pointer to the empty struct, such as `BetaManagedAgentsEventParamsUnion{OfUserInterrupt: &anthropic.BetaManagedAgentsUserInterruptEventParams{}}`:
535535 
from line 537
537537 * `BetaManagedAgentsMultiagentRosterEntryParamsOfBetaManagedAgentsMultiagentSelfs`
538538 * `BetaManagedAgentsCredentialNetworkingParamsOfUnrestricted`
539539 * `BetaOutputBehaviorParamOfCreateNew`
540 
541 The [latest version of the Go SDK](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/go#installation) drops a stray `s` from the six beta union field names below, and from the constructors named after the first two. The other four have no constructor in v2. Older v2 versions keep the `s`, so if Go reports one of these names as `undefined` or as an `unknown field`, try the other spelling.
542 
543 * `OfBetaManagedAgentsAgents` becomes `OfBetaManagedAgentsAgent`.
544 * `OfBetaManagedAgentsAdvisors` becomes `OfBetaManagedAgentsAdvisor`.
545 * `OfBetaManagedAgentsMultiagentSelfs` becomes `OfBetaManagedAgentsMultiagentSelf`.
546 * `OfBetaManagedAgentsAgentWithOverridess` becomes `OfBetaManagedAgentsAgentWithOverrides`.
547 * `OfBetaManagedAgentsModelConfigsEffortBetaManagedAgentsEffortLevel` becomes `OfBetaManagedAgentsModelConfigEffortBetaManagedAgentsEffortLevel`.
548 * `OfContainers` becomes `OfContainer` in the beta unions. `MessageCreateParamsContainerUnion` keeps `OfContainers`.
540549 </Tab>
541550 
542551 <Tab title="Java">

manage-claude/enterprise-frontier-safeguards/customer-owned-storage Changed · +1 / -5 lines

from line 87
8787 
8888 </Where>
8989 
90 <Where bucket="s3" label="Amazon S3">
91 
9290 <Where cloud="claude" label="Claude Platform">
9391 
9492 <Card title="Set up customer-owned storage with the Admin API" icon="code" href="https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage?method=api">
95 Script the Claude Console’s part with the Admin API, where an External Storage is Anthropic’s record of your bucket.
93 Register, activate, and attach your bucket with the Admin API. You still get the setup file from the Claude Console.
9694 </Card>
97 
98 </Where>
9995 
10096 </Where>
10197</CardGroup>

manage-claude/enterprise-frontier-safeguards/external-storage Changed · +1098 / -13 lines

### Register your bucket ### Get the Terraform file ### Activate your bucket ### Check your bucket’s status

The two sides of this change are more than 400 edits apart, too far apart to line up, so this is the differ's own diff of it and the words inside a line are not marked.

from line 681
681681 
682682Anthropic checks your bucket, its KMS key, and the roles for Sealed Safety Data while the request runs. If everything passes, the status becomes `available` and your bucket is ready to attach. If a check fails, see [Troubleshooting on Manage customer-owned storage](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage-manage#api-troubleshooting).
683683 
684If Anthropic refuses your bucket’s AWS account ID, bucket name, or region, the request returns a 400 error with no `error.details.error_code`. Its `message` says what to do.
685 
684686</Where>
685687 
686688## Use your storage destination in a workspace
from line 923
921923* `approval_required`: Your organization doesn’t have Anthropic’s approval to turn off Anthropic Human Review. The request changes nothing.
922924* `workspace_policy_violation`: Your organization’s policy refuses the request, for example because it requires Anthropic Human Review.
923925* `transcripts_storage_required`: Nothing changes. [Set `transcripts_storage` too](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#api-attach-transcripts) in the same request.
926* `storage_not_attachable`: Your bucket isn’t activated, or `external_storage_id` doesn’t name External Storage in your organization. [Activate your bucket](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#api-activate) or correct the ID, then send the request again. If the `message` gives another reason, contact your Anthropic account team.
927* `storage_profile_mismatch`: Your bucket and the workspace must have the same user profile, or both have none. Do what the `message` says.
924928 
925929For more on attach errors, see [Troubleshooting on Manage customer-owned storage](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage-manage#api-troubleshooting).
926930 
from line 962
958962 
959963The change doesn’t take effect right away. While you wait, the following are expected, even when setup succeeded:
960964 
961* **The wait.** When a new workspace, or one on Anthropic-managed storage, starts to use your bucket, the change usually takes effect within 10 minutes, but it can take longer.
965* **The wait.** When a new workspace, or one on Anthropic-managed storage, starts to use your bucket, the change usually takes effect within 10 minutes, but it can take longer. <Where cloud="claude" label="Claude Platform">If Messages API requests to a new workspace return a 503 error with the code `storage_not_ready`, try again in a minute.</Where>
962966* **No new objects.** Until the change takes effect, your Sealed Safety Data from that workspace’s requests might go to Anthropic-managed storage, and new objects might not appear under `slab/` or `safeguards-data/slab/`.
963967* **An Active status with no objects.** Your bucket can show as **Active** in **Storage destinations** before the change takes effect, so **Active** doesn’t mean that objects are arriving.
964968* **Anthropic Human Review.** If the change also turns off Anthropic Human Review, that can take up to 2 hours. Until then, Anthropic’s review team might still review the workspace’s data.
from line 1162
11581162 
11591163## Set up customer-owned storage on Google Cloud Storage
11601164 
1161A Google Cloud Storage bucket in your own cloud account keeps a workspace’s [Sealed Safety Data](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/customer-owned-storage#what-is-stored). To set up the bucket, create it with Terraform and connect it in the Claude Console. Your team can’t read Sealed Safety Data. Before you start, read [Use your Cloud Storage bucket in a workspace](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#gcs-use-your-bucket-in-a-workspace).
1165A bucket in your own cloud account keeps a workspace’s [Sealed Safety Data](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/customer-owned-storage#what-is-stored). <Where method="console" label="Claude Console">To set up the bucket, create it with Terraform and connect it in the Claude Console.</Where> <Where method="api" label="Admin API">To set up the bucket, register it with the Admin API, create it with a Terraform file from the Claude Console, and activate it with the Admin API.</Where> Your team can’t read Sealed Safety Data. Before you start, read [Use your Cloud Storage bucket in a workspace](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#gcs-use-your-bucket-in-a-workspace).
11621166 
11631167Setup has three parts:
11641168 
from line 1183
11791183* **Tools:** [Terraform 1.9 or later](https://developer.hashicorp.com/terraform/install) and the [Google Cloud CLI](https://docs.cloud.google.com/sdk/docs/install-sdk).
11801184* **Roles on the project:** Project Owner or all of `roles/storage.admin`, `roles/cloudkms.admin`, `roles/iam.roleAdmin`, and `roles/serviceusage.serviceUsageAdmin`.
11811185* **A role for policy changes:** `roles/orgpolicy.policyAdmin` on the Google Cloud organization. Project Owner doesn’t include it.
1186 
1187<Where method="api" label="Admin API">
1188 
1189### Authenticate your requests
1190 
1191<Tabs>
1192 <Tab title="cURL">
1193 Every request on this page sends `anthropic-version: 2026-10-21` and `anthropic-beta: efs-2026-10-01`. Send one of these credentials with each request:
1194 
1195 * **An OAuth bearer token with the `org:admin` scope:** Every request on this page takes one in the `authorization: Bearer` header. To get one, see [OAuth bearer token](https://platform.claude.com/docs/en/manage-claude/admin-api#oauth-bearer-token). The examples read it from `$ANTHROPIC_AUTH_TOKEN`. The token is short-lived: if a request returns a 401 error, get a new one.
1196 * **A personal key or service account key:** Every request on this page takes one in `x-api-key`. Use a key that isn’t scoped to a workspace (see [Key types](https://platform.claude.com/docs/en/manage-claude/api-keys#key-types)). The Admin API refuses a key that’s scoped to a workspace, even for requests on that workspace.
1197 * **An Admin API key:** It can’t attach or detach storage: those requests return a permission error. The External Storage requests take one in `x-api-key`. To get one, see [Create an Admin API key](https://platform.claude.com/docs/en/manage-claude/admin-api-keys).
1198 
1199 For a token or a personal or service account key, the account must have the admin role. To use a key, replace the `authorization` header in each example with `x-api-key: $ANTHROPIC_API_KEY`.
1200 </Tab>
1201 
1202 <Tab title="CLI">
1203 Use one credential for every request on this page. Use an [OAuth bearer token](https://platform.claude.com/docs/en/manage-claude/admin-api#oauth-bearer-token) with the `org:admin` scope. Or use a personal key or service account key that isn’t scoped to a workspace (see [Key types](https://platform.claude.com/docs/en/manage-claude/api-keys#key-types)). Either way, the account must have the admin role. Don’t use an Admin API key: it can’t attach or detach storage.
1204 
1205 Set `ANTHROPIC_AUTH_TOKEN` to the token or `ANTHROPIC_API_KEY` to the key. Set only one: with both set, the `ant` CLI sends the key. The token is short-lived: if a request returns a 401 error, get a new one. Leave `ANTHROPIC_WORKSPACE_ID` unset: with it set, a key gets a 400 error on these requests.
1206 
1207 The CLI sends your credential and the `anthropic-version` header for you. On the External Storage requests, it also sends `anthropic-beta: efs-2026-10-01`. On workspace requests that set `inference_data_privacy`, it doesn’t, so pass `efs-2026-10-01` with `--beta` yourself, as the attach and detach examples show.
1208 
1209 When the API refuses a request, the CLI prints the whole response body. Look there for `error.details.error_code`.
1210 </Tab>
1211 
1212 <Tab title="Python">
1213 Use one credential for every request on this page. Use an [OAuth bearer token](https://platform.claude.com/docs/en/manage-claude/admin-api#oauth-bearer-token) with the `org:admin` scope. Or use a personal key or service account key that isn’t scoped to a workspace (see [Key types](https://platform.claude.com/docs/en/manage-claude/api-keys#key-types)). Either way, the account must have the admin role. Don’t use an Admin API key: it can’t attach or detach storage.
1214 
1215 Set `ANTHROPIC_AUTH_TOKEN` to the token or `ANTHROPIC_API_KEY` to the key. Set only one: with both set, the SDK sends the key. The token is short-lived: if a request returns a 401 error, get a new one.
1216 
1217 The SDK sends your credential and the `anthropic-version` header for you. On the External Storage requests, it also sends `anthropic-beta: efs-2026-10-01`. On workspace requests that set `inference_data_privacy`, it doesn’t, so pass `efs-2026-10-01` to the SDK yourself, as the attach and detach examples show.
1218 
1219 When the API refuses a request, the SDK call fails with an error whose text holds the whole response body. Look there for `error.details.error_code`.
1220 </Tab>
1221 
1222 <Tab title="TypeScript">
1223 Use one credential for every request on this page. Use an [OAuth bearer token](https://platform.claude.com/docs/en/manage-claude/admin-api#oauth-bearer-token) with the `org:admin` scope. Or use a personal key or service account key that isn’t scoped to a workspace (see [Key types](https://platform.claude.com/docs/en/manage-claude/api-keys#key-types)). Either way, the account must have the admin role. Don’t use an Admin API key: it can’t attach or detach storage.
1224 
1225 Set `ANTHROPIC_AUTH_TOKEN` to the token or `ANTHROPIC_API_KEY` to the key. Set only one: with both set, the SDK sends the key. The token is short-lived: if a request returns a 401 error, get a new one.
1226 
1227 The SDK sends your credential and the `anthropic-version` header for you. On the External Storage requests, it also sends `anthropic-beta: efs-2026-10-01`. On workspace requests that set `inference_data_privacy`, it doesn’t, so pass `efs-2026-10-01` to the SDK yourself, as the attach and detach examples show.
1228 
1229 When the API refuses a request, the SDK call fails with an error whose text holds the whole response body. Look there for `error.details.error_code`.
1230 </Tab>
1231 
1232 <Tab title="C#">
1233 Use one credential for every request on this page. Use an [OAuth bearer token](https://platform.claude.com/docs/en/manage-claude/admin-api#oauth-bearer-token) with the `org:admin` scope. Or use a personal key or service account key that isn’t scoped to a workspace (see [Key types](https://platform.claude.com/docs/en/manage-claude/api-keys#key-types)). Either way, the account must have the admin role. Don’t use an Admin API key: it can’t attach or detach storage.
1234 
1235 Set `ANTHROPIC_AUTH_TOKEN` to the token or `ANTHROPIC_API_KEY` to the key. Set only one: with both set, the SDK sends the key. The token is short-lived: if a request returns a 401 error, get a new one.
1236 
1237 The SDK sends your credential and the `anthropic-version` header for you. On the External Storage requests, it also sends `anthropic-beta: efs-2026-10-01`. On workspace requests that set `inference_data_privacy`, it doesn’t, so pass `efs-2026-10-01` to the SDK yourself, as the attach and detach examples show.
1238 
1239 When the API refuses a request, the SDK call fails with an error whose text holds the whole response body. Look there for `error.details.error_code`.
1240 </Tab>
1241 
1242 <Tab title="Go">
1243 Use one credential for every request on this page. Use an [OAuth bearer token](https://platform.claude.com/docs/en/manage-claude/admin-api#oauth-bearer-token) with the `org:admin` scope. Or use a personal key or service account key that isn’t scoped to a workspace (see [Key types](https://platform.claude.com/docs/en/manage-claude/api-keys#key-types)). Either way, the account must have the admin role. Don’t use an Admin API key: it can’t attach or detach storage.
1244 
1245 Set `ANTHROPIC_AUTH_TOKEN` to the token or `ANTHROPIC_API_KEY` to the key. Set only one: with both set, the SDK sends the key. The token is short-lived: if a request returns a 401 error, get a new one.
1246 
1247 The SDK sends your credential and the `anthropic-version` header for you. On the External Storage requests, it also sends `anthropic-beta: efs-2026-10-01`. On workspace requests that set `inference_data_privacy`, it doesn’t, so pass `efs-2026-10-01` to the SDK yourself, as the attach and detach examples show.
1248 
1249 When the API refuses a request, the SDK call fails with an error whose text holds the whole response body. Look there for `error.details.error_code`.
1250 </Tab>
1251 
1252 <Tab title="Java">
1253 Use one credential for every request on this page. Use an [OAuth bearer token](https://platform.claude.com/docs/en/manage-claude/admin-api#oauth-bearer-token) with the `org:admin` scope. Or use a personal key or service account key that isn’t scoped to a workspace (see [Key types](https://platform.claude.com/docs/en/manage-claude/api-keys#key-types)). Either way, the account must have the admin role. Don’t use an Admin API key: it can’t attach or detach storage.
1254 
1255 Set `ANTHROPIC_AUTH_TOKEN` to the token or `ANTHROPIC_API_KEY` to the key. Set only one: with both set, the SDK sends the key. The token is short-lived: if a request returns a 401 error, get a new one.
1256 
1257 The SDK sends your credential and the `anthropic-version` header for you. On the External Storage requests, it also sends `anthropic-beta: efs-2026-10-01`. On workspace requests that set `inference_data_privacy`, it doesn’t, so pass `efs-2026-10-01` to the SDK yourself, as the attach and detach examples show.
1258 
1259 When the API refuses a request, the SDK call fails with an error whose text holds the whole response body. Look there for `error.details.error_code`.
1260 </Tab>
1261 
1262 <Tab title="PHP">
1263 Use one credential for every request on this page. Use an [OAuth bearer token](https://platform.claude.com/docs/en/manage-claude/admin-api#oauth-bearer-token) with the `org:admin` scope. Or use a personal key or service account key that isn’t scoped to a workspace (see [Key types](https://platform.claude.com/docs/en/manage-claude/api-keys#key-types)). Either way, the account must have the admin role. Don’t use an Admin API key: it can’t attach or detach storage.
1264 
1265 Set `ANTHROPIC_AUTH_TOKEN` to the token or `ANTHROPIC_API_KEY` to the key. Set only one: with both set, the SDK sends the key. The token is short-lived: if a request returns a 401 error, get a new one.
1266 
1267 The SDK sends your credential and the `anthropic-version` header for you. On the External Storage requests, it also sends `anthropic-beta: efs-2026-10-01`. On workspace requests that set `inference_data_privacy`, it doesn’t, so pass `efs-2026-10-01` to the SDK yourself, as the attach and detach examples show.
1268 
1269 When the API refuses a request, the SDK call fails with an error whose text holds the whole response body. Look there for `error.details.error_code`.
1270 </Tab>
1271 
1272 <Tab title="Ruby">
1273 Use one credential for every request on this page. Use an [OAuth bearer token](https://platform.claude.com/docs/en/manage-claude/admin-api#oauth-bearer-token) with the `org:admin` scope. Or use a personal key or service account key that isn’t scoped to a workspace (see [Key types](https://platform.claude.com/docs/en/manage-claude/api-keys#key-types)). Either way, the account must have the admin role. Don’t use an Admin API key: it can’t attach or detach storage.
1274 
1275 Set `ANTHROPIC_AUTH_TOKEN` to the token or `ANTHROPIC_API_KEY` to the key. Set only one: with both set, the SDK sends the key. The token is short-lived: if a request returns a 401 error, get a new one.
1276 
1277 The SDK sends your credential and the `anthropic-version` header for you. On the External Storage requests, it also sends `anthropic-beta: efs-2026-10-01`. On workspace requests that set `inference_data_privacy`, it doesn’t, so pass `efs-2026-10-01` to the SDK yourself, as the attach and detach examples show.
1278 
1279 When the API refuses a request, the SDK call fails with an error whose text holds the whole response body. Look there for `error.details.error_code`.
1280 </Tab>
1281</Tabs>
1282 
1283</Where>
11821284 
11831285## 1. Check your Google Cloud organization policies
11841286 
from line 1328
12261328 
12271329## 2. Create and test the bucket
12281330 
1229In this step, you download a Terraform file from the Claude Console, apply it, and test the result. The file creates the bucket, an `HSM` Cloud KMS key that encrypts it, custom roles, and grants to Anthropic’s accounts. It also prepares the bucket to hold Transcripts and Safety Cases.
1331In this step, you <Where method="console" label="Claude Console">download a Terraform file from the Claude Console, apply it, and test the result.</Where> <Where method="api" label="Admin API">register your bucket with the Admin API, download a Terraform file from the Claude Console, apply it, and activate your bucket with the Admin API.</Where> The file creates the bucket, an `HSM` Cloud KMS key that encrypts it, custom roles, and grants to Anthropic’s accounts. It also prepares the bucket to hold Transcripts and Safety Cases.
12301332 
12311333The bucket’s own lifecycle rules delete each object of Sealed Safety Data after it’s 28 days old and permanently remove it at least a day later.
12321334 
from line 1336
12341336 Anyone with the Viewer role on the project can download the objects in all its buckets, including any Transcripts and Safety Case files. Those files aren’t sealed, so anyone who downloads them can read them. Anyone with the Editor or Owner role can also change or delete the objects. Use one project for more than one Anthropic organization only if you accept that access.
12351337</Warning>
12361338 
1339<Where method="console" label="Claude Console">
1340 
123713411. On the [Data retention](https://platform.claude.com/settings/privacy) page in the Claude Console, select **Organization** at the top and click **Connect storage**. Make sure that you’re in the Anthropic organization whose workspaces will use this bucket.
12381342 
12391343 * **On Claude Models on Google Cloud (Anthropic managed):** The dialog doesn’t ask for a provider, and it fills in the number of the project whose organization will use this bucket. If it does otherwise, you’re in the wrong organization. Open the Claude Console from that project.
from line 1349
124513493. Select **Terraform**, enter your project’s ID, and download `customer-bucket-setup-gcs.tf` to an empty folder.
12461350 
124713514. In that folder, run the following commands. The dialog shows the two `terraform` commands with your own values.
1352 
1353</Where>
1354 
1355<Where method="api" label="Admin API">
1356 
1357### Register your bucket
1358 
1359Tell Anthropic which bucket you plan to use, so that the Claude Console can fill in your Terraform commands. Registering creates an External Storage, which is Anthropic’s record of your bucket. It creates nothing in Google Cloud. The Claude Console calls this record a storage destination.
1360 
1361<CodeGroup>
1362 ```bash cURL
1363 curl https://api.anthropic.com/v1/organizations/external_storage \
1364 -H "authorization: Bearer $ANTHROPIC_AUTH_TOKEN" \
1365 -H "anthropic-version: 2026-10-21" \
1366 -H "anthropic-beta: efs-2026-10-01" \
1367 -H "content-type: application/json" \
1368 -d '{
1369 "display_name": "Claude retention",
1370 "provider_config": {
1371 "type": "gcp",
1372 "project_number": "123456789012",
1373 "bucket_name": "acme-claude-retention",
1374 "region": "us-east5"
1375 }
1376 }'
1377 ```
1378 
1379 ```bash CLI
1380 ant beta:organization:external-storage create \
1381 --display-name "Claude retention" \
1382 --provider-config '{type: gcp, project_number: "123456789012", bucket_name: acme-claude-retention, region: us-east5}'
1383 ```
1384 
1385 ```python Python
1386 client = anthropic.Anthropic()
1387 
1388 storage = client.beta.organization.external_storage.create(
1389 display_name="Claude retention",
1390 provider_config={
1391 "type": "gcp",
1392 "project_number": "123456789012",
1393 "bucket_name": "acme-claude-retention",
1394 "region": "us-east5",
1395 },
1396 )
1397 
1398 print(f"id: {storage.id}")
1399 print(f"status: {storage.status.type}")
1400 ```
1401 
1402 ```typescript TypeScript
1403 const client = new Anthropic();
1404 
1405 const storage = await client.beta.organization.externalStorage.create({
1406 display_name: "Claude retention",
1407 provider_config: {
1408 type: "gcp",
1409 project_number: "123456789012",
1410 bucket_name: "acme-claude-retention",
1411 region: "us-east5"
1412 }
1413 });
1414 
1415 console.log(`id: ${storage.id}`);
1416 console.log(`status: ${storage.status.type}`);
1417 ```
1418 
1419 ```csharp C#
1420 using Anthropic.Models.Beta.Organization.ExternalStorage;
1421 
1422 AnthropicClient client = new();
1423 
1424 var storage = await client.Beta.Organization.ExternalStorage.Create(new()
1425 {
1426 DisplayName = "Claude retention",
1427 ProviderConfig = new BetaGcpExternalStorageConfigParam
1428 {
1429 ProjectNumber = "123456789012",
1430 BucketName = "acme-claude-retention",
1431 Region = "us-east5",
1432 },
1433 });
1434 
1435 Console.WriteLine($"id: {storage.ID}");
1436 Console.WriteLine($"status: {storage.Status.Type.Raw()}");
1437 ```
1438 
1439 ```go Go
1440 client := anthropic.NewClient()
1441 
1442 storage, err := client.Beta.Organization.ExternalStorage.New(
1443 context.Background(),
1444 anthropic.BetaOrganizationExternalStorageNewParams{
1445 DisplayName: anthropic.String("Claude retention"),
1446 ProviderConfig: anthropic.BetaOrganizationExternalStorageNewParamsProviderConfigUnion{
1447 OfGCP: &anthropic.BetaGCPExternalStorageConfigParam{
1448 ProjectNumber: "123456789012",
1449 BucketName: "acme-claude-retention",
1450 Region: "us-east5",
1451 },
1452 },
1453 },
1454 )
1455 if err != nil {
1456 log.Fatal(err)
1457 }
1458 
1459 fmt.Printf("id: %s\n", storage.ID)
1460 fmt.Printf("status: %s\n", storage.Status.Type)
1461 ```
1462 
1463 ```java Java
1464 import com.anthropic.models.beta.organization.externalstorage.BetaGcpExternalStorageConfigParam;
1465 import com.anthropic.models.beta.organization.externalstorage.ExternalStorageCreateParams;
1466 
1467 void main() {
1468 AnthropicClient client = AnthropicOkHttpClient.fromEnv();
1469 
1470 var params = ExternalStorageCreateParams.builder()
1471 .displayName("Claude retention")
1472 .providerConfig(BetaGcpExternalStorageConfigParam.builder()
1473 .projectNumber("123456789012")
1474 .bucketName("acme-claude-retention")
1475 .region("us-east5")
1476 .build())
1477 .build();
1478 var storage = client.beta().organization().externalStorage().create(params);
1479 
1480 IO.println("id: " + storage.id());
1481 IO.println("status: " + storage.status().type());
1482 }
1483 ```
1484 
1485 ```php PHP
1486 $client = new Client();
1487 
1488 $storage = $client->beta->organization->externalStorage->create(
1489 displayName: 'Claude retention',
1490 providerConfig: [
1491 'type' => 'gcp',
1492 'projectNumber' => '123456789012',
1493 'bucketName' => 'acme-claude-retention',
1494 'region' => 'us-east5',
1495 ],
1496 );
1497 
1498 echo "id: {$storage->id}\n";
1499 echo "status: {$storage->status->type}\n";
1500 ```
1501 
1502 ```ruby Ruby
1503 client = Anthropic::Client.new
1504 
1505 storage = client.beta.organization.external_storage.create(
1506 display_name: "Claude retention",
1507 provider_config: {
1508 type: :gcp,
1509 project_number: "123456789012",
1510 bucket_name: "acme-claude-retention",
1511 region: "us-east5"
1512 }
1513 )
1514 
1515 puts "id: #{storage.id}"
1516 puts "status: #{storage.status.type}"
1517 ```
1518</CodeGroup>
1519 
1520Set these fields in `provider_config`:
1521 
1522* `type`: `gcp`.
1523* `project_number`: your Google Cloud project’s number, as a string. Anthropic refuses a project ID.
1524* `bucket_name`: a new name, because the Terraform file creates your bucket. Use 3 to 63 lowercase letters, digits, and hyphens, starting and ending with a letter or digit. The name can’t start with `goog` or contain `google`.
1525* `region`: a single [supported region](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#supported-regions), not a dual-region or multi-region. **Connect storage** in the Claude Console lists them.
1526 
1527The response has the `id` that later steps use:
1528 
1529```json
1530{
1531 "type": "external_storage",
1532 "id": "estrg_01SDCCSbTxrXDpWc1phhtcfK",
1533 "display_name": "Claude retention",
1534 "user_profile_id": null,
1535 "provider_config": {
1536 "type": "gcp",
1537 "project_number": "123456789012",
1538 "bucket_name": "acme-claude-retention",
1539 "region": "us-east5"
1540 },
1541 "status": {
1542 "type": "pending_configuration"
1543 },
1544 "setup_template_version": null,
1545 "created_at": "2026-10-08T17:00:00Z",
1546 "updated_at": "2026-10-08T17:00:00Z"
1547}
1548```
1549 
1550To change a field in `provider_config` before any workspace uses your bucket, [delete the External Storage](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#delete-a-storage-destination) and register your bucket again.
1551 
1552If the request fails, check `error.details.error_code`:
1553 
1554| Error code | What it means and what to do |
1555| ----- | ----- |
1556| `provider_not_allowed` | Customer-owned storage on Google Cloud Storage isn’t available for your organization. Contact your Anthropic account team. |
1557| `grant_required` | Anthropic hasn’t approved your organization to use customer-owned storage. [Troubleshooting for the Admin API](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage-manage#api-troubleshooting) says what to check before you contact your Anthropic account team. |
1558| `organization_not_eligible` | Anthropic doesn’t offer customer-owned storage to your organization. The `message` says why, or asks you to contact your Anthropic account team. |
1559| `unsupported_region` | Use `us-east5` or another region from **Connect storage**. |
1560| `storage_already_registered` | Your organization already registered this bucket. Find its External Storage with `GET /v1/organizations/external_storage`, and use that `id`. |
1561 
1562### Get the Terraform file
1563 
15641. On the [Data retention](https://platform.claude.com/settings/privacy) page in the Claude Console, select **Organization** at the top. Make sure that you’re in the Anthropic organization that registered your bucket.
15652. Click **Finish setup** beside the bucket you registered.
15663. Select **Terraform**, enter your project’s ID, and download `customer-bucket-setup-gcs.tf` to an empty folder.
15674. In that folder, run the following commands. The dialog shows the two `terraform` commands with your own values.
1568 
1569</Where>
12481570 
12491571```bash
12501572gcloud auth login
from line 1586
12641586 
12651587On your first apply, at `Enter a value:`, answer `yes` only if the plan shows `Plan: 42 to add, 0 to change, 0 to destroy.` If it doesn’t, answer `no`, download the file again over the old one, and run both `terraform` commands again. If the plan still differs, contact your Anthropic account team.
12661588 
1267Keep the whole folder and the apply command. The Claude Console doesn’t show the command again once the test passes.
1589Keep the whole folder and the apply command. The Claude Console doesn’t show the command again once <Where method="console" label="Claude Console">the test passes</Where> <Where method="api" label="Admin API">your bucket is activated</Where>.
1590 
1591<Where method="console" label="Claude Console">
12681592 
12691593After the apply, wait 10 minutes for the grants to take effect, then click **Test setup** and wait for **Ready**.
1594 
1595</Where>
1596 
1597<Where method="api" label="Admin API">
1598 
1599After the apply, wait 10 minutes for the grants to take effect, then [activate your bucket](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#gcs-api-activate).
1600 
1601</Where>
12701602 
12711603<Warning title="Leave what the file created as it is">
12721604 If you change what the file created, you can lose data or end Anthropic’s access to your bucket.
from line 1616
12841616* Remove `prevent_destroy` from the file.
12851617* Run `terraform taint` or `terraform apply -replace=...` on a grant.
12861618 
1619<Where method="api" label="Admin API">
1620 
1621### Activate your bucket
1622 
1623Ask Anthropic to check your setup. The request has no body:
1624 
1625<CodeGroup>
1626 ```bash cURL
1627 curl -X POST https://api.anthropic.com/v1/organizations/external_storage/estrg_01SDCCSbTxrXDpWc1phhtcfK/activate \
1628 -H "authorization: Bearer $ANTHROPIC_AUTH_TOKEN" \
1629 -H "anthropic-version: 2026-10-21" \
1630 -H "anthropic-beta: efs-2026-10-01"
1631 ```
1632 
1633 ```bash CLI
1634 ant beta:organization:external-storage activate \
1635 --external-storage-id estrg_01SDCCSbTxrXDpWc1phhtcfK
1636 ```
1637 
1638 ```python Python
1639 client = anthropic.Anthropic()
1640 
1641 storage = client.beta.organization.external_storage.activate(
1642 "estrg_01SDCCSbTxrXDpWc1phhtcfK"
1643 )
1644 
1645 print(f"status: {storage.status.type}")
1646 ```
1647 
1648 ```typescript TypeScript
1649 const client = new Anthropic();
1650 
1651 const storage = await client.beta.organization.externalStorage.activate(
1652 "estrg_01SDCCSbTxrXDpWc1phhtcfK"
1653 );
1654 
1655 console.log(`status: ${storage.status.type}`);
1656 ```
1657 
1658 ```csharp C#
1659 AnthropicClient client = new();
1660 
1661 var storage = await client.Beta.Organization.ExternalStorage.Activate(
1662 "estrg_01SDCCSbTxrXDpWc1phhtcfK"
1663 );
1664 
1665 Console.WriteLine($"status: {storage.Status.Type.Raw()}");
1666 ```
1667 
1668 ```go Go
1669 client := anthropic.NewClient()
1670 
1671 storage, err := client.Beta.Organization.ExternalStorage.Activate(
1672 context.Background(),
1673 "estrg_01SDCCSbTxrXDpWc1phhtcfK",
1674 anthropic.BetaOrganizationExternalStorageActivateParams{},
1675 )
1676 if err != nil {
1677 log.Fatal(err)
1678 }
1679 
1680 fmt.Printf("status: %s\n", storage.Status.Type)
1681 ```
1682 
1683 ```java Java
1684 AnthropicClient client = AnthropicOkHttpClient.fromEnv();
1685 
1686 var storage = client.beta().organization().externalStorage()
1687 .activate("estrg_01SDCCSbTxrXDpWc1phhtcfK");
1688 
1689 IO.println("status: " + storage.status().type());
1690 ```
1691 
1692 ```php PHP
1693 $client = new Client();
1694 
1695 $storage = $client->beta->organization->externalStorage->activate(
1696 externalStorageID: 'estrg_01SDCCSbTxrXDpWc1phhtcfK',
1697 );
1698 
1699 echo "status: {$storage->status->type}\n";
1700 ```
1701 
1702 ```ruby Ruby
1703 client = Anthropic::Client.new
1704 
1705 storage = client.beta.organization.external_storage.activate("estrg_01SDCCSbTxrXDpWc1phhtcfK")
1706 
1707 puts "status: #{storage.status.type}"
1708 ```
1709</CodeGroup>
1710 
1711If every check passes, the status becomes `available`. **Test setup** in the Claude Console sends the same request.
1712 
1713If a check fails, the request returns a 400 error with `error.details.error_code` set to `storage_verification_failed`. Do what each `message` in `error.details.failed_checks` says. If you apply again, wait 10 minutes. Then, send the request again. If a `message` says to create new External Storage, activate the new one instead. For common failures, see [If an apply or Test setup fails](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#if-an-apply-fails) and [Update a bucket from an earlier setup file](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#update-a-bucket). [Troubleshooting for the Admin API](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage-manage#api-troubleshooting) covers `grant_required` and other errors.
1714 
1715If Anthropic refuses your bucket’s region, project number, or bucket name, the request returns a 400 error with no `error.details.error_code`. Its `message` says what to do.
1716 
1717If this request, or the attach request in part 3, returns a 503 error with no `error.details.error_code`, Anthropic couldn’t run its check. Try again in a few minutes. If the error continues, contact your Anthropic account team.
1718 
1719</Where>
1720 
12871721### Supported regions
12881722 
1289You can use any region in the dialog’s **Google Cloud region** list. Anthropic recommends `us-east5` because Anthropic reads and writes your bucket from `us-east5`. A bucket in another region can affect your network transfer costs. Your bucket’s region determines where your cloud provider stores the bucket’s objects. It doesn’t change [where model inference runs](https://platform.claude.com/docs/en/manage-claude/data-residency#inference-geo) or where Anthropic processes your data.
1723You can use any region in the **Google Cloud region** list of the **Connect storage** dialog. Anthropic recommends `us-east5` because Anthropic reads and writes your bucket from `us-east5`. A bucket in another region can affect your network transfer costs. Your bucket’s region determines where your cloud provider stores the bucket’s objects. It doesn’t change [where model inference runs](https://platform.claude.com/docs/en/manage-claude/data-residency#inference-geo) or where Anthropic processes your data.
12901724 
12911725### If an apply or Test setup fails
12921726 
from line 1734
13001734| “Instance cannot be destroyed.” or “organization\_id differs from the value that Terraform’s state keeps” | Pass the first apply’s values. If its `organization_id` was wrong, change nothing and contact your Anthropic account team. |
13011735| A grant “is tainted, so must be replaced.” | Don’t apply the plan. If the grant is in Google Cloud, run `terraform untaint` with its address. If not, run `terraform state rm` with its address and apply again. |
13021736| The bucket’s name is already taken. | [Delete the storage destination](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#delete-a-storage-destination), then start again from [Create and test the bucket](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#gcs-create-the-bucket) with a new name and a new empty folder. The first apply’s key and roles stay in your project. |
1303| **Test setup** says that another organization has used this bucket. | [Delete the storage destination](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#delete-a-storage-destination), then start again from [Create and test the bucket](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#gcs-create-the-bucket) with a new bucket name and a new empty folder. The first apply’s bucket, key, and roles stay where they are. |
1737| **Test setup**, or the activate request, says that another organization has used this bucket. | [Delete the storage destination](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#delete-a-storage-destination), then start again from [Create and test the bucket](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#gcs-create-the-bucket) with a new bucket name and a new empty folder. The first apply’s bucket, key, and roles stay where they are. |
13041738 
13051739### Update a bucket from an earlier setup file
13061740 
1307If **Test setup** says that the bucket comes from an earlier setup template, update the bucket with the current file:
1741If **Test setup**, or the activate request, says that the bucket comes from an earlier setup template, update the bucket with the current file:
13081742 
130917431. Wherever you listed Anthropic’s accounts, add any that are new in [Allow the accounts](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#allow-the-accounts).
131017442. Click **Finish setup**, enter your project’s ID, and download the file over the old one in your folder.
131117453. Run `terraform init`, then your apply command with the same values. If the plan fails or would destroy or replace anything, answer `no` and contact your Anthropic account team.
13124. Wait 10 minutes, then click **Test setup**.
17464. Wait 10 minutes, then <Where method="console" label="Claude Console">click **Test setup**</Where> <Where method="api" label="Admin API">[activate your bucket](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#gcs-api-activate) again</Where>.
13131747 
13141748### Delete a storage destination
13151749 
1750<Where method="console" label="Claude Console">
1751 
13161752To delete a storage destination that shows **Needs setup** or **Ready**, select **Delete** in its row menu under **Storage destinations**. The bucket and Anthropic’s grants stay in your project.
13171753 
1754</Where>
1755 
1756<Where method="api" label="Admin API">
1757 
1758You can delete an External Storage only if no workspace has ever used it. Its status is then `pending_configuration` or `available`, and Anthropic deletes it at once. The delete leaves your bucket and Anthropic’s grants in your project.
1759 
1760<CodeGroup>
1761 ```bash cURL
1762 curl -X DELETE https://api.anthropic.com/v1/organizations/external_storage/estrg_01SDCCSbTxrXDpWc1phhtcfK \
1763 -H "authorization: Bearer $ANTHROPIC_AUTH_TOKEN" \
1764 -H "anthropic-version: 2026-10-21" \
1765 -H "anthropic-beta: efs-2026-10-01"
1766 ```
1767 
1768 ```bash CLI
1769 ant beta:organization:external-storage delete \
1770 --external-storage-id estrg_01SDCCSbTxrXDpWc1phhtcfK
1771 ```
1772 
1773 ```python Python
1774 client = anthropic.Anthropic()
1775 
1776 deleted = client.beta.organization.external_storage.delete(
1777 "estrg_01SDCCSbTxrXDpWc1phhtcfK"
1778 )
1779 
1780 print(f"id: {deleted.id}")
1781 ```
1782 
1783 ```typescript TypeScript
1784 const client = new Anthropic();
1785 
1786 const deleted = await client.beta.organization.externalStorage.delete(
1787 "estrg_01SDCCSbTxrXDpWc1phhtcfK"
1788 );
1789 
1790 console.log(`id: ${deleted.id}`);
1791 ```
1792 
1793 ```csharp C#
1794 AnthropicClient client = new();
1795 
1796 var deleted = await client.Beta.Organization.ExternalStorage.Delete(
1797 "estrg_01SDCCSbTxrXDpWc1phhtcfK"
1798 );
1799 
1800 Console.WriteLine($"id: {deleted.ID}");
1801 ```
1802 
1803 ```go Go
1804 client := anthropic.NewClient()
1805 
1806 deleted, err := client.Beta.Organization.ExternalStorage.Delete(
1807 context.Background(),
1808 "estrg_01SDCCSbTxrXDpWc1phhtcfK",
1809 anthropic.BetaOrganizationExternalStorageDeleteParams{},
1810 )
1811 if err != nil {
1812 log.Fatal(err)
1813 }
1814 
1815 fmt.Printf("id: %s\n", deleted.ID)
1816 ```
1817 
1818 ```java Java
1819 AnthropicClient client = AnthropicOkHttpClient.fromEnv();
1820 
1821 var deleted = client.beta().organization().externalStorage()
1822 .delete("estrg_01SDCCSbTxrXDpWc1phhtcfK");
1823 
1824 IO.println("id: " + deleted.id());
1825 ```
1826 
1827 ```php PHP
1828 $client = new Client();
1829 
1830 $deleted = $client->beta->organization->externalStorage->delete(
1831 externalStorageID: 'estrg_01SDCCSbTxrXDpWc1phhtcfK',
1832 );
1833 
1834 echo "id: {$deleted->id}\n";
1835 ```
1836 
1837 ```ruby Ruby
1838 client = Anthropic::Client.new
1839 
1840 deleted = client.beta.organization.external_storage.delete("estrg_01SDCCSbTxrXDpWc1phhtcfK")
1841 
1842 puts "id: #{deleted.id}"
1843 ```
1844</CodeGroup>
1845 
1846If the delete fails, check `error.details.error_code`:
1847 
1848| Error code | What it means and what to do |
1849| ----- | ----- |
1850| `external_storage_in_use` | A workspace has used your bucket. Its status stays `active` or `draining`, even after the last detach. Contact your Anthropic account team. |
1851| `external_storage_in_workspace_policy` | [Your organization’s policy](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-console#set-organization-defaults) lists your bucket. Remove the bucket from the policy in the Claude Console, then send the delete again. |
1852 
1853</Where>
1854 
13181855## 3. Use your Cloud Storage bucket in a workspace
13191856 
1857<Where method="console" label="Claude Console">
1858 
13201859Once your bucket passes its test, select it for each workspace that should use it. If your organization has a Legacy Zero Data Retention (ZDR) arrangement, select the **Enterprise Frontier Safeguards** card and your bucket as you create the workspace.
13211860 
1861</Where>
1862 
1863<Where method="api" label="Admin API">
1864 
1865Once your bucket is activated, attach it to each workspace that should use it. In an organization with a Legacy Zero Data Retention (ZDR) arrangement, don’t attach your bucket to a workspace that has data retention off. Create the workspace with your bucket already attached: send `POST /v1/organizations/workspaces` with the `inference_data_privacy` settings from [Attach your bucket to a workspace](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#gcs-api-attach). If data retention is off for the new workspace, nothing goes to your bucket until you turn it on. To turn it on, open the workspace’s [Data retention](https://platform.claude.com/settings/privacy) page in the Claude Console, click **Finish switching**, and then click **Accept**. The workspace starts to keep Sealed Safety Data at **Accept**, so allow time for the attach to take effect first. Send only test requests until 10 minutes after the first new object arrives. If the create request returns `grant_required`, don’t create the workspace without your bucket. Contact your Anthropic account team.
1866 
1867</Where>
1868 
13221869With EFS, Anthropic Human Review is always off, so reviewing [Safety Cases](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/flagged-cases) is your own team’s job.
13231870 
1871<Where method="console" label="Claude Console">
1872 
13241873Before you select the bucket, check that you’re in the Anthropic organization whose workspaces will use it. Once you save or create a workspace with the bucket selected, you can’t delete the storage destination. After that, no other Anthropic organization can use the bucket for customer-owned storage.
13251874 
1875</Where>
1876 
1877<Where method="api" label="Admin API">
1878 
1879Before you send the attach request, check that your key or token belongs to the organization whose workspaces will use your bucket. After the first successful attach request, you can’t delete the External Storage. From then on, no other Anthropic organization can use your bucket for customer-owned storage.
1880 
1881</Where>
1882 
13261883<Warning>
1327 Talk to your Anthropic account team before you select the bucket if:
1884 Talk to your Anthropic account team before you <Where method="console" label="Claude Console">select</Where> <Where method="api" label="Admin API">attach</Where> the bucket if:
13281885 
13291886 * **Your organization uses Legacy Zero Data Retention.** Sealed Safety Data [might go to Anthropic-managed storage at first](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#confirm-that-objects-arrive).
13301887 * **You want more than one bucket or many workspaces.** Anthropic limits the number of each. If you go over a limit, data doesn’t arrive in your bucket, and the Claude Console shows no error.
from line 1889
13321889 
13331890Attaching a [customer-managed key](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/customer-managed-keys#attach-a-customer-managed-key) to the workspace is permanent. Use a different key from the bucket’s own key.
13341891 
1335On the workspace’s [Data retention](https://platform.claude.com/settings/privacy) page, select the **Enterprise Frontier Safeguards** card, then select your bucket under **Sealed Safety Data storage**. Under **Safety Case and Transcript storage**, you select the bucket for Transcripts and Safety Cases in a form that your team can read. If the page shows that setting, you can select the same bucket. <Where cloud="gcp" label="Claude Models on Google Cloud (Anthropic managed)">Your save fails if you don’t select a bucket under that setting. If the page doesn’t show the setting, contact your Anthropic account team before you save.</Where> Then, save the workspace. If Anthropic refuses your bucket when you save, contact your Anthropic account team before you connect another bucket. <Where cloud="claude" label="Claude Platform">For the full steps, see [Set up Enterprise Frontier Safeguards on Claude Platform](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-console#turn-on-efs-for-a-workspace).</Where> <Where cloud="gcp" label="Claude Models on Google Cloud (Anthropic managed)">For the full steps, see [Set up Enterprise Frontier Safeguards on Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-claude-models-on-google-cloud-anthropic-managed#turn-on-efs-for-a-workspace).</Where>
1892<Where method="console" label="Claude Console">
1893 
1894On the workspace’s [Data retention](https://platform.claude.com/settings/privacy) page, select the **Enterprise Frontier Safeguards** card, then select your bucket under **Sealed Safety Data storage**. **Safety Case and Transcript storage** sets the bucket for Transcripts and Safety Cases, which aren’t sealed, so your team can read them. If the page shows that setting, you can select the same bucket. <Where cloud="gcp" label="Claude Models on Google Cloud (Anthropic managed)">Your save fails if you don’t select a bucket under that setting. If the page doesn’t show the setting, contact your Anthropic account team before you save.</Where> Then, save the workspace. If Anthropic refuses your bucket when you save, contact your Anthropic account team before you connect another bucket. <Where cloud="claude" label="Claude Platform">For the full steps, see [Set up Enterprise Frontier Safeguards on Claude Platform](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-console#turn-on-efs-for-a-workspace).</Where> <Where cloud="gcp" label="Claude Models on Google Cloud (Anthropic managed)">For the full steps, see [Set up Enterprise Frontier Safeguards on Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-claude-models-on-google-cloud-anthropic-managed#turn-on-efs-for-a-workspace).</Where>
1895 
1896</Where>
1897 
1898<Where method="api" label="Admin API">
1899 
1900### Attach your bucket to a workspace
1901 
1902To attach your bucket, update the workspace with `POST /v1/organizations/workspaces/{workspace_id}` and set `inference_data_privacy.safeguards_storage` to type `external` with your bucket’s `id`. This field is the Claude Console’s **Sealed Safety Data storage**. To find a workspace’s ID, [list your workspaces](https://platform.claude.com/docs/en/api/organization/workspaces/list).
1903 
1904<CodeGroup>
1905 ```bash cURL
1906 curl https://api.anthropic.com/v1/organizations/workspaces/wrkspc_01AbCdEfGhJkLmNpQrStUvWx \
1907 -H "authorization: Bearer $ANTHROPIC_AUTH_TOKEN" \
1908 -H "anthropic-version: 2026-10-21" \
1909 -H "anthropic-beta: efs-2026-10-01" \
1910 -H "content-type: application/json" \
1911 -d '{
1912 "inference_data_privacy": {
1913 "safeguards_storage": {
1914 "type": "external",
1915 "external_storage_id": "estrg_01SDCCSbTxrXDpWc1phhtcfK"
1916 },
1917 "human_review": {
1918 "type": "disabled"
1919 }
1920 }
1921 }'
1922 ```
1923 
1924 ```bash CLI
1925 ant beta:organization:workspaces update \
1926 --workspace-id wrkspc_01AbCdEfGhJkLmNpQrStUvWx \
1927 --beta efs-2026-10-01 <<YAML
1928 inference_data_privacy:
1929 safeguards_storage:
1930 type: external
1931 external_storage_id: estrg_01SDCCSbTxrXDpWc1phhtcfK
1932 human_review:
1933 type: disabled
1934 YAML
1935 ```
1936 
1937 ```python Python
1938 client = anthropic.Anthropic()
1939 
1940 workspace = client.beta.organization.workspaces.update(
1941 "wrkspc_01AbCdEfGhJkLmNpQrStUvWx",
1942 inference_data_privacy={
1943 "safeguards_storage": {
1944 "type": "external",
1945 "external_storage_id": "estrg_01SDCCSbTxrXDpWc1phhtcfK",
1946 },
1947 "human_review": {"type": "disabled"},
1948 },
1949 betas=["efs-2026-10-01"],
1950 )
1951 
1952 privacy = workspace.inference_data_privacy
1953 if privacy and privacy.safeguards_storage:
1954 print(f"safeguards_storage: {privacy.safeguards_storage.type}")
1955 ```
1956 
1957 ```typescript TypeScript
1958 const client = new Anthropic();
1959 
1960 const workspace = await client.beta.organization.workspaces.update(
1961 "wrkspc_01AbCdEfGhJkLmNpQrStUvWx",
1962 {
1963 inference_data_privacy: {
1964 safeguards_storage: {
1965 type: "external",
1966 external_storage_id: "estrg_01SDCCSbTxrXDpWc1phhtcfK"
1967 },
1968 human_review: { type: "disabled" }
1969 },
1970 betas: ["efs-2026-10-01"]
1971 }
1972 );
1973 
1974 const type = workspace.inference_data_privacy?.safeguards_storage?.type;
1975 console.log(`safeguards_storage: ${type}`);
1976 ```
1977 
1978 ```csharp C#
1979 using Anthropic.Models.Beta.Organization.Workspaces;
1980 
1981 AnthropicClient client = new();
1982 
1983 var workspace = await client.Beta.Organization.Workspaces.Update(
1984 "wrkspc_01AbCdEfGhJkLmNpQrStUvWx",
1985 new()
1986 {
1987 InferenceDataPrivacy = new()
1988 {
1989 SafeguardsStorage = new BetaExternalStorageMemberParam
1990 {
1991 ExternalStorageID = "estrg_01SDCCSbTxrXDpWc1phhtcfK",
1992 },
1993 HumanReview = new() { Type = BetaAnthropicHumanReviewParamType.Disabled },
1994 },
1995 Betas = ["efs-2026-10-01"],
1996 }
1997 );
1998 
1999 var type = workspace.InferenceDataPrivacy?.SafeguardsStorage?.Type.Raw();
2000 Console.WriteLine($"safeguards_storage: {type}");
2001 ```
2002 
2003 ```go Go
2004 client := anthropic.NewClient()
2005 
2006 workspace, err := client.Beta.Organization.Workspaces.Update(
2007 context.Background(),
2008 "wrkspc_01AbCdEfGhJkLmNpQrStUvWx",
2009 anthropic.BetaOrganizationWorkspaceUpdateParams{
2010 InferenceDataPrivacy: anthropic.BetaInferenceDataPrivacyUpdateParam{
2011 SafeguardsStorage: anthropic.BetaStorageMemberParamOfExternal("estrg_01SDCCSbTxrXDpWc1phhtcfK"),
2012 HumanReview: anthropic.BetaAnthropicHumanReviewParam{
2013 Type: anthropic.BetaAnthropicHumanReviewParamTypeDisabled,
2014 },
2015 },
2016 Betas: []anthropic.AnthropicBeta{"efs-2026-10-01"},
2017 },
2018 )
2019 if err != nil {
2020 log.Fatal(err)
2021 }
2022 
2023 fmt.Printf("safeguards_storage: %s\n", workspace.InferenceDataPrivacy.SafeguardsStorage.Type)
2024 ```
2025 
2026 ```java Java
2027 import com.anthropic.models.beta.organization.workspaces.BetaAnthropicHumanReviewParam;
2028 import com.anthropic.models.beta.organization.workspaces.BetaInferenceDataPrivacyUpdateParam;
2029 import com.anthropic.models.beta.organization.workspaces.WorkspaceUpdateParams;
2030 
2031 void main() {
2032 AnthropicClient client = AnthropicOkHttpClient.fromEnv();
2033 
2034 var params = WorkspaceUpdateParams.builder()
2035 .inferenceDataPrivacy(BetaInferenceDataPrivacyUpdateParam.builder()
2036 .externalSafeguardsStorage("estrg_01SDCCSbTxrXDpWc1phhtcfK")
2037 .humanReview(BetaAnthropicHumanReviewParam.builder()
2038 .type(BetaAnthropicHumanReviewParam.Type.DISABLED)
2039 .build())
2040 .build())
2041 .addBeta("efs-2026-10-01")
2042 .build();
2043 var workspace = client.beta().organization().workspaces()
2044 .update("wrkspc_01AbCdEfGhJkLmNpQrStUvWx", params);
2045 
2046 IO.println("safeguards_storage: " + workspace.inferenceDataPrivacy()
2047 .flatMap(privacy -> privacy.safeguardsStorage())
2048 .map(storage -> storage.type().asString())
2049 .orElse(null));
2050 }
2051 ```
2052 
2053 ```php PHP
2054 $client = new Client();
2055 
2056 $workspace = $client->beta->organization->workspaces->update(
2057 workspaceID: 'wrkspc_01AbCdEfGhJkLmNpQrStUvWx',
2058 inferenceDataPrivacy: [
2059 'safeguardsStorage' => [
2060 'type' => 'external',
2061 'externalStorageID' => 'estrg_01SDCCSbTxrXDpWc1phhtcfK',
2062 ],
2063 'humanReview' => ['type' => 'disabled'],
2064 ],
2065 betas: ['efs-2026-10-01'],
2066 );
2067 
2068 echo "safeguards_storage: {$workspace->inferenceDataPrivacy?->safeguardsStorage?->type}\n";
2069 ```
2070 
2071 ```ruby Ruby
2072 client = Anthropic::Client.new
2073 
2074 workspace = client.beta.organization.workspaces.update(
2075 "wrkspc_01AbCdEfGhJkLmNpQrStUvWx",
2076 inference_data_privacy: {
2077 safeguards_storage: {
2078 type: :external,
2079 external_storage_id: "estrg_01SDCCSbTxrXDpWc1phhtcfK"
2080 },
2081 human_review: {
2082 type: :disabled
2083 }
2084 },
2085 betas: ["efs-2026-10-01"]
2086 )
2087 
2088 puts "safeguards_storage: #{workspace.inference_data_privacy&.safeguards_storage&.type}"
2089 ```
2090</CodeGroup>
2091 
2092Your bucket’s status becomes `active`. The example also sets `inference_data_privacy.human_review` to type `disabled`, because an attach alone doesn’t turn [Anthropic Human Review](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/human-review-and-access-transparency#turn-off-anthropic-human-review) off.
2093 
2094To send Transcripts and Safety Cases to your bucket, also set `inference_data_privacy.transcripts_storage` to type `external` with the same `id` in the same request. This field is the Claude Console’s **Safety Case and Transcript storage**.
2095 
2096An attach doesn’t take effect right away, so [confirm that objects arrive](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#confirm-that-objects-arrive) before you send traffic that you need stored in your bucket.
2097 
2098If the request fails, check `error.details.error_code`. Unless the `message` lists changes that were saved, a request that fails with one of these codes changes nothing:
2099 
2100| Error code | What to do |
2101| ----- | ----- |
2102| `storage_verification_failed` | Do what `error.details.failed_checks` says. Contact your Anthropic account team before you register another bucket. |
2103| `human_review_on_with_external_storage` | Set `human_review` to type `disabled` in the same request. |
2104| `approval_required` | Get Anthropic’s approval to turn Anthropic Human Review off. See [Set up Enterprise Frontier Safeguards on Claude Platform](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-console#get-access). |
2105| `workspace_policy_violation` | Your organization’s policy refuses the request, for example because it requires Anthropic Human Review. [Change the policy](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-console#set-organization-defaults) first. |
2106| `storage_not_attachable` | Your bucket isn’t activated, or `external_storage_id` doesn’t name External Storage in your organization. [Activate your bucket](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#gcs-api-activate) or correct the ID, then send the request again. If the `message` gives another reason, contact your Anthropic account team. |
2107| `storage_profile_mismatch` | Your bucket and the workspace must have the same user profile, or both have none. Do what the `message` says. |
2108 
2109[Troubleshooting for the Admin API](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage-manage#api-troubleshooting) covers `grant_required` and errors on `transcripts_storage`.
2110 
2111</Where>
2112 
2113<Where method="console" label="Claude Console">
13362114 
13372115Saving turns Anthropic Human Review off, which can take up to 2 hours. To check that your save worked, make sure that **Case review by** reads **My organization** in the workspace’s side panel on the [Workspaces](https://platform.claude.com/settings/workspaces) page. If it doesn’t read **My organization**, open the workspace on the [Data retention](https://platform.claude.com/settings/privacy) page and click **Save** again, even if you’ve changed nothing. If you can’t, or **Case review by** still doesn’t read **My organization**, contact your Anthropic account team before you send real traffic.
13382116 
2117</Where>
2118 
2119<Where method="api" label="Admin API">
2120 
2121Turning off Anthropic Human Review can take up to 2 hours. To check that it’s off, make sure that **Case review by** reads **My organization** in the workspace’s side panel on the [Workspaces](https://platform.claude.com/settings/workspaces) page. If it doesn’t, contact your Anthropic account team before you send real traffic.
2122 
2123</Where>
2124 
13392125In your bucket, the files that [Safety Case files](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/safety-case-files) describes go in the folder named after your Anthropic organization ID, such as `<organization ID>/review-cases/<id>.json` and `<organization ID>/review-responses/<case_id>.json`.
13402126 
13412127To review Safety Cases in your bucket, your team needs to list and read the files under `transcripts/`, `review-cases/`, `review-summaries/`, `review-notices/`, and `review-responses/` in your organization’s folder. To respond, your team also needs to create files under `review-responses/`. The setup file doesn’t give your team this access, so grant it yourself in Google Cloud IAM. Limit read access to these folders, and limit create access to `review-responses/`.
from line 2130
13442130 
13452131Before the workspace carries traffic that you need stored in your bucket, confirm that new objects arrive. Then, wait 10 more minutes, because Anthropic’s servers don’t all pick up the change at once. Until then, send only test requests, because the workspace’s Sealed Safety Data might go to Anthropic-managed storage. If another workspace already sends data to this bucket, new objects don’t show that this change took effect, so ask your Anthropic account team before you send real traffic.
13462132 
1347Send test requests with no sensitive data to that workspace. <Where cloud="claude" label="Claude Platform">Use a credential for that workspace.</Where> Then, list `slab/` with your apply command’s `bucket_name` and `organization_id`:
2133Send test requests with no sensitive data to that workspace. <Where cloud="claude" label="Claude Platform">Use a credential for that workspace. If Messages API requests to a new workspace return a 503 error with the code `storage_not_ready`, try again in a minute.</Where> Then, list `slab/` with your apply command’s `bucket_name` and `organization_id`:
13482134 
13492135```bash
13502136gcloud storage ls gs://acme-claude-retention/8a3f2c1e-5b7d-4e9a-a1c6-2f4e8d0b7c35/safeguards-data/slab/
from line 2138
13522138 
13532139The **Active** status can show before objects arrive, so don’t rely on it. If the command still stops with “One or more URLs matched no objects.”, contact your Anthropic account team. Objects under `slab/` show that Sealed Safety Data arrives. They don’t show that Transcripts or Safety Cases arrive.
13542140 
2141<Where method="api" label="Admin API">
2142 
2143### Check your bucket’s status
2144 
2145Get your bucket’s External Storage to see its status:
2146 
2147<CodeGroup>
2148 ```bash cURL
2149 curl https://api.anthropic.com/v1/organizations/external_storage/estrg_01SDCCSbTxrXDpWc1phhtcfK \
2150 -H "authorization: Bearer $ANTHROPIC_AUTH_TOKEN" \
2151 -H "anthropic-version: 2026-10-21" \
2152 -H "anthropic-beta: efs-2026-10-01"
2153 ```
2154 
2155 ```bash CLI
2156 ant beta:organization:external-storage retrieve \
2157 --external-storage-id estrg_01SDCCSbTxrXDpWc1phhtcfK
2158 ```
2159 
2160 ```python Python
2161 client = anthropic.Anthropic()
2162 
2163 storage = client.beta.organization.external_storage.retrieve(
2164 "estrg_01SDCCSbTxrXDpWc1phhtcfK"
2165 )
2166 
2167 print(f"status: {storage.status.type}")
2168 ```
2169 
2170 ```typescript TypeScript
2171 const client = new Anthropic();
2172 
2173 const storage = await client.beta.organization.externalStorage.retrieve(
2174 "estrg_01SDCCSbTxrXDpWc1phhtcfK"
2175 );
2176 
2177 console.log(`status: ${storage.status.type}`);
2178 ```
2179 
2180 ```csharp C#
2181 AnthropicClient client = new();
2182 
2183 var storage = await client.Beta.Organization.ExternalStorage.Retrieve(
2184 "estrg_01SDCCSbTxrXDpWc1phhtcfK"
2185 );
2186 
2187 Console.WriteLine($"status: {storage.Status.Type.Raw()}");
2188 ```
2189 
2190 ```go Go
2191 client := anthropic.NewClient()
2192 
2193 storage, err := client.Beta.Organization.ExternalStorage.Get(
2194 context.Background(),
2195 "estrg_01SDCCSbTxrXDpWc1phhtcfK",
2196 anthropic.BetaOrganizationExternalStorageGetParams{},
2197 )
2198 if err != nil {
2199 log.Fatal(err)
2200 }
2201 
2202 fmt.Printf("status: %s\n", storage.Status.Type)
2203 ```
2204 
2205 ```java Java
2206 AnthropicClient client = AnthropicOkHttpClient.fromEnv();
2207 
2208 var storage = client.beta().organization().externalStorage()
2209 .retrieve("estrg_01SDCCSbTxrXDpWc1phhtcfK");
2210 
2211 IO.println("status: " + storage.status().type());
2212 ```
2213 
2214 ```php PHP
2215 $client = new Client();
2216 
2217 $storage = $client->beta->organization->externalStorage->retrieve(
2218 externalStorageID: 'estrg_01SDCCSbTxrXDpWc1phhtcfK',
2219 );
2220 
2221 echo "status: {$storage->status->type}\n";
2222 ```
2223 
2224 ```ruby Ruby
2225 client = Anthropic::Client.new
2226 
2227 storage = client.beta.organization.external_storage.retrieve("estrg_01SDCCSbTxrXDpWc1phhtcfK")
2228 
2229 puts "status: #{storage.status.type}"
2230 ```
2231</CodeGroup>
2232 
2233To list all your buckets, call `GET /v1/organizations/external_storage`. Results come newest first, 20 per page, or up to 1,000 per page if you pass `?limit=`. To get the next page, pass the response’s `next_page` as `?page=`.
2234 
2235Each value of `status.type` matches a status that the Claude Console shows under **Storage destinations**:
2236 
2237| API status | Console status | Meaning |
2238| ----- | ----- | ----- |
2239| `pending_configuration` | Needs setup | Registered, not yet activated. |
2240| `available` | Ready | Activated, and no workspace uses it. |
2241| `active` | Active | At least one workspace is set to use it. |
2242| `draining` | Draining | No workspace uses it now, but at least one did before. Keep your bucket and Anthropic’s access to it, as [Stop using your bucket](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#gcs-stop-using-your-bucket) describes. |
2243 
2244For `available` and `active`, `status.healthy` says whether your bucket passed its latest check, and `false` shows as **Failed last check** in the Claude Console. `healthy` can stay `true` after your bucket stops working, so watch for new objects under `slab/`, as the next section says.
2245 
2246</Where>
2247 
13552248### If your bucket stops working
13562249 
13572250To avoid losing data, restore a bucket that stops working as soon as you can. If a write to your bucket fails, Anthropic retries it. Restore your bucket within about 46 hours of the request and keep each workspace on it, or you can lose that data. Anthropic stops retrying by about 72 hours after the request, then deletes the data. Nobody can recover that data, and it doesn’t go to Anthropic-managed storage.
from line 2253
13602253 
13612254To restore your bucket, do what fits the change:
13622255 
1363* **Grants or settings:** Apply again with the same values. The plan should destroy nothing.
2256* **Grants or settings:** Apply again with the same values. Check that the plan destroys nothing.
13642257* **A deleted custom role:** Run `gcloud iam roles undelete` within 7 days. An apply doesn’t restore it.
13652258* **A disabled key version:** Run `gcloud kms keys versions enable`, after `restore` if it’s scheduled for destruction.
13662259* **Anything else:** Contact your Anthropic account team.
from line 2268
13752268 Without the file, Terraform plans to destroy everything still in the state, and `prevent_destroy` no longer stops it.
13762269</Warning>
13772270 
2271<Where method="console" label="Claude Console">
2272 
137822731. Take every workspace off the bucket. On each workspace’s [Data retention](https://platform.claude.com/settings/privacy) page, select another bucket under **Sealed Safety Data storage**. Or, select the **Anthropic managed** card or, if listed, the **Legacy ZDR** card. Talk to your Anthropic account team before you select another bucket. If **Safety Case and Transcript storage** still shows this bucket, change that setting too. Then, save.
13792274 
13802275 * **If you can’t select the Anthropic managed card,** first change your organization’s [policy for new workspaces](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-console#set-organization-defaults).
13812276 * Either card takes the workspace off EFS, and the **Anthropic managed** card can [turn Anthropic Human Review back on](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/human-review-and-access-transparency#turn-off-anthropic-human-review). To use EFS again after **Legacy ZDR**, create a new workspace on the **Enterprise Frontier Safeguards** card.
13822277 
2278</Where>
2279 
2280<Where method="api" label="Admin API">
2281 
22821. Detach your bucket from each workspace.
2283 
2284 If [your organization’s policy](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-console#set-organization-defaults) requires customer-owned storage or requires Anthropic Human Review to be off, change the policy first. Otherwise, the detach can return `workspace_policy_violation`.
2285 
2286 Set each storage field that names your bucket to type `internal`: `safeguards_storage`, `transcripts_storage`, or both in one request. The example sets only `safeguards_storage`, so if `transcripts_storage` also names your bucket, add it to the request. With `safeguards_storage` on `internal`, the workspace uses Anthropic-managed storage and leaves Enterprise Frontier Safeguards. With both fields on `internal`, your bucket receives no more Transcripts or Safety Case files from that workspace.
2287 
2288 The example also sets `human_review` to type `enabled`, because Anthropic can refuse a detach that leaves [Anthropic Human Review](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/human-review-and-access-transparency#turn-off-anthropic-human-review) off:
2289 
2290 <CodeGroup>
2291 ```bash cURL
2292 curl https://api.anthropic.com/v1/organizations/workspaces/wrkspc_01AbCdEfGhJkLmNpQrStUvWx \
2293 -H "authorization: Bearer $ANTHROPIC_AUTH_TOKEN" \
2294 -H "anthropic-version: 2026-10-21" \
2295 -H "anthropic-beta: efs-2026-10-01" \
2296 -H "content-type: application/json" \
2297 -d '{
2298 "inference_data_privacy": {
2299 "safeguards_storage": {
2300 "type": "internal"
2301 },
2302 "human_review": {
2303 "type": "enabled"
2304 }
2305 }
2306 }'
2307 ```
2308 
2309 ```bash CLI
2310 ant beta:organization:workspaces update \
2311 --workspace-id wrkspc_01AbCdEfGhJkLmNpQrStUvWx \
2312 --beta efs-2026-10-01 <<YAML
2313 inference_data_privacy:
2314 safeguards_storage:
2315 type: internal
2316 human_review:
2317 type: enabled
2318 YAML
2319 ```
2320 
2321 ```python Python
2322 client = anthropic.Anthropic()
2323 
2324 workspace = client.beta.organization.workspaces.update(
2325 "wrkspc_01AbCdEfGhJkLmNpQrStUvWx",
2326 inference_data_privacy={
2327 "safeguards_storage": {"type": "internal"},
2328 "human_review": {"type": "enabled"},
2329 },
2330 betas=["efs-2026-10-01"],
2331 )
2332 
2333 privacy = workspace.inference_data_privacy
2334 if privacy and privacy.safeguards_storage:
2335 print(f"safeguards_storage: {privacy.safeguards_storage.type}")
2336 ```
2337 
2338 ```typescript TypeScript
2339 const client = new Anthropic();
2340 
2341 const workspace = await client.beta.organization.workspaces.update(
2342 "wrkspc_01AbCdEfGhJkLmNpQrStUvWx",
2343 {
2344 inference_data_privacy: {
2345 safeguards_storage: { type: "internal" },
2346 human_review: { type: "enabled" }
2347 },
2348 betas: ["efs-2026-10-01"]
2349 }
2350 );
2351 
2352 const type = workspace.inference_data_privacy?.safeguards_storage?.type;
2353 console.log(`safeguards_storage: ${type}`);
2354 ```
2355 
2356 ```csharp C#
2357 using Anthropic.Models.Beta.Organization.Workspaces;
2358 
2359 AnthropicClient client = new();
2360 
2361 var workspace = await client.Beta.Organization.Workspaces.Update(
2362 "wrkspc_01AbCdEfGhJkLmNpQrStUvWx",
2363 new()
2364 {
2365 InferenceDataPrivacy = new()
2366 {
2367 SafeguardsStorage = new BetaInternalStorageParam(),
2368 HumanReview = new() { Type = BetaAnthropicHumanReviewParamType.Enabled },
2369 },
2370 Betas = ["efs-2026-10-01"],
2371 }
2372 );
2373 
2374 var type = workspace.InferenceDataPrivacy?.SafeguardsStorage?.Type.Raw();
2375 Console.WriteLine($"safeguards_storage: {type}");
2376 ```
2377 
2378 ```go Go
2379 client := anthropic.NewClient()
2380 
2381 internal := anthropic.NewBetaInternalStorageParam()
2382 workspace, err := client.Beta.Organization.Workspaces.Update(
2383 context.Background(),
2384 "wrkspc_01AbCdEfGhJkLmNpQrStUvWx",
2385 anthropic.BetaOrganizationWorkspaceUpdateParams{
2386 InferenceDataPrivacy: anthropic.BetaInferenceDataPrivacyUpdateParam{
2387 SafeguardsStorage: anthropic.BetaStorageMemberParamUnion{OfInternal: &internal},
2388 HumanReview: anthropic.BetaAnthropicHumanReviewParam{
2389 Type: anthropic.BetaAnthropicHumanReviewParamTypeEnabled,
2390 },
2391 },
2392 Betas: []anthropic.AnthropicBeta{"efs-2026-10-01"},
2393 },
2394 )
2395 if err != nil {
2396 log.Fatal(err)
2397 }
2398 
2399 fmt.Printf("safeguards_storage: %s\n", workspace.InferenceDataPrivacy.SafeguardsStorage.Type)
2400 ```
2401 
2402 ```java Java
2403 import com.anthropic.models.beta.organization.workspaces.BetaAnthropicHumanReviewParam;
2404 import com.anthropic.models.beta.organization.workspaces.BetaInferenceDataPrivacyUpdateParam;
2405 import com.anthropic.models.beta.organization.workspaces.BetaInternalStorageParam;
2406 import com.anthropic.models.beta.organization.workspaces.WorkspaceUpdateParams;
2407 
2408 void main() {
2409 AnthropicClient client = AnthropicOkHttpClient.fromEnv();
2410 
2411 var params = WorkspaceUpdateParams.builder()
2412 .inferenceDataPrivacy(BetaInferenceDataPrivacyUpdateParam.builder()
2413 .safeguardsStorage(BetaInternalStorageParam.builder().build())
2414 .humanReview(BetaAnthropicHumanReviewParam.builder()
2415 .type(BetaAnthropicHumanReviewParam.Type.ENABLED)
2416 .build())
2417 .build())
2418 .addBeta("efs-2026-10-01")
2419 .build();
2420 var workspace = client.beta().organization().workspaces()
2421 .update("wrkspc_01AbCdEfGhJkLmNpQrStUvWx", params);
2422 
2423 IO.println("safeguards_storage: " + workspace.inferenceDataPrivacy()
2424 .flatMap(privacy -> privacy.safeguardsStorage())
2425 .map(storage -> storage.type().asString())
2426 .orElse(null));
2427 }
2428 ```
2429 
2430 ```php PHP
2431 $client = new Client();
2432 
2433 $workspace = $client->beta->organization->workspaces->update(
2434 workspaceID: 'wrkspc_01AbCdEfGhJkLmNpQrStUvWx',
2435 inferenceDataPrivacy: [
2436 'safeguardsStorage' => ['type' => 'internal'],
2437 'humanReview' => ['type' => 'enabled'],
2438 ],
2439 betas: ['efs-2026-10-01'],
2440 );
2441 
2442 echo "safeguards_storage: {$workspace->inferenceDataPrivacy?->safeguardsStorage?->type}\n";
2443 ```
2444 
2445 ```ruby Ruby
2446 client = Anthropic::Client.new
2447 
2448 workspace = client.beta.organization.workspaces.update(
2449 "wrkspc_01AbCdEfGhJkLmNpQrStUvWx",
2450 inference_data_privacy: {
2451 safeguards_storage: {
2452 type: :internal
2453 },
2454 human_review: {
2455 type: :enabled
2456 }
2457 },
2458 betas: ["efs-2026-10-01"]
2459 )
2460 
2461 puts "safeguards_storage: #{workspace.inference_data_privacy&.safeguards_storage&.type}"
2462 ```
2463 </CodeGroup>
2464 
2465 After the last detach, your bucket’s status becomes `draining`.
2466 
2467</Where>
2468 
138324692. Send test requests with no sensitive data from each workspace and run the [list command](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#confirm-that-objects-arrive) with `--recursive --long` until no new objects arrive. The **Draining** status can show early and has no end date, so don’t rely on it.
1384 
138524703. Stop any pipeline from applying the file, because a `terraform apply` creates Anthropic’s grants again. Then, talk to your Anthropic account team and wait for their answer. Anthropic still needs its access after it stops writing, to read what’s stored and to delete what has expired. Once the team confirms that Anthropic has stopped using the bucket, remove only Anthropic’s grants with your last apply’s values:
13862471 
13872472```bash
13882473 

manage-claude/enterprise-frontier-safeguards/external-storage-manage Changed · +32 / -2 lines

from line 185
185185 
186186<Where bucket="gcs" label="Google Cloud Storage">
187187 
188See [If your Cloud Storage bucket stops working](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#gcs-if-your-bucket-stops-working).
188See [If your Cloud Storage bucket stops working](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#gcs-if-your-bucket-stops-working).<Where method="api" label="Admin API"> To get your bucket’s status, see [Check your bucket’s status](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#gcs-api-check).</Where>
189189 
190190</Where>
191191 
from line 691
691691 </Accordion>
692692 
693693 <Accordion title="The activate request returns failed checks">
694 <Where bucket="s3" label="Amazon S3">
695 
694696 If a check fails, the request returns a 400 error with `error.details.error_code` set to `storage_verification_failed`. `error.details.failed_checks` lists each problem as an object with `check`, `role`, and `message`. Fix each problem that `failed_checks` lists and call activate again. The `already_registered` check has its own fix, later in this item.
695697 
696698 If the first `message` starts with “Anthropic could not assume the verify role”, check the following in order:
from line 709
707709 
708710 [The attach request](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#api-attach) can fail with the `already_registered` check too. If the check fails for `safeguards_storage`, the fix is the same. If the check fails for `transcripts_storage`, contact your Anthropic account team. If your roles have fixed names, an `already_registered` failure at attach can also mean that another organization has used this AWS account.
709711 
712 If Anthropic refuses your bucket’s AWS account ID, bucket name, or region, the activate request returns a 400 error with no `error.details.error_code`. Its `message` says what to do.
713 
710714 If the activate request or [the attach request](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#api-attach) returns a 503 error with no `error.details.error_code`, Anthropic couldn’t run its check, so try again in a few minutes. If it keeps happening, tell your Anthropic account team.
715 
716 </Where>
717 
718 <Where bucket="gcs" label="Google Cloud Storage">
719 
720 If a check fails, the request returns a 400 error with `error.details.error_code` set to `storage_verification_failed`. Do what each `message` in `error.details.failed_checks` says. If you apply again, wait 10 minutes. Then, send the request again. If a `message` says to create new External Storage, activate the new one instead. For common failures, see [If an apply or Test setup fails](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#if-an-apply-fails) and [Update a bucket from an earlier setup file](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#update-a-bucket).
721 
722 If Anthropic refuses your bucket’s region, project number, or bucket name, the request returns a 400 error with no `error.details.error_code`. Its `message` says what to do.
723 
724 If the request returns a 503 error with no `error.details.error_code`, Anthropic couldn’t run its check, so try again in a few minutes. If it keeps happening, tell your Anthropic account team.
725 
726 </Where>
711727 </Accordion>
712728 
713729 <Accordion title="The attach request returns an error about Anthropic’s approval">
from line 742
726742 <Accordion title="The attach request refuses your bucket in transcripts_storage">
727743 The request returns a 400 error. A failed check changes nothing, so a `safeguards_storage` in the same request isn’t attached either. What to do depends on the error:
728744 
729 * If `error.details.error_code` is `storage_verification_failed` and `error.details.failed_checks` holds one object whose `check` is `transcripts_support`, sending the request again doesn’t help. The object’s `message` says why. [Troubleshooting for customer-owned storage](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#troubleshooting) says what to do.
745 * If `error.details.error_code` is `storage_verification_failed` and `error.details.failed_checks` holds one object whose `check` is `transcripts_support`, <Where bucket="s3" label="Amazon S3">sending the request again doesn’t help. The object’s `message` says why. [Troubleshooting for customer-owned storage](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#troubleshooting) says what to do.</Where> <Where bucket="gcs" label="Google Cloud Storage">do what the object’s `message` says, then send the request again.</Where>
730746 * If `check` is `already_registered`, or the error says that storage can’t be attached for transcripts yet, contact your Anthropic account team.
731747 * For any other check, fix what its `message` says and send the request again.
732748 
from line 750
734750 </Accordion>
735751 
736752 <Accordion title="Your bucket’s default encryption key changed">
753 <Where bucket="s3" label="Amazon S3">
754 
737755 If your bucket’s default encryption key changed after you activated the bucket and no workspace uses the bucket yet, Anthropic refuses the attach, because it checks the bucket again at that point. To use another key with IAM roles you created with your own tooling, follow these steps:
738756 
739757 1. Delete this External Storage.
from line 761
743761 5. Register your bucket again and activate it.
744762 
745763 Anthropic’s CloudFormation template and Terraform file set the roles up for one key and have no supported way to use another. For a setup with fixed role names, such as `anthropic-efs-ingest`, don’t register the same bucket again. Create a new bucket with the file from [Get your setup file](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage?method=api#get-the-setup-file).
764 
765 </Where>
766 
767 <Where bucket="gcs" label="Google Cloud Storage">
768 
769 The setup file sets your bucket’s default key, so don’t change it. Each time you attach your bucket to a workspace, Anthropic checks that the default key is the one the bucket had when you activated it. If it isn’t, the attach request returns a 400 error with `error.details.error_code` set to `storage_verification_failed` and an `encryption` check in `error.details.failed_checks`.
770 
771 To set the key back, apply again from the same folder with the same values. Check that the plan destroys nothing. Then, send the attach request again. Objects written under the other key stay encrypted with it, so keep that key enabled.
772 
773 If you can’t set the key back or you want to use another key, contact your Anthropic account team. Do this before you register a new bucket with a new name and apply a new setup file from a new empty folder.
774 
775 </Where>
746776 </Accordion>
747777 
748778 <Accordion title="Only some of a workspace request’s changes were saved">

managed-agents/sessions Changed · +3 / -3 lines

from line 170
170170 ```go Go
171171 pinnedSession, err := client.Beta.Sessions.New(ctx, anthropic.BetaSessionNewParams{
172172 Agent: anthropic.BetaSessionNewParamsAgentUnion{
173 OfBetaManagedAgentsAgents: &anthropic.BetaManagedAgentsAgentParams{
173 OfBetaManagedAgentsAgent: &anthropic.BetaManagedAgentsAgentParams{
174174 ID: agent.ID,
175175 Version: anthropic.Int(1),
176176 },
from line 554
554554 ```go Go
555555 overrideSession, err := client.Beta.Sessions.New(ctx, anthropic.BetaSessionNewParams{
556556 Agent: anthropic.BetaSessionNewParamsAgentUnion{
557 OfBetaManagedAgentsAgentWithOverridess: &anthropic.BetaManagedAgentsAgentWithOverridesParams{
557 OfBetaManagedAgentsAgentWithOverrides: &anthropic.BetaManagedAgentsAgentWithOverridesParams{
558558 ID: agent.ID,
559559 Model: anthropic.BetaManagedAgentsModelConfigParams{
560560 ID: anthropic.BetaManagedAgentsModelClaudeSonnet5_5,
from line 709
709709 ```go Go
710710 session, err := client.Beta.Sessions.New(ctx, anthropic.BetaSessionNewParams{
711711 Agent: anthropic.BetaSessionNewParamsAgentUnion{
712 OfBetaManagedAgentsAgentWithOverridess: &anthropic.BetaManagedAgentsAgentWithOverridesParams{
712 OfBetaManagedAgentsAgentWithOverrides: &anthropic.BetaManagedAgentsAgentWithOverridesParams{
713713 ID: agent.ID,
714714 // Replaces the agent's `model` in full: restate `id`, add `inference_geo` to pin.
715715 Model: anthropic.BetaManagedAgentsModelConfigParams{

manage-claude/enterprise-frontier-safeguards/flagged-cases Changed · +1 / -1 lines

from line 96
9696Write a [response file](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/safety-case-files#response-file) to the bucket that holds your Safety Cases. Its path depends on your storage provider:
9797 
9898* **Amazon S3:** `review-responses/<case_id>.json`
99* **Google Cloud Storage bucket connected in the Claude Console:** `<organization ID>/review-responses/<case_id>.json`
99* **Google Cloud Storage bucket set up with the Terraform file from the Claude Console:** `<organization ID>/review-responses/<case_id>.json`
100100 
101101Check the file against [Rules for a valid file](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/safety-case-files#response-file-rules), because only a valid file counts.
102102 

manage-claude/enterprise-frontier-safeguards/safety-case-files Changed · +1 / -1 lines

from line 21
2121Some details depend on your storage provider:
2222 
2323* **Amazon S3:** The paths, permissions, and expiry settings on this page are for Amazon S3.
24* **Google Cloud Storage:** In a bucket connected in the Claude Console, each path starts with a folder named after your Anthropic organization ID (see [Use your Cloud Storage bucket in a workspace](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#gcs-use-your-bucket-in-a-workspace)).
24* **Google Cloud Storage:** In a bucket set up with the Terraform file from the Claude Console, each path starts with a folder named after your Anthropic organization ID (see [Use your Cloud Storage bucket in a workspace](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage#gcs-use-your-bucket-in-a-workspace)).
2525 
2626## What’s in the bucket
2727 

manage-claude/organization-webhooks Changed · +1 / -1 lines

from line 200
200200 
201201### Respond to a storage event
202202 
203After you return `2xx` for either event, [get the bucket](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage-manage?method=api#api-check) with `GET /v1/organizations/external_storage/{external_storage_id}`. Use `data.id` as the ID, and an Admin API key or an `org:admin` token. The requests in this section need the `anthropic-beta: efs-2026-10-01` header.
203After you return `2xx` for either event, [get the bucket](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage-manage?method=api#api-check) with `GET /v1/organizations/external_storage/{external_storage_id}`. Use `data.id` as the ID, and an Admin API key or an `org:admin` token. The requests in this section need the `anthropic-beta: efs-2026-10-01` header. For a Google Cloud Storage bucket, the same request and its statuses are in [Check your bucket’s status](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage?bucket=gcs\&method=api#gcs-api-check).
204204 
205205The response isn’t a live test. `status.healthy` says whether the bucket passed the latest check that reached a result, and `status.last_checked_at` says when that check ran.
206206 

managed-agents/migration Changed · +2 / -2 lines

from line 393
393393 
394394 session, err := client.Beta.Sessions.New(ctx, anthropic.BetaSessionNewParams{
395395 Agent: anthropic.BetaSessionNewParamsAgentUnion{
396 OfBetaManagedAgentsAgents: &anthropic.BetaManagedAgentsAgentParams{
396 OfBetaManagedAgentsAgent: &anthropic.BetaManagedAgentsAgentParams{
397397 ID: agent.ID,
398398 Version: anthropic.Int(agent.Version),
399399 },
from line 923
923923 
924924 session, err := client.Beta.Sessions.New(ctx, anthropic.BetaSessionNewParams{
925925 Agent: anthropic.BetaSessionNewParamsAgentUnion{
926 OfBetaManagedAgentsAgents: &anthropic.BetaManagedAgentsAgentParams{
926 OfBetaManagedAgentsAgent: &anthropic.BetaManagedAgentsAgentParams{
927927 ID: agent.ID,
928928 Version: anthropic.Int(agent.Version),
929929 },

managed-agents/multiagent-orchestration Changed · +1 / -1 lines

from line 649
649649 Subagents: anthropic.BetaManagedAgentsMultiagentSubagentsParamsUnion{
650650 OfEnabled: &anthropic.BetaManagedAgentsMultiagentSubagentsEnabledParams{
651651 PredefinedAgents: []anthropic.BetaManagedAgentsMultiagentPredefinedAgentParamsUnion{{
652 OfBetaManagedAgentsAgents: &anthropic.BetaManagedAgentsAgentParams{
652 OfBetaManagedAgentsAgent: &anthropic.BetaManagedAgentsAgentParams{
653653 ID: researcher.ID,
654654 },
655655 }},
Feedback