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} objects. Use for 'Accept All' or 'Deny All'.

Response

Successful Response