machines

Register Machine

Register a new daemon machine or re-register an existing one.

Creates the machine record if it does not already exist. Returns a short-lived machine token that the daemon uses to authenticate its WebSocket connection.

post/api/v1/machines/register

Request

  • Base URL
    https://docs.omnara.com (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Request body

MachineRegisterRequest required

Request to register or re-register a daemon machine.

machine_id, string nullable

Existing machine identifier when re-registering

machine_name, string required

Friendly name unique per user

hostname, string required

OS hostname of the machine

platform, string required

Operating system platform (e.g. linux, darwin)

architecture, string required

CPU architecture (e.g. x86_64, arm64)

daemon_version, string required

Semantic version of the running daemon

directories, string[]

Absolute paths reported by the daemon

metadata, object nullable

Arbitrary key-value metadata about the machine

Response

Successful Response

MachineRegisterResponse required

Response after a successful machine registration.

machine, MachineDescriptor required

Registered machine descriptor

machine_token, string required

Short-lived JWT token for machine WebSocket authentication

machine_token_expires_in, integer required

Seconds until the machine token expires

machine_ws_path, string required

WebSocket path the daemon should connect to

Changes

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