Skip to main content
Node agents call this endpoint to acquire the next pending job. The controller long-polls: it returns immediately when a matching job is available, otherwise it returns 204 No Content after a bounded wait so the agent can retry.
This endpoint is called by node agents, not by end users. It requires the X-Agent-Secret header issued when the agent registers.

Endpoint

Authentication

X-Agent-Secret: <agent_secret>.

Request body

string
required
Stable agent identifier returned by Register.
object
Current capability snapshot, including free GPU indices and VRAM.

Response

Returns 204 No Content when no job is available. On a match, returns the PIN envelope with the job payload.
integer
0 on match.
object
Full job payload: job_id, type, base_model, dataset_id, lora, hyperparams, assigned_gpu_index.

Example