Skip to main content
POST
Make a vault
Takes a managing key (oc_key_...) or a signed-in session. See How it works for what a vault is. Makes a vault in this organization. You can use it at once, and no one else can until it is shared.
Availability: OneCLI Cloud and self-hosted.

Authorizations

Authorization
string
header
required

A managing key (oc_key_...), an older API key (oc_...), or a signed-in session.

Headers

Idempotency-Key
string

Optional. 1 to 255 visible characters. A retry with the same key, path and body returns the first answer (with Idempotent-Replayed: true) for 24 hours. The same key with another path or body is 422 idempotency_conflict.

Required string length: 1 - 255

Body

application/json
name
string
required
Required string length: 2 - 50
Pattern: [a-z0-9]/i

Response

The new vault.

agentCount
integer
required
createdAt
string
required

ISO 8601.

id
string
required
itemCount
integer
required
lastUsedAt
string | null
required

ISO 8601. The newest use of any item in the vault that is not deleted. null: never used.

memberCount
integer
required

How many people can use the vault, counting past the 5 listed.

members
object[]
required

The first few people who can use the vault, oldest access first: the people it is shared with and the members of groups it is shared with. At most 5. A personal vault lists its person only.

name
string
required
personal
boolean
required

Whether the vault is your personal vault: only you and your agents use it. It cannot be renamed, deleted or shared, and it goes when you leave the organization. Nobody sees another person's personal vault.

slug
string | null
required