Skip to main content
POST
Start an agent sign-up
Needs no credential. See the Agent quickstart for the flow from the agent’s side. For an agent with no credential. Returns a code to show your person and a poll token to keep. Your person signs in at verificationUrl, types the code and picks a vault. Then poll. At most 10 an hour from one address.
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

Body

application/json
name
string

1 to 64 characters. Unset: the server picks one from the runtime and 4 hex characters.

Required string length: 1 - 64
Pattern: ^[^\p{Cc}]+$/u
runtime
enum<string>
default:linux

What the agent runs on. Default: linux.

Available options:
docker,
linux,
macos,
windows

Response

The sign-up, with its code and poll token shown once.

expiresAt
string
required

ISO 8601. The sign-up ends then, approved or not.

id
string
required
interval
integer
required

Seconds to leave between two polls.

pollToken
string
required

Yours alone: send it when you poll. Shown here once. Never show it to anyone.

userCode
string
required

Show this to your person. They type it at verificationUrl. 8 letters in two groups of four.

Example:

"KTRM-DQWX"

verificationUrl
string
required

Where your person signs in and types the code.