POST

Authorizations

x-api-key
string
header
required

Headers

bma-workspace-id
string

Project scope. Required when the API key can access more than one project. Also accepted as anthropic-workspace-id; headers sent together must agree, otherwise the request is a 400 workspace_id_conflict.

Path Parameters

vault_id
string
required

ID of the vault (vlt_ followed by 26 lowercase base32 characters; a few older vaults keep an ID of another form, such as sec_…).

Body

application/json
display_name
string | null

New name, 1-255 characters on one line. Omitted or null keeps the current name.

Required string length: 1 - 255
metadata
object | null

Patch of the metadata: a key set to a string is added or replaced, a key set to null is removed, keys left out are kept. Omitted or null changes nothing. Keys are 1-64 characters, values at most 512 characters, and at most 16 pairs may remain.

Response

Success.

A vault of a workspace, a named collection of credentials that sessions authenticate with.

id
string
required

ID of the vault (vlt_ followed by 26 lowercase base32 characters; a few older vaults keep an ID of another form, such as sec_…).

type
string
required

Always vault.

Allowed value: "vault"
display_name
string
required

Name of the vault, 1-255 characters on one line; not unique.

metadata
object
required

Your key-value pairs, at most 16; {} when there are none.

created_at
string<date-time>
required

When the vault was created (RFC 3339, UTC).

updated_at
string<date-time>
required

When the vault was last created, updated or archived (RFC 3339, UTC).

archived_at
string<date-time> | null
required

When the vault was archived (RFC 3339, UTC); null while it is active.