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.

Idempotency-Key
string

Replays the first result of a create; the same key with another body is 400 idempotency_key_reused, one while the first still runs 409 idempotency_key_in_use.

Required string length: 1 - 255

Body

application/json
display_name
string
required

Name of the vault, 1-255 characters on one line (no line breaks). Required.

Required string length: 1 - 255
metadata
object

Optional key-value pairs to store with the vault, at most 16; keys are 1-64 characters, values strings of at most 512 characters. Omitted stores none.

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.