Skip to main content
POST
Poll an agent sign-up
Needs no credential. See the Agent quickstart for the flow from the agent’s side. Send the poll token every interval seconds. 400 with code authorization_pending: not decided yet. slow_down: you polled too soon, and the interval is now 5 seconds longer (see Retry-After). access_denied: your person said no. expired_token: the sign-up is over. 200: you are connected, and this answer holds your credential, once.
Availability: OneCLI Cloud and self-hosted.

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
pollToken
string
required
Required string length: 1 - 200

Response

The new agent, with its credential shown once.

createdAt
string
required

ISO 8601.

credential
string
required

The agent's credential (oc_agent_...). Shown here once. Store it now: it cannot be read again.

Example:

"oc_agent_exampleexampl_example"

expiresAt
string | null
required

ISO 8601. When the agent's credential 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.

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

"boat"

runtime
string | null
required

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

vaultId
string
required