Skip to main content
GET
Read a vault
Takes a managing key (oc_key_...) or a signed-in session. See How it works for what a vault is. One vault you can use.
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.

Path Parameters

id
string
required

The vault's id.

Required string length: 1 - 64

Response

The 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
legacyAgentCount
integer
required

Agents connected before 3.0. They keep their own access, and the vault's permissions apply only to agents connected later.