Skip to main content

credentials

Creates, updates, deletes, gets or lists a credentials resource.

Overview​

Namecredentials
TypeResource
Idanthropic.vaults.credentials

Fields​

The following fields are returned by SELECT queries:

Successful response (OK)

NameDatatypeDescription
idstringUnique identifier for the credential.
vault_idstringIdentifier of the vault this credential belongs to.
display_namestringHuman-readable name for the credential.
archived_atstring (date-time)When the credential was archived. Null if not archived.
▶authobjectAuthentication configuration for this credential.
created_atstring (date-time)A timestamp in RFC 3339 format
metadataobjectArbitrary key-value metadata attached to the credential.
typestring (vault_credential)
updated_atstring (date-time)A timestamp in RFC 3339 format

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectvault_id, credential_idanthropic-workspace-id
listselectvault_idinclude_archived, anthropic-workspace-id
createinsertvault_id, authanthropic-workspace-id
updateupdatevault_id, credential_idanthropic-workspace-id
deletedeletevault_id, credential_idanthropic-workspace-id
archiveexecvault_id, credential_idanthropic-workspace-id
mcp_oauth_validateexecvault_id, credential_idanthropic-workspace-id

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
credential_idstringPath parameter credential_id (example: vcrd_011CZkZEMt8gZan2iYOQfSkw)
vault_idstringPath parameter vault_id (example: vlt_011CZkZDLs7fYzm1hXNPeRjv)
anthropic-workspace-idstringOptional header to select the Workspace for this request. The value is a Workspace ID (for example, wrkspc_011CZkZaBF1tNoB5wlCeusgy). Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace. (example: wrkspc_011CZkZaBF1tNoB5wlCeusgy)
include_archivedbooleanWhether to include archived credentials in the results.

SELECT examples​

Successful response (OK)

SELECT
id,
vault_id,
display_name,
archived_at,
auth,
created_at,
metadata,
type,
updated_at
FROM anthropic.vaults.credentials
WHERE vault_id = '{{ vault_id }}' -- required
AND credential_id = '{{ credential_id }}' -- required
AND "anthropic-workspace-id" = '{{ anthropic-workspace-id }}'
;

INSERT examples​

No description available.

INSERT INTO anthropic.vaults.credentials (
auth,
display_name,
metadata,
vault_id,
"anthropic-workspace-id"
)
SELECT
'{{ auth }}' /* required */,
'{{ display_name }}',
'{{ metadata }}',
'{{ vault_id }}',
'{{ anthropic-workspace-id }}'
RETURNING
id,
vault_id,
display_name,
archived_at,
auth,
created_at,
metadata,
type,
updated_at
;

UPDATE examples​

No description available.

UPDATE anthropic.vaults.credentials
SET
display_name = '{{ display_name }}',
metadata = '{{ metadata }}',
auth = '{{ auth }}'
WHERE
vault_id = '{{ vault_id }}' --required
WHERE credential_id = '{{ credential_id }}' --required
AND "anthropic-workspace-id" = '{{ anthropic-workspace-id}}'
RETURNING
id,
vault_id,
display_name,
archived_at,
auth,
created_at,
metadata,
type,
updated_at;

DELETE examples​

No description available.

DELETE FROM anthropic.vaults.credentials
WHERE vault_id = '{{ vault_id }}' --required
AND credential_id = '{{ credential_id }}' --required
AND "anthropic-workspace-id" = '{{ anthropic-workspace-id }}'
;

Lifecycle Methods​

Successful response (OK)

EXEC anthropic.vaults.credentials.archive
@vault_id='{{ vault_id }}' --required,
@credential_id='{{ credential_id }}' --required,
@anthropic-workspace-id='{{ anthropic-workspace-id }}'
;