Cancel the running assess batch
const url = 'http://127.0.0.1:8765/api/postings/assess/cancel';const options = {method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://127.0.0.1:8765/api/postings/assess/cancel \ --header 'Content-Type: application/json' \ --data '{}'Cancel the running assess batch: no further model call; what finished is kept. 0.1.11.5: stops the live assess batch of this project. No further model call starts. THE CALLS IN FLIGHT FINISH and their assessments are stored like any other (at most 4; their tokens are spent already), then the batch ends: batch.status is cancelling until then, and GET /api/postings/assess/status then says last.status cancelled with how many were assessed and how many were never started. Every assessment already stored stays. cancel_requested is how many batches were asked (0: none runs, nothing changed). A batch started in a terminal is cancelled the same way; the command is gigai scout jobs assess --cancel. Stopping the server (gigai scout stop) is different: it ends the model processes the server started, and what they would have answered is lost.
Request Body
Section titled “Request Body”object
Example
{}Responses
Section titled “Responses”Success.
object
Example
{ "batch": { "assessed": 12, "estimate_seconds": 1730, "failed": 1, "here": true, "id": "batch_5f0c2d9a41e84b6f9d3f2a7c1b0e6d58", "in_flight": 4, "pending": [ "https://boards.greenhouse.io/acme/jobs/101" ], "profile_id": "prof_1", "started_at": "2026-10-06T09:30:00Z", "status": "cancelling", "total": 50 }, "cancel_requested": 1, "last": { "assessed": 14, "error_code": null, "failed": 0, "failed_codes": [], "finished_at": "2026-10-06T09:12:40Z", "id": "batch_0d1e7c55a3b94c1e8a6f4b2d9c7e3f10", "more_after": 55, "not_started": 36, "requested": 50, "status": "cancelled" }, "running": true, "schema_version": "scout-assess-batch:1"}Forbidden / forbidden_origin: loopback peer and Host 127.0.0.1:<port> or localhost:<port> only (Origin too on writes).
object
object
Examplegenerated
{ "error": { "allowed_keys": [ "example" ], "code": "example", "message": "example" }}Target_unavailable
object
object
Example
{ "error": { "code": "target_unavailable", "message": "..." }}Unsupported_media_type: writes need Content-Type: application/json.
object
object
Examplegenerated
{ "error": { "allowed_keys": [ "example" ], "code": "example", "message": "example" }}Unknown_key
object
object
Example
{ "error": { "code": "unknown_key", "message": "..." }}