class

Anthropic::BetaVaultsCredentials

Inherits Reference < Object

Sub-resource for credentials inside a Vault (beta)

Constructors

new(client : Client)
Source

Instance methods

archive(vault_id : String, credential_id : String, betas : Array(String) = [] of String) : BetaCredential

Archive a Credential

Source
create(vault_id : String, auth : JSON::Any | Hash(String, JSON::Any), display_name : String | Nil = nil, metadata : Hash(String, String) | Nil = nil, injection_location : InjectionLocation | Nil = nil, networking : CredentialNetworking | Nil = nil, betas : Array(String) = [] of String) : BetaCredential

Create a Credential inside a Vault.

injection_location scopes where in the outbound request a stored secret may be substituted (body and/or header). networking restricts outbound host access for environment-variable credentials.

Source
delete(vault_id : String, credential_id : String, betas : Array(String) = [] of String) : BetaCredentialDeleteResponse

Delete a Credential

Source
list(vault_id : String, include_archived : Bool | Nil = nil, limit : Int32 = 20, page : String | Nil = nil, betas : Array(String) = [] of String) : BetaCredentialListResponse

List Credentials inside a Vault

Source
mcp_oauth_validate(vault_id : String, credential_id : String, betas : Array(String) = [] of String) : BetaCredentialValidation

Validate an MCP OAuth Credential

Source
retrieve(vault_id : String, credential_id : String, betas : Array(String) = [] of String) : BetaCredential

Retrieve a Credential by ID

Source
update(vault_id : String, credential_id : String, auth : JSON::Any | Hash(String, JSON::Any) | Nil = nil, display_name : String | Nil = nil, metadata : Hash(String, String) | Nil = nil, injection_location : InjectionLocation | Nil = nil, networking : CredentialNetworking | Nil = nil, betas : Array(String) = [] of String) : BetaCredential

Update a Credential.

Source