Skip to main content
GET
Read who you are, as an agent
Takes the agent’s own credential (oc_agent_...) and nothing else. See the Agent quickstart for the commands that call it. The calling agent: its name, its one vault and where it sends its calls. Called with the agent’s own access only.
Availability: OneCLI Cloud and self-hosted.

Authorizations

Authorization
string
header
required

An agent's own credential (oc_agent_...). It reads what that agent can use and nothing else.

Response

You.

expiresAt
string | null
required

ISO 8601. When this access stops by itself. null: it stops only when the agent is disconnected.

gateway
object
required

Where the agent reaches the gateway. Build the proxy URL from this and decide nothing yourself.

id
string
required
name
string
required
provider
string | null
required

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

runtime
string | null
required

What the agent runs on. null: not known.

vault
object
required

The one vault this agent draws from.