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 change · api

vaults changedmanaged-agents/vaults

Nearest release: v2.1.336, published under an hour before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+105added
Lines−0removed
From line 137 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits32to this page, all time

The whole hunk

from line 137, old and new numbered
/
lines
from line 137
137137 )
138138 puts vault.id # "vlt_01ABC..."
139139 ```
140 
141 ```hcl Terraform
142 resource "anthropic_beta_vault" "service_accounts" {
143 display_name = "Service accounts"
144 }
145 ```
140146</CodeGroup>
141147 
142148The response is the full vault record:
from line 389
383389 }
384390 )
385391 ```
392 
393 ```hcl Terraform
394 # Needs Terraform 1.11 or later for write-only arguments.
395 variable "slack_access_token" {
396 type = string
397 sensitive = true
398 ephemeral = true
399 }
400 
401 variable "slack_refresh_token" {
402 type = string
403 sensitive = true
404 ephemeral = true
405 }
406 
407 variable "slack_client_secret" {
408 type = string
409 sensitive = true
410 ephemeral = true
411 }
412 
413 resource "anthropic_beta_vault_credential" "slack" {
414 vault_id = anthropic_beta_vault.service_accounts.id
415 display_name = "Slack"
416 
417 auth = {
418 mcp_oauth = {
419 mcp_server_url = "https://mcp.slack.com/mcp"
420 access_token_wo = var.slack_access_token
421 access_token_wo_version = 1
422 refresh = {
423 token_endpoint = "https://slack.com/api/oauth.v2.user.access"
424 client_id = "1234567890.0987654321"
425 scope = "channels:read chat:write"
426 refresh_token_wo = var.slack_refresh_token
427 refresh_token_wo_version = 1
428 token_endpoint_auth = {
429 client_secret_post = {
430 client_secret_wo = var.slack_client_secret
431 client_secret_wo_version = 1
432 }
433 }
434 }
435 }
436 }
437 }
438 ```
386439 </CodeGroup>
387440 
388441 Set `refresh.token_endpoint` (java, php: `refresh.tokenEndpoint`; csharp, go: `Refresh.TokenEndpoint`) to the token endpoint of the OAuth flow that issued the refresh token, because Anthropic sends every refresh request to that URL and the field can’t be changed after the credential is created.
from line 556
503556 }
504557 )
505558 ```
559 
560 ```hcl Terraform
561 # Needs Terraform 1.11 or later for write-only arguments.
562 variable "linear_api_key" {
563 type = string
564 sensitive = true
565 ephemeral = true
566 }
567 
568 resource "anthropic_beta_vault_credential" "linear" {
569 vault_id = anthropic_beta_vault.service_accounts.id
570 display_name = "Linear API key"
571 
572 auth = {
573 static_bearer = {
574 mcp_server_url = "https://mcp.linear.app/mcp"
575 token_wo = var.linear_api_key
576 token_wo_version = 1
577 }
578 }
579 }
580 ```
506581 </CodeGroup>
507582 </Tab>
508583 
from line 781
706781 env_credential.auth.injection_location => {header:, body:}
707782 puts "header: #{header}, body: #{body}" # header: true, body: false
708783 end
784 ```
785 
786 ```hcl Terraform
787 # Needs Terraform 1.11 or later for write-only arguments.
788 variable "notion_api_key" {
789 type = string
790 sensitive = true
791 ephemeral = true
792 }
793 
794 resource "anthropic_beta_vault_credential" "notion" {
795 vault_id = anthropic_beta_vault.service_accounts.id
796 display_name = "Notion API key for sandbox"
797 
798 auth = {
799 environment_variable = {
800 secret_name = "NOTION_API_KEY"
801 secret_value_wo = var.notion_api_key
802 secret_value_wo_version = 1
803 injection_location = {
804 header = true
805 }
806 networking = {
807 limited = {
808 allowed_hosts = ["api.notion.com"]
809 }
810 }
811 }
812 }
813 }
709814 ```
710815 </CodeGroup>
711816 
Feedback