Add, resolve or dismiss a suggestion of one job, or add its drafted line
const url = 'http://127.0.0.1:8765/api/jobs/suggestions';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"action":"resolve","actor":"agent","how":"job_resume_edit","job_url":"https://boards.greenhouse.io/acme/jobs/101","suggestion_id":"sg-1"}'};
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/jobs/suggestions \ --header 'Content-Type: application/json' \ --data '{ "action": "resolve", "actor": "agent", "how": "job_resume_edit", "job_url": "https://boards.greenhouse.io/acme/jobs/101", "suggestion_id": "sg-1" }'Add a suggestion to one job, set one to done, dismiss one, or add a suggestion’s drafted line to the master. No model call. add writes one more open suggestion with source the writer (operator or agent); its line must be a line of the master (422 unknown_line) and its requirement a row of this job (422 unknown_requirement); a why or posting_phrase that holds a contact detail is 422 personal_info_refused. resolve sets one to done and records {by, at, how, ref}; dismiss sets one to dismissed. A closed suggestion stays in the record and its id is never used again. A key of another action is 422 invalid_value. The answer is the job’s suggestions after the change, with added, resolved or dismissed: the id it was about. A hand-back that settles suggestions names them itself (gigai scout resume store --resolves sg-1,sg-3). 0.3.2 add_line: an open master_line suggestion with a draft (else 422 invalid_value) has its line (or your text) added to your master under draft.entry_id, backed by the answer or story, as gigai scout resume master add does (a line like one the master has is 409 near_duplicate: nothing is written, unless that line carries this suggestion’s own backing: an earlier add_line that stopped half way, finished now). With ref (a line the master has) nothing is written and the job settles on that line when the strict check finds the requirement on it (else 422 invalid_value). A suggestion that is done is 422 invalid_value naming its line; a master with no role is 422 master_place_invalid naming gigai scout resume master add --from-answer. Then, in code: the row is read again by the strict check (met when the line shows it), the gate is decided again, the stored assessment is written back with a history entry master_line:<line id>, the suggestion is resolved (how master_line, ref the line id) and the resume is picked again; the answer adds line {id, entry_id, backed}, row {id, status}, warnings (a number the line states that the answer does not) and repick (null, or {code, message} when the pick is refused: the line and the assessment stay written).
Request Bodyrequired
Section titled “Request Bodyrequired”object
What to do.
Who writes: recorded as written_by. Also the X-GigAI-Actor header. Without either, a write from the Scout UI (a browser page of this server) is the operator’s and any other loopback write is the agent’s.
Resolve: what settled it.
The posting’s link: the ONE job.
Add: what the suggestion is about.
Add: the master line it is about, by id. line, requirement or both.
Add: at most 60 characters of the posting the suggestion points at.
Optional and picks nothing (0.1.11.9: a job has one assessment, one suggestion record and one resume, whichever role asked).
Resolve: what it points at: the master line id (master_line) or the question id (answer). add_line: a line your master has: the job settles on it, nothing is written.
Add: the requirement row it is about, by id (req-…).
Resolve, dismiss, add_line: the suggestion, by id (sg-<n>).
Add_line: your own words for the line (the suggestion’s draft.text when not given).
Add: what would help, 1 to 300 characters. No name and no contact detail.
Example
{ "action": "resolve", "actor": "agent", "how": "job_resume_edit", "job_url": "https://boards.greenhouse.io/acme/jobs/101", "suggestion_id": "sg-1"}Responses
Section titled “Responses”Success.
object
Example
{ "counts": { "dismissed": 0, "done": 1, "open": 0 }, "gate": { "decision": "suggest", "ready": true, "reasons": [] }, "job_identity": "https://boards.greenhouse.io/acme/jobs/101", "profile_id": "prof_1", "resolved": "sg-1", "schema_version": "scout-job-suggestions-response:1", "suggestions": [ { "created_at": "2026-10-05T10:05:00Z", "id": "sg-1", "kind": "reword", "line": "b-8aef71", "posting_phrase": "control cost with prompt caching", "requirement": "req-77b0aa", "resolved": { "at": "2026-10-05T10:06:00Z", "by": "agent", "how": "job_resume_edit", "ref": null }, "source": "assessment", "status": "done", "why": "The line states the saving and not the technique the posting names." } ], "updated_at": "2026-10-05T10:06:00Z"}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" }}Assessment_missing, suggestions_not_found, suggestion_not_found, answer_not_found, story_not_found, target_unavailable
object
object
Example
{ "error": { "code": "assessment_missing", "message": "..." }}No_master, near_duplicate, master_line_exists
object
object
Example
{ "error": { "code": "no_master", "message": "..." }}Unsupported_media_type: writes need Content-Type: application/json.
object
object
Examplegenerated
{ "error": { "allowed_keys": [ "example" ], "code": "example", "message": "example" }}Unknown_key, wrong_type, invalid_value, bad_enum, personal_info_refused, unknown_line, unknown_requirement, master_place_invalid
object
object
Example
{ "error": { "code": "unknown_key", "message": "..." }}