Skip to main content
GET
Read a vault's connect token
Takes a managing key (oc_key_...) or a signed-in session. See the Quickstart for the connect command these tokens go into. Whether the vault’s connect command works, when its token was made and when it last connected an agent. Never the token itself.
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 connect token's state.

createdAt
string | null
required

ISO 8601. When it was made. null: it is off.

enabled
boolean
required

Whether the vault's connect command works.

lastUsedAt
string | null
required

ISO 8601, to the minute. When it last connected an agent. null: never, or it is off.