Hanzo AI
OpenapiGit

Create register

Trades a pool's join secret for a runner identity and the token that authenticates every later call.

POST /v1/runner/register

Addresshttps://api.hanzo.ai/v1/runner/register
MethodPOST
Operationpost_runner_register
AuthAuthorization: Bearer $HANZO_API_KEY

Trades a pool's join secret for a runner identity and the token that authenticates every later call. It is the one operation with no credential to check, because a runner has none until this answers.

The secret names the pool it opens, and a pool exists only because somebody declared it. A daemon that starts against capacity nobody declared is refused here, which is where the rule that pools are declared state actually holds.

Request

6 fields, body application/json (required).

FieldInTypeRequiredDescription
capabilitiesbodystring[]Capabilities are the optional protocol behaviours this runner understands, e.g.
ephemeralbodybooleanEphemeral declares that this runner takes ONE job and exits.
labelsbodystring[]Labels are what a workflow's runs-on: will select this runner by.
namebodystringName is what to call this runner.
tokenbodystringToken is the REGISTRATION secret, a different secret from the runner token the reply carries.
versionbodystringVersion is the runner build asking to register.

Response

StatusBodyMeaning
200runner.RegisterOutok
defaultproblem-detailsrefused

200 body — 8 fields.

FieldInTypeAlwaysDescription
runnerbodyrunner.Identity
runner.ephemeralbodybooleanEphemeral means the runner takes ONE job and exits, so the forge must not expect it back.
runner.idbodyinteger (int64)ID is the forge's own row id for this runner.
runner.labelsbodystring[]Labels are what a workflow's runs-on: selects this runner by.
runner.namebodystringName is what a person calls this runner in the forge's UI.
runner.tokenbodystringToken is the secret that authenticates that handle.
runner.uuidbodystringUUID is the handle the runner presents on every later op.
runner.versionbodystringVersion is the runner build the forge last heard from.

Failure carries the platform error shape — see Errors.

Examples

hanzo runner register

Git API · All Hanzo APIs · Interactive reference

How is this guide?

On this page