Skip to main content
POST
Deny 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. Nothing is made, and the code stops working.
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"

Response

Denied.

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.