Skip to main content
POST
Approve an agent sign-up
Takes a signed-in session only. A managing key is refused with 403. See the Agent quickstart for the flow from the agent’s side. For a signed-in person. Connects the agent to one vault they can use. The agent gets its credential on its next poll. Once: a second answer to the same sign-up is 404.
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.

Headers

Idempotency-Key
string

Not accepted on this call. Sending it is 400 bad_request.

Required string length: 1 - 255

Path Parameters

id
string
required

The sign-up's id.

Required string length: 1 - 64

Body

application/json
userCode
string
required

The code the agent showed, with or without its dash.

Required string length: 1 - 32
Example:

"KTRM-DQWX"

vaultId
string
required

The vault to connect the agent to. One you can use.

Required string length: 1 - 64

Response

Approved.

expiresAt
string
required

ISO 8601.

id
string
required
name
string | null
required

The name the agent asked for. null: the server picks one.

runtime
string
required

What the agent runs on.