The whole hunk
from line 1, old and new numbered
/
lines
from line 1
1---
2title: Get Credential
3url: https://platform.claude.com/docs/en/api/beta/vaults/credentials/retrieve
4---
5
16# Get Credential
27
38**GET** `/v1/vaults/{vault_id}/credentials/{credential_id}`
from line 23
1823
1924 - `string`
2025
21 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 41 more`
26 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 42 more`
2227
2328 - `"message-batches-2024-09-24"`
2429
from line 71
6671
6772 - `"user-profiles-2026-08-18"`
6873
74 - `"user-profiles-2026-09-04"`
75
6976 - `"advisor-tool-2026-03-01"`
7077
7178 - `"managed-agents-2026-04-01"`
from line 115
108115
109116 - `"mid-conversation-system-clear-at-2026-08-21"`
110117
118- `"anthropic-workspace-id": optional string`
119
111120## Returns
112121
113122- `BetaManagedAgentsCredential object`
from line 123
114123
115124 A credential stored in a vault. Sensitive fields are never returned in responses.
116125
126 - `type: "vault_credential"`
127
117128 - `id: string`
118129
119130 Unique identifier for the credential.
from line 143
132143
133144 OAuth credential details for an MCP server.
134145
146 - `type: "mcp_oauth"`
147
135148 - `mcp_server_url: string`
136149
137150 URL of the MCP server this credential authenticates against.
138151
139 - `type: "mcp_oauth"`
140
141152 - `expires_at: optional string or null`
142153
143154 A timestamp in RFC 3339 format
from line 201
190201
191202 Static bearer token credential details for an MCP server.
192203
204 - `type: "static_bearer"`
205
193206 - `mcp_server_url: string`
194207
195208 URL of the MCP server this credential authenticates against.
196209
197 - `type: "static_bearer"`
198
199210 - `BetaManagedAgentsEnvironmentVariableAuthResponse object`
200211
201212 Environment variable credential details. The secret value is never returned.
202213
214 - `type: "environment_variable"`
215
203216 - `injection_location: BetaManagedAgentsInjectionLocationResponse`
204217
205218 Where in the outbound request the secret value is substituted.
from line 239
226239
227240 The secret is substituted only on requests to the listed hosts.
228241
242 - `type: "limited"`
243
229244 - `allowed_hosts: array of string`
230245
231246 Hostnames on which the secret will be substituted. An entry matches the request host exactly; a `*.`-prefixed entry matches any subdomain of the named domain but not the domain itself.
232247
233 - `type: "limited"`
234
235248 - `secret_name: string`
236249
237250 Name of the environment variable.
238251
239 - `type: "environment_variable"`
240
241252 - `created_at: string`
242253
243254 A timestamp in RFC 3339 format
from line 258
247258 - `metadata: map[string]`
248259
249260 Arbitrary key-value metadata attached to the credential.
250
251 - `type: "vault_credential"`
252261
253262 - `updated_at: string`
254263