Used with chat_async when approval_mode=‘ask_every_time’. For each proposed change (with chunk_id and HTML diff), respond approved=true|false plus optional feedback for the AI to revise on. Approved changes apply atomically; denied changes are discarded; the AI may revise based on feedback in the next turn. Required for regulated workflows (legal, medical, compliance) where every AI edit must be reviewed before it touches the document. For single changes: set approved=true/false and optionally provide feedback. For batch decisions: provide a ‘changes’ array with per-change decisions. After approval, the job resumes processing and eventually reaches status=completed.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Approve or deny proposed AI document changes.
Job ID that is awaiting approval.
Whether to approve (true) or deny (false) the change.
Specific change to approve/deny (for individual decisions). Get change IDs from the job's pending_changes.
Optional feedback explaining why a change was denied. Helps the AI adjust future suggestions.
Batch decisions: array of {change_id, approved, feedback} objects. Use for 'Accept All' or 'Deny All'.
Successful Response