Skip to main content

Launch a campaign

POST 

/campaign/:id/launch

Queues a run of the saved campaign: a campaign run in status PENDING, whose run_config holds the spec resolved with the agent as target. With executor: cloud, HackAgent's cloud worker claims and executes it, and its LLM gateway calls are charged to the organization's credits. With executor: local, the response's command (hackagent run <id>) executes it on your machine. The launch runs the preflight checks first (see GET /campaign/{id}/preflight) and queues nothing when one fails (400 with problems). Follow the run with GET /run/{id}/summary.

Request​

Responses​

Created