Skip to main content
GET
Read what a vault's agents may do with a shared item
Takes a managing key (oc_key_...) or a signed-in session. See Editions for what OneCLI Cloud adds. This vault’s permissions for an item shared with it. Another vault’s permissions for the same item are its own.
Availability: OneCLI Cloud only. A self-hosted deployment does not serve this endpoint and answers 404 with error.code: "not_found".

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
itemId
string
required

The shared item's id.

Required string length: 1 - 64

Response

The item's permissions on this vault.

item
enum<string> | null
required

allow: always allowed. ask: needs approval. never: refused. null: not set on this vault yet (until the move to vaults, an agent's own access still decides).

Available options:
allow,
ask,
never,
null
tools
object[]
required

One row per tool of the app. Empty for a key.