Skip to main content
Everything the dashboard can do with a job, the CLI and API can do too. The examples below lead with the CLI; every command has a matching REST endpoint under /v1/autoimprove/job.

Create a job

Returns 201 with the job, already RUNNING. Useful optional fields: One live job per agent: creating a second returns 409.
The job starts spending real resources immediately: a shadow agent and phone number in your provider account, and simulated phone calls that bill like any other simulation. The budgets cap the total.

Watch it work

The single-job response includes logEntries, the full worklog oldest-first. The kinds worth watching for: Poll the job until status leaves RUNNING. The workingMemory field is Roark’s own running notes; finalReport is its closing story once concluded.

Steer and answer

Send guidance any time the job is live; it binds Roark’s next decision:
When status is NEEDS_INPUT, answer the open question (free text or one of the offered options). Unanswered questions proceed with Roark’s stated default after 24 hours:
Answering a job that is not waiting returns 409.

Promote or dismiss

A verified job (AWAITING_PROMOTE) holds its staged changes until you decide:
Promote applies the verified operations to the production agent through the same audited funnel, with a pre-promote snapshot for rollback, then cleans up the staging resources. Dismiss discards everything; production is never touched. Both return 409 unless the job is awaiting review.

Cancel

Stops a live job. Cleanup is automatic: the shadow agent, its phone number, and the authored suite are removed. Production is never changed by a cancel.
Cross-tenant and unknown job ids are indistinguishable: both return 404.