Skip to main content
POST
Look up an agent sign-up by its code
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. Shows which agent asked to connect, before they decide. A wrong code counts: 5 in 15 minutes lock the person’s code field for 15 minutes.
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

Body

application/json
userCode
string
required

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

Required string length: 1 - 32
Example:

"KTRM-DQWX"

Response

The sign-up the code names.

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.