Skip to main content
GET
Read an agent
Takes a managing key (oc_key_...) or a signed-in session. See the Quickstart for connecting an agent. One agent on a 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 agent's id.

Required string length: 1 - 64

Response

The agent.

createdAt
string
required

ISO 8601.

createdBy
object | null
required

Who made the agent. null: an agent from before 3.0.

expiresAt
string | null
required

ISO 8601. When the agent's credential stops by itself. null: it stops only when the agent is disconnected.

id
string
required
lastSeenAt
string | null
required

ISO 8601. The agent's newest request through the gateway in the last 30 days. null: none in that time.

name
string
required
provider
string | null
required

The agent's provider: a short lowercase label. It never decides access. null: not known.

Pattern: ^[a-z0-9][a-z0-9._-]{0,31}$
Example:

"boat"

runtime
string | null
required

What the agent runs on. null: not known yet.

status
enum<string>
required

expired: the credential's expiry has passed. The agent stays listed.

Available options:
active,
expired
vaultId
string
required