Archive Credential changedapi/beta/vaults/credentials/archive
Nearest release: v2.1.245, published an hour after 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+28added
Lines−43removed
From line
1
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits21to this page, all time
# Archive Credential ## Path parameters ## Headers ## Returns ## Example ### Response (200) ## Archive Credential ### Path Parameters ### Header Parameters ### Returns ### Example #### Response
The whole hunk
from line 1, old and new numbered
/
from line 1
1---
2title: Archive Credential
3url: https://platform.claude.com/docs/en/api/beta/vaults/credentials/archive
4---
1# Archive Credential
52
6## Archive Credential
3**POST** `/v1/vaults/{vault_id}/credentials/{credential_id}/archive`
74
8**post** `/v1/vaults/{vault_id}/credentials/{credential_id}/archive`
9
105Archive Credential
116
12### Path Parameters
7## Path parameters
138
149- `vault_id: string`
1510
1611- `credential_id: string`
1712
18### Header Parameters
13## Headers
1914
2015- `"anthropic-beta": optional array of AnthropicBeta`
2116
from line 88
9388
9489 - `"mid-conversation-tool-changes-2026-07-01"`
9590
96### Returns
91## Returns
9792
98- `BetaManagedAgentsCredential object { id, archived_at, auth, 6 more }`
93- `BetaManagedAgentsCredential object`
9994
10095 A credential stored in a vault. Sensitive fields are never returned in responses.
10196
from line 102
107102
108103 A timestamp in RFC 3339 format
109104
105 format: date-time
106
110107 - `auth: BetaManagedAgentsMCPOAuthAuthResponse or BetaManagedAgentsStaticBearerAuthResponse or BetaManagedAgentsEnvironmentVariableAuthResponse`
111108
112109 Authentication details for a credential.
113110
114 - `BetaManagedAgentsMCPOAuthAuthResponse object { mcp_server_url, type, expires_at, refresh }`
111 - `BetaManagedAgentsMCPOAuthAuthResponse object`
115112
116113 OAuth credential details for an MCP server.
117114
from line 118
121118
122119 - `type: "mcp_oauth"`
123120
124 - `"mcp_oauth"`
125
126121 - `expires_at: optional string or null`
127122
128123 A timestamp in RFC 3339 format
129124
125 format: date-time
126
130127 - `refresh: optional BetaManagedAgentsMCPOAuthRefreshResponse or null`
131128
132129 OAuth refresh token configuration returned in credential responses.
from line 140
143140
144141 Token endpoint requires no client authentication.
145142
146 - `BetaManagedAgentsTokenEndpointAuthNoneResponse object { type }`
143 - `BetaManagedAgentsTokenEndpointAuthNoneResponse object`
147144
148145 Token endpoint requires no client authentication.
149146
150147 - `type: "none"`
151148
152 - `"none"`
149 - `BetaManagedAgentsTokenEndpointAuthBasicResponse object`
153150
154 - `BetaManagedAgentsTokenEndpointAuthBasicResponse object { type }`
155
156151 Token endpoint uses HTTP Basic authentication with client credentials.
157152
158153 - `type: "client_secret_basic"`
159154
160 - `"client_secret_basic"`
155 - `BetaManagedAgentsTokenEndpointAuthPostResponse object`
161156
162 - `BetaManagedAgentsTokenEndpointAuthPostResponse object { type }`
163
164157 Token endpoint uses POST body authentication with client credentials.
165158
166159 - `type: "client_secret_post"`
167160
168 - `"client_secret_post"`
169
170161 - `resource: optional string or null`
171162
172163 OAuth resource indicator.
from line 166
175166
176167 OAuth scope for the refresh request.
177168
178 - `BetaManagedAgentsStaticBearerAuthResponse object { mcp_server_url, type }`
169 - `BetaManagedAgentsStaticBearerAuthResponse object`
179170
180171 Static bearer token credential details for an MCP server.
181172
from line 176
185176
186177 - `type: "static_bearer"`
187178
188 - `"static_bearer"`
179 - `BetaManagedAgentsEnvironmentVariableAuthResponse object`
189180
190 - `BetaManagedAgentsEnvironmentVariableAuthResponse object { injection_location, networking, secret_name, type }`
191
192181 Environment variable credential details. The secret value is never returned.
193182
194183 - `injection_location: BetaManagedAgentsInjectionLocationResponse`
from line 196
207196
208197 Outbound hosts the secret value is substituted on.
209198
210 - `BetaManagedAgentsUnrestrictedCredentialNetworkingResponse object { type }`
199 - `BetaManagedAgentsUnrestrictedCredentialNetworkingResponse object`
211200
212201 The secret is substituted on any host the session's Environment network policy permits egress to.
213202
214203 - `type: "unrestricted"`
215204
216 - `"unrestricted"`
205 - `BetaManagedAgentsLimitedCredentialNetworkingResponse object`
217206
218 - `BetaManagedAgentsLimitedCredentialNetworkingResponse object { allowed_hosts, type }`
219
220207 The secret is substituted only on requests to the listed hosts.
221208
222209 - `allowed_hosts: array of string`
from line 212
225212
226213 - `type: "limited"`
227214
228 - `"limited"`
229
230215 - `secret_name: string`
231216
232217 Name of the environment variable.
from line 218
233218
234219 - `type: "environment_variable"`
235220
236 - `"environment_variable"`
237
238221 - `created_at: string`
239222
240223 A timestamp in RFC 3339 format
241224
225 format: date-time
226
242227 - `metadata: map[string]`
243228
244229 Arbitrary key-value metadata attached to the credential.
from line 230
245230
246231 - `type: "vault_credential"`
247232
248 - `"vault_credential"`
249
250233 - `updated_at: string`
251234
252235 A timestamp in RFC 3339 format
253236
237 format: date-time
238
254239 - `vault_id: string`
255240
256241 Identifier of the vault this credential belongs to.
from line 244
259244
260245 Human-readable name for the credential.
261246
262### Example
247## Example
263248
264```http
249```bash
265250curl https://api.anthropic.com/v1/vaults/$VAULT_ID/credentials/$CREDENTIAL_ID/archive \
266251 -X POST \
267252 -H 'anthropic-version: 2023-06-01' \
from line 254
269254 -H "X-Api-Key: $ANTHROPIC_API_KEY"
270255```
271256
272#### Response
257### Response (200)
273258
274259```json
275260{
No line in this hunk matches that.