Skip to content

API & Webhooks

The API is the product. Any harness — Ford's Lifecycle Harness, OpenEvolve, a human with curl — is a client.

Entities

clients, nodes, jobs, runs, digests, content-index, usage accounting.

Endpoints (sketch)

  • POST /jobs — submit (dedup-checked; returns cached result on hit)
  • POST /images/scan — pre-warm layer scan verdicts (some-trust)
  • GET /images/{digest} — layer list + scan verdicts
  • GET /jobs/{id} — status, queue position, ETA
  • POST /jobs/{id}/cancel — client-scoped
  • POST /jobs/{id}/supersede — replace with lineage, inherit queue position
  • GET /jobs/{id}/wait — long-poll for NAT'd workers
  • GET /jobs/{id}/digest — validated result digest + artifact manifest
  • GET /nodes, GET /nodes/{id} — inventory, digest, health, activity
  • GET /topology — nodes, measured fabric links, named groups
  • POST /jobs/match — dry-run: which nodes/groups satisfy resources + constraints
  • GET /results?... — query by recipe hash, node, config version, workload type

Node-facing (daemon-initiated)

  • GET /work/next — poll for a run assignment
  • POST /heartbeats — the minimal trio + state
  • POST /runs/{id}/digest — submit results (validated before complete)
  • POST /runs/{id}/snapshot — streaming partial artifacts for long jobs
  • POST /layers/verdicts — report scan verdicts keyed by layer digest

Webhooks (signed)

run.queued, run.started, run.digest_validated, run.failed, node.degraded, node.unreachable, node.returned, transfer.started, transfer.completed.

Workers without reachable endpoints use long-poll instead of webhooks — never assume inbound connectivity to a client.