Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

vaults changedmanaged-agents/vaults

Nearest release: v2.1.304, published 6 hours 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+24added
Lines−20removed
From line 61 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits19to this page, all time

The whole hunk

from line 61, old and new numbered
/
lines
from line 61
6161 ```typescript TypeScript
6262 const vault = await client.beta.vaults.create({
6363 display_name: "Alice",
64 metadata: { external_user_id: "usr_abc123" },
64 metadata: { external_user_id: "usr_abc123" }
6565 });
6666 console.log(vault.id); // "vlt_01ABC..."
6767 ```
from line 213
213213 "client_id": "1234567890.0987654321",
214214 "scope": "channels:read chat:write",
215215 "refresh_token": "xoxe-1-...",
216 "token_endpoint_auth": {"type": "client_secret_post", "client_secret": "abc123..."},
216 "token_endpoint_auth": {
217 "type": "client_secret_post",
218 "client_secret": "abc123...",
219 },
217220 },
218221 },
219222 )
from line 237
234237 refresh_token: "xoxe-1-...",
235238 token_endpoint_auth: {
236239 type: "client_secret_post",
237 client_secret: "abc123...",
238 },
239 },
240 },
240 client_secret: "abc123..."
241 }
242 }
243 }
241244 });
242245 ```
243246 
from line 419
416419 auth: {
417420 type: "static_bearer",
418421 mcp_server_url: "https://mcp.linear.app/mcp",
419 token: "lin_api_your_linear_key",
420 },
422 token: "lin_api_your_linear_key"
423 }
421424 });
422425 ```
423426 
from line 561
558561 )
559562 if env_credential.auth.type == "environment_variable":
560563 location = env_credential.auth.injection_location
561 print(f"header: {location.header}, body: {location.body}") # header: True, body: False
564 print(
565 f"header: {location.header}, body: {location.body}"
566 ) # header: True, body: False
562567 ```
563568 
564569 ```typescript TypeScript
from line 575
570575 secret_value: "ntn_your-secret-here",
571576 networking: {
572577 type: "limited",
573 allowed_hosts: ["api.notion.com"],
578 allowed_hosts: ["api.notion.com"]
574579 },
575 injection_location: { header: true },
576 },
580 injection_location: { header: true }
581 }
577582 });
578583 if (envVarCredential.auth.type === "environment_variable") {
579584 console.log(envVarCredential.auth.injection_location); // { header: true, body: false }
from line 780
775780 agent: agent.id,
776781 environment_id: environment.id,
777782 vault_ids: [vault.id],
778 title: "Alice's Slack digest",
783 title: "Alice's Slack digest"
779784 });
780785 ```
781786 
from line 900
895900 access_token: "xoxp-new-...",
896901 expires_at: "2099-12-31T23:59:59Z",
897902 refresh: {
898 refresh_token: "xoxe-1-new-...",
899 },
900 },
903 refresh_token: "xoxe-1-new-..."
904 }
905 }
901906 });
902907 ```
903908 
from line 1035
10301035 ```
10311036 
10321037 ```typescript TypeScript
1033 const validation = await client.beta.vaults.credentials.mcpOAuthValidate(
1034 credential.id,
1035 { vault_id: vault.id },
1036 );
1038 const validation = await client.beta.vaults.credentials.mcpOAuthValidate(credential.id, {
1039 vault_id: vault.id
1040 });
10371041 console.log(validation.status); // "valid", "invalid", or "unknown"
10381042 ```
10391043 
Feedback