Skip to main content
POST
Ask to connect a new machine, for a person to approve

Headers

Idempotency-Key
string
Required string length: 1 - 128

Body

application/json
handle
string
required

The person the machine is for. Only their own key can approve the request.

Maximum string length: 80
Example:

"maya"

label
string
required

The name the machine gives itself, usually its host name. It names the key it collects.

Maximum string length: 40
Pattern: ^[a-z0-9]+(-[a-z0-9]+)*$
Example:

"maya-desktop"

Response

Started

code
string
required

The short code a person types to approve the request. It can't collect the key.

Pattern: ^[0-9A-HJKMNP-TV-Z]{3}-[0-9A-HJKMNP-TV-Z]{3}$
Example:

"4KQ-7ZX"

secret
string
required

Kept only by the requesting machine, which collects its key with it. Shown once.

Pattern: ^abc_[A-Za-z0-9_-]{32,}$
expires_at
string<date-time>
required
poll_interval_seconds
integer
required

How long to wait between collection attempts.

Required range: x >= 1