자격 증명
자격 증명 생성
client.Beta.Vaults.Credentials.New(ctx, vaultID, params) (*BetaManagedAgentsCredential, error)anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.자격 증명 목록 조회
client.Beta.Vaults.Credentials.List(ctx, vaultID, params) (*PageCursor[BetaManagedAgentsCredential], error)anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.자격 증명 조회
client.Beta.Vaults.Credentials.Get(ctx, credentialID, params) (*BetaManagedAgentsCredential, error)anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.자격 증명 업데이트
client.Beta.Vaults.Credentials.Update(ctx, credentialID, params) (*BetaManagedAgentsCredential, error)anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.자격 증명 삭제
client.Beta.Vaults.Credentials.Delete(ctx, credentialID, params) (*BetaManagedAgentsDeletedCredential, error)anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.자격 증명 보관
client.Beta.Vaults.Credentials.Archive(ctx, credentialID, params) (*BetaManagedAgentsCredential, error)anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.MCP OAuth 자격 증명 검증
client.Beta.Vaults.Credentials.MCPOAuthValidate(ctx, credentialID, params) (*BetaManagedAgentsCredentialValidation, error)anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Models
type BetaManagedAgentsCredential struct { Type: "vault_credential"; ID; ArchivedAt; /* 6 more */ }A credential stored in a vault. Sensitive fields are never returned in responses.
A credential stored in a vault. Sensitive fields are never returned in responses.
type BetaManagedAgentsCredentialNetworkingParamsUnion interface{…}
type BetaManagedAgentsUnrestrictedCredentialNetworkingParams struct { Type: "unrestricted" }Substitute the secret on any host the session's Environment network policy permits egress to. The Environment's network policy is the only boundary on where the secret can reach.
Substitute the secret on any host the session's Environment network policy permits egress to. The Environment's network policy is the only boundary on where the secret can reach.
type BetaManagedAgentsLimitedCredentialNetworkingParams struct { Type: "limited"; AllowedHosts }Substitute the secret only on requests to the listed hosts.
Substitute the secret only on requests to the listed hosts.
AllowedHosts []stringThe destination hosts of the outbound requests that the credential's secret is substituted into.
The destination hosts of the outbound requests that the credential's secret is substituted into.
Each entry is a bare hostname (api.example.com), an IPv4 address (192.0.2.1), or a *. wildcard (*.example.com). URLs, ports, paths, and IPv6 addresses aren't accepted. The list can have up to 16 entries.
type BetaManagedAgentsCredentialValidation struct { Type: "vault_credential_validation"; CredentialID; HasRefreshToken; /* 5 more */ }Result of live-probing a credential against its configured MCP server.
Result of live-probing a credential against its configured MCP server.
type BetaManagedAgentsCredentialValidationStatus stringOverall verdict of a credential validation probe.
Overall verdict of a credential validation probe.
The credential successfully authenticated against its MCP server.
The probe reached the MCP server and the server rejected the credential, or no access token is stored. A refresh, if one was tried, didn't recover it. Usually the end user needs to authorize again.
The probe couldn't tell whether the credential works, for example because of a network error or because a refresh succeeded but the new access token wasn't tested. Validate the credential again to find out.
type BetaManagedAgentsDeletedCredential struct { Type: "vault_credential_deleted"; ID }Confirmation of a deleted credential.
Confirmation of a deleted credential.
The unique ID of the deleted credential (vcrd_...).
type BetaManagedAgentsEnvironmentVariableAuthResponse struct { Type: "environment_variable"; InjectionLocation; Networking; SecretName }Environment variable credential details. The secret value is never returned.
Environment variable credential details. The secret value is never returned.
type BetaManagedAgentsEnvironmentVariableCreateParams struct { Type: "environment_variable"; Networking; SecretName; /* 2 more */ }Parameters for creating an environment variable credential.
Parameters for creating an environment variable credential.
type BetaManagedAgentsEnvironmentVariableUpdateParams struct { Type: "environment_variable"; InjectionLocation; Networking; SecretValue }Parameters for updating an environment variable credential. secret_name is immutable.
Parameters for updating an environment variable credential. secret_name is immutable.
type BetaManagedAgentsInjectionLocationParams struct { Body; Header }Where in the outbound request the secret value may be substituted.
Where in the outbound request the secret value may be substituted.
Substitute when the placeholder appears in the request body.
Substitute when the placeholder appears in a request header value.
type BetaManagedAgentsInjectionLocationResponse struct { Body; Header }Where in the outbound request the secret value is substituted.
Where in the outbound request the secret value is substituted.
Whether the placeholder is substituted in the request body.
Whether the placeholder is substituted in request header values.
type BetaManagedAgentsInjectionLocationUpdateParams struct { Body; Header }Changes which parts of an outbound request the secret is substituted into. A location you leave out keeps its current setting.
Changes which parts of an outbound request the secret is substituted into. A location you leave out keeps its current setting.
After the change, at least one location must be enabled.
See Authenticate with vaults to learn more about injection locations.
Substitute when the placeholder appears in the request body.
Substitute when the placeholder appears in a request header value.
type BetaManagedAgentsLimitedCredentialNetworkingParams struct { Type: "limited"; AllowedHosts }Substitute the secret only on requests to the listed hosts.
Substitute the secret only on requests to the listed hosts.
AllowedHosts []stringThe destination hosts of the outbound requests that the credential's secret is substituted into.
The destination hosts of the outbound requests that the credential's secret is substituted into.
Each entry is a bare hostname (api.example.com), an IPv4 address (192.0.2.1), or a *. wildcard (*.example.com). URLs, ports, paths, and IPv6 addresses aren't accepted. The list can have up to 16 entries.
type BetaManagedAgentsLimitedCredentialNetworkingResponse struct { Type: "limited"; AllowedHosts }The secret is substituted only on requests to the listed hosts.
The secret is substituted only on requests to the listed hosts.
AllowedHosts []stringThe destination hosts of the outbound requests that the credential's secret is substituted into.
The destination hosts of the outbound requests that the credential's secret is substituted into.
An entry matches the request host exactly. An entry such as *.example.com matches any subdomain of example.com but not example.com itself.
type BetaManagedAgentsMCPOAuthAuthResponse struct { Type: "mcp_oauth"; MCPServerURL; ExpiresAt; Refresh }OAuth credential details for an MCP server.
OAuth credential details for an MCP server.
URL of the MCP server this credential authenticates against.
ExpiresAt Time OptionalWhen the credential's access token expires, in RFC 3339. Absent if the expiry isn't known.
When the credential's access token expires, in RFC 3339. Absent if the expiry isn't known.
Refresh BetaManagedAgentsMCPOAuthRefreshResponse OptionalRefresh token configuration, if the credential supports token refresh.
Refresh token configuration, if the credential supports token refresh.
type BetaManagedAgentsMCPOAuthCreateParams struct { Type: "mcp_oauth"; AccessToken; MCPServerURL; /* 2 more */ }Parameters for creating an MCP OAuth credential.
Parameters for creating an MCP OAuth credential.
AccessToken stringThe OAuth access token to send to the MCP server.
The OAuth access token to send to the MCP server.
MCPServerURL stringURL of the MCP server this credential authenticates against.
URL of the MCP server this credential authenticates against.
ExpiresAt Time OptionalWhen access_token expires, in RFC 3339.
When access_token expires, in RFC 3339.
Must be in the future.
Refresh BetaManagedAgentsMCPOAuthRefreshParams OptionalRefresh token configuration, if the credential supports token refresh.
Refresh token configuration, if the credential supports token refresh.
type BetaManagedAgentsMCPOAuthRefreshParams struct { ClientID; RefreshToken; TokenEndpoint; /* 3 more */ }OAuth refresh token parameters for creating a credential with refresh support.
OAuth refresh token parameters for creating a credential with refresh support.
type BetaManagedAgentsMCPOAuthRefreshResponse struct { ClientID; TokenEndpoint; TokenEndpointAuth; /* 2 more */ }OAuth refresh token configuration returned in credential responses.
OAuth refresh token configuration returned in credential responses.
type BetaManagedAgentsMCPOAuthRefreshUpdateParams struct { RefreshToken; Scope; TokenEndpointAuth }Parameters for updating OAuth refresh token configuration.
Parameters for updating OAuth refresh token configuration.
type BetaManagedAgentsMCPOAuthUpdateParams struct { Type: "mcp_oauth"; AccessToken; ExpiresAt; Refresh }Parameters for updating an MCP OAuth credential. The mcp_server_url is immutable.
Parameters for updating an MCP OAuth credential. The mcp_server_url is immutable.
type BetaManagedAgentsMCPProbe struct { HTTPResponse; Method }The failing step of an MCP validation probe.
The failing step of an MCP validation probe.
HTTPResponse BetaManagedAgentsRefreshHTTPResponseThe HTTP error response from the MCP server, or null if the MCP server didn't return one for the failing step, for example after a timeout or a DNS or TLS failure.
The HTTP error response from the MCP server, or null if the MCP server didn't return one for the failing step, for example after a timeout or a DNS or TLS failure.
Response body. May be truncated and has sensitive values scrubbed.
Whether body was truncated.
Value of the Content-Type response header.
StatusCode int64HTTP status code.
HTTP status code.
The MCP method that failed (for example initialize or tools/list).
type BetaManagedAgentsRefreshHTTPResponse struct { Body; BodyTruncated; ContentType; StatusCode }An HTTP response captured during a credential validation probe.
An HTTP response captured during a credential validation probe.
Response body. May be truncated and has sensitive values scrubbed.
Whether body was truncated.
Value of the Content-Type response header.
StatusCode int64HTTP status code.
HTTP status code.
type BetaManagedAgentsRefreshObject struct { HTTPResponse; Status }Outcome of a refresh-token exchange attempted during credential validation.
Outcome of a refresh-token exchange attempted during credential validation.
HTTPResponse BetaManagedAgentsRefreshHTTPResponseThe captured HTTP error response from the token endpoint. Populated only when status is failed.
The captured HTTP error response from the token endpoint. Populated only when status is failed.
Response body. May be truncated and has sensitive values scrubbed.
Whether body was truncated.
Value of the Content-Type response header.
StatusCode int64HTTP status code.
HTTP status code.
Status BetaManagedAgentsRefreshObjectStatusOutcome of the refresh attempt.
Outcome of the refresh attempt.
The token endpoint returned a new access token.
The token endpoint returned an error response. See http_response for detail.
The token endpoint could not be reached (DNS, TLS, or connection error).
No refresh token is stored for the credential, so no exchange was attempted.
type BetaManagedAgentsStaticBearerAuthResponse struct { Type: "static_bearer"; MCPServerURL }Static bearer token credential details for an MCP server.
Static bearer token credential details for an MCP server.
URL of the MCP server this credential authenticates against.
type BetaManagedAgentsStaticBearerCreateParams struct { Type: "static_bearer"; Token; MCPServerURL }Parameters for creating a static bearer token credential.
Parameters for creating a static bearer token credential.
Token stringThe static bearer token to send to the MCP server, such as an API key or personal access token.
The static bearer token to send to the MCP server, such as an API key or personal access token.
MCPServerURL stringURL of the MCP server this credential authenticates against.
URL of the MCP server this credential authenticates against.
type BetaManagedAgentsStaticBearerUpdateParams struct { Type: "static_bearer"; Token }Parameters for updating a static bearer token credential. The mcp_server_url is immutable.
Parameters for updating a static bearer token credential. The mcp_server_url is immutable.
Token string OptionalThe new static bearer token to replace the stored one.
The new static bearer token to replace the stored one.
type BetaManagedAgentsTokenEndpointAuthBasicParam struct { Type: "client_secret_basic"; ClientSecret }Token endpoint uses HTTP Basic authentication with client credentials.
Token endpoint uses HTTP Basic authentication with client credentials.
ClientSecret stringThe OAuth client secret, sent to token_endpoint with HTTP Basic authentication.
The OAuth client secret, sent to token_endpoint with HTTP Basic authentication.
type BetaManagedAgentsTokenEndpointAuthBasicResponse struct { Type: "client_secret_basic" }Token endpoint uses HTTP Basic authentication with client credentials.
Token endpoint uses HTTP Basic authentication with client credentials.
type BetaManagedAgentsTokenEndpointAuthBasicUpdateParam struct { Type: "client_secret_basic"; ClientSecret }Updated HTTP Basic authentication parameters for the token endpoint.
Updated HTTP Basic authentication parameters for the token endpoint.
ClientSecret string OptionalA new OAuth client secret to replace the stored one.
A new OAuth client secret to replace the stored one.
The credential must already use client_secret_basic or client_secret_post. It keeps its current token_endpoint_auth type, even if the type sent with this secret is the other one.
type BetaManagedAgentsTokenEndpointAuthNoneParam struct { Type: "none" }Token endpoint requires no client authentication.
Token endpoint requires no client authentication.
type BetaManagedAgentsTokenEndpointAuthNoneResponse struct { Type: "none" }Token endpoint requires no client authentication.
Token endpoint requires no client authentication.
type BetaManagedAgentsTokenEndpointAuthPostParam struct { Type: "client_secret_post"; ClientSecret }Token endpoint uses POST body authentication with client credentials.
Token endpoint uses POST body authentication with client credentials.
ClientSecret stringThe OAuth client secret, sent to token_endpoint in the POST body.
The OAuth client secret, sent to token_endpoint in the POST body.
type BetaManagedAgentsTokenEndpointAuthPostResponse struct { Type: "client_secret_post" }Token endpoint uses POST body authentication with client credentials.
Token endpoint uses POST body authentication with client credentials.
type BetaManagedAgentsTokenEndpointAuthPostUpdateParam struct { Type: "client_secret_post"; ClientSecret }Updated POST body authentication parameters for the token endpoint.
Updated POST body authentication parameters for the token endpoint.
ClientSecret string OptionalA new OAuth client secret to replace the stored one.
A new OAuth client secret to replace the stored one.
The credential must already use client_secret_basic or client_secret_post. It keeps its current token_endpoint_auth type, even if the type sent with this secret is the other one.
type BetaManagedAgentsUnrestrictedCredentialNetworkingParams struct { Type: "unrestricted" }Substitute the secret on any host the session's Environment network policy permits egress to. The Environment's network policy is the only boundary on where the secret can reach.
Substitute the secret on any host the session's Environment network policy permits egress to. The Environment's network policy is the only boundary on where the secret can reach.
type BetaManagedAgentsUnrestrictedCredentialNetworkingResponse struct { Type: "unrestricted" }The secret is substituted on any host the session's Environment network policy permits egress to.
The secret is substituted on any host the session's Environment network policy permits egress to.