Skip to main content
POST
Approve or deny AI-proposed document changes one-by-one or in batch (HITL workflow).

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null

Path Parameters

session_id
string
required

Body

application/json

Approve or deny proposed AI document changes.

job_id
string
required

Job ID that is awaiting approval.

approved
boolean
required

Whether to approve (true) or deny (false) the change.

change_id
string | null

Specific change to approve/deny (for individual decisions). Get change IDs from the job's pending_changes.

feedback
string | null

Optional feedback explaining why a change was denied. Helps the AI adjust future suggestions.

changes
Changes · object[] | null

Batch decisions: array of {change_id, approved, feedback}. Each listed change_id with approved=true is an explicit decision and applies, including changes flagged for individual review; an approve that names no change decides nothing and returns the flagged ids in needs_individual_approval.

wait_for_result
boolean
default:true

Default true: when the decision completes the batch, the call returns after the resumed turn settles (changes applied and saved, a new review pause, or a failure), reported in job_status, applied and job. false returns once the decision is recorded (applied=false, job_status='in_progress'); then wait with get_job.

Response

Successful Response