Anthropic::BetaVaultsCredentials
Sub-resource for credentials inside a Vault (beta)
Constructors
new(client : Client)
SourceInstance methods
archive(vault_id : String, credential_id : String, betas : Array(String) = [] of String) : BetaCredential
Archive a Credential
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.
delete(vault_id : String, credential_id : String, betas : Array(String) = [] of String) : BetaCredentialDeleteResponse
Delete a Credential
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
mcp_oauth_validate(vault_id : String, credential_id : String, betas : Array(String) = [] of String) : BetaCredentialValidation
Validate an MCP OAuth Credential
retrieve(vault_id : String, credential_id : String, betas : Array(String) = [] of String) : BetaCredential
Retrieve a Credential by ID
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.