Machines

Approve a worker with a Machine token

Approves one headless worker installation for the Machine that the token belongs to, in the token's Workspace. Authenticate only with the Machine token (Authorization: Bearer rmt_...); API keys and OAuth tokens are rejected. The body and one-use ticket are identical to createMachineEnrollmentTicket; the response also names the Workspace and Machine, so a worker needs no other configuration. Tickets are owned by the token creator and stop working if the creator is no longer an owner or admin. Execution feature gates can return 503.

<sub>Auth: Machine token (rmt_...) only; API keys and OAuth tokens are rejected</sub>

post/v3/machines/enrollment-tickets

Request

  • Base URL: https://api.reasonmachines.com
  • URL: https://api.reasonmachines.com/v3/machines/enrollment-tickets
  • Auth: HTTP bearer

Request body

install_idstring required
code_challengestring required
lifecycle'persistent' | 'ephemeral' required
ttl_secondsinteger
folder_lane_ofstring uuid

Response

One-use ticket bound to the token's Machine.

enrollment_ticketstring required
expires_atstring required
device_kind'headless' required
lifecycle'persistent' | 'ephemeral' required
device_expires_atstring required
machine_idstring uuid required
machine_namestring required
organization_idstring uuid required

Workspace the worker redeems the ticket in.

Changes

No recorded changes to this operation across all 1 revision of this API.