Skip to main content
POST
Create Vault
Every request requires ?beta=true.

Authorizations

X-Api-Key
string
header
default:sk-ant-local-default
required

OMA workspace API key.

Headers

anthropic-version
string
anthropic-beta
string

Query Parameters

beta
enum<boolean>
required

Selects the beta API contract for this endpoint. Must be true.

Available options:
true

Body

application/json

Request parameters for creating a vault.

display_name
string
required

Human-readable name for the vault. 1-255 characters.

Required string length: 1 - 255
Example:

"Example vault"

metadata
object

Arbitrary key-value metadata to attach to the vault. Maximum 16 pairs, keys up to 64 chars, values up to 512 chars.

Example:

Response

Successful response (OK)

A vault that stores credentials for use by agents during sessions.

type
enum<string>
required
Available options:
vault
Example:

"vault"

id
string
required

Unique identifier for the vault.

Example:

"vlt_011CZkZDLs7fYzm1hXNPeRjv"

display_name
string
required

Human-readable name for the vault.

Example:

"Example vault"

metadata
object
required

Arbitrary key-value metadata attached to the vault.

Example:
created_at
string<date-time>
required

A timestamp in RFC 3339 format

Example:

"2026-03-15T10:00:00Z"

updated_at
string<date-time>
required

A timestamp in RFC 3339 format

Example:

"2026-03-15T10:00:00Z"

archived_at
string<date-time> | null
required

When the vault was archived. Null if not archived.

Example:

null