Skip to main content
The control channel carries lifecycle and intervention commands from the PIN control plane to node agents, and returns acknowledgements. End users call the user-facing control endpoint; agents poll the pending-control queue and acknowledge each command they process.
Agent-side endpoints require X-Agent-Secret. The user-side control endpoint uses Authorization: Bearer <api_key or JWT>.

Send a control command

Authorization: Bearer <api_key or JWT>. Enqueues a command for the assigned agent.
string
required
One of run, stop, resume, delete.
Returns {"status": "queued"}.

Poll pending commands

X-Agent-Secret. Returns { "commands": [{ "id": "cmd_...", "action": "stop", "job_id": "..." }] }.

Acknowledge a command

X-Agent-Secret.
string
Free-form result summary.
boolean
true if the agent could not execute the command.
Returns {"ok": true}.

Apply an intervention

X-Agent-Secret. Reports that an intervention has been applied on the training worker.
string
required
Intervention identifier assigned by Intervene.
string
RFC 3339 timestamp of application.

List interventions for a job

X-Agent-Secret. Returns interventions the agent must apply for the job.

Fetch the job payload

X-Agent-Secret. Returns the full job payload for an assigned job, used by agents that reconnect after a restart.

Example