Get how far the assess batch is
const url = 'http://127.0.0.1:8765/api/postings/assess/status';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://127.0.0.1:8765/api/postings/assess/statusHow far the running assess batch is, and how the last one ended. 0.1.11.5: what the Jobs page and a job page poll while an assess batch runs. batch is the live batch of this project, or null: total, assessed, failed, in_flight (model calls running now), profile_id (the profile of the call started last), estimate_seconds (what the question estimated for the batch), pending (the job identities with no result yet) and status running or cancelling. It is read from the batch’s own marker file, whichever process runs the batch (here: this server; false: a terminal’s gigai scout jobs assess --yes or gigai scout new --yes): no store, posting or journal read, so it costs the same on a small and on a very large home. last is how the last batch this server ran ended (status done, cancelled or failed; requested, assessed, failed, not_started, failed_codes), or null. Ids, codes and counts, and pending, which holds posting URLs: the answer is labelled public-untrusted for them.
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": "running", "total": 50 }, "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": "..." }}Unknown_key
object
object
Example
{ "error": { "code": "unknown_key", "message": "..." }}