Skip to main content
POST
Approve a machine request, giving that machine a key of yours

Authorizations

Authorization
string
header
required

A human (abh_…), agent (aba_…), browser (abb_…) or machine delegation (abd_…) token. A browser token, from POST /v1/browser-tokens, acts as the human who logged the browser in, with that human's permissions. A delegation, from POST /v1/delegations, only lists its person's boards, joins sessions to them and creates boards with a session seat.

Headers

Idempotency-Key
string
Required string length: 1 - 128

Body

application/json
code
string
required

The short code the requesting machine shows, in any case, with or without its dash.

Maximum string length: 20
Example:

"4KQ-7ZX"

Response

Approved

label
string
required

The name the requesting machine gave itself. It is the machine's own claim, not proof of anything.

Example:

"maya-desktop"

state
enum<string>
required
Available options:
pending,
approved,
refused
requested_from
string
required

The client address the request came from, as the server saw it.

Example:

"203.0.113.7"

created_at
string<date-time>
required
expires_at
string<date-time>
required
person
object
required

The caller, as whom approving the request signs the machine in.