Hanzo AI
OpenapiGit

Create declare

Republishes what a registered runner can do, and answers with what this side understands, so the two learn about each other from one exchange.

POST /v1/runner/declare

Addresshttps://api.hanzo.ai/v1/runner/declare
MethodPOST
Operationpost_runner_declare
AuthAuthorization: Bearer $HANZO_API_KEY

Republishes what a registered runner can do, and answers with what this side understands, so the two learn about each other from one exchange.

Request

5 fields, body application/json (required).

FieldInTypeRequiredDescription
x-runner-uuidheaderstring
x-runner-tokenheaderstring
capabilitiesbodystring[]Capabilities are the optional protocol behaviours this runner understands, e.g.
labelsbodystring[]Labels replace what the forge holds, so a relabelled runner follows its configuration without re-registering.
versionbodystringVersion is the runner build now running.

Response

StatusBodyMeaning
200runner.DeclareOutok
defaultproblem-detailsrefused

200 body — 9 fields.

FieldInTypeAlwaysDescription
capabilitiesbodystring[]Capabilities are what THIS FORGE understands, so a runner learns what the other side supports from the reply body rather than from a header.
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 declare

Git API · All Hanzo APIs · Interactive reference

How is this guide?

On this page