$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "conversations": [
< {
< "conversation_id": "sample-accepted",
< "automated_resolution": true,
< "automated_resolution_reasoning_present": true,
< "last_resolution": "VERIFIED",
< "test_mode": false,
< "conversation_end_time": "2026-08-01T10:00:00+00:00"
< },
< {
< "conversation_id": "sample-dispute",
< "automated_resolution": true,
< "automated_resolution_reasoning_present": true,
< "last_resolution": "VERIFIED",
< "test_mode": true,
< "conversation_end_time": "2026-08-01T10:05:00+00:00"
< },
< {
< "conversation_id": "sample-rework",
< "automated_resolution": true,
< "automated_resolution_reasoning_present": true,
< "last_resolution": "VERIFIED",
< "test_mode": false,
< "conversation_end_time": "2026-08-01T10:10:00+00:00"
< },
< {
< "conversation_id": "sample-unverifiable",
< "automated_resolution": true,
< "automated_resolution_reasoning_present": false,
< "last_resolution": "VERIFIED",
< "test_mode": false,
< "conversation_end_time": "2026-08-01T10:15:00+00:00"
< }
< ],
< "billing": [
< {
< "case_ref": "sample-accepted",
< "billing_period": "2026-08",
< "resolution_tier": "VERIFIED",
< "billed_units": 1,
< "unit_rate": "1.00",
< "billed_amount": "1.00",
< "currency": "USD"
< },
< {
< "case_ref": "sample-dispute",
< "billing_period": "2026-08",
< "resolution_tier": "VERIFIED",
< "billed_units": 1,
< "unit_rate": "1.00",
< "billed_amount": "1.00",
< "currency": "USD"
< },
< {
< "case_ref": "sample-rework",
< "billing_period": "2026-08",
< "resolution_tier": "VERIFIED",
< "billed_units": 1,
< "unit_rate": "1.00",
< "billed_amount": "1.00",
< "currency": "USD"
< },
< {
< "case_ref": "sample-unverifiable",
< "billing_period": "2026-08",
< "resolution_tier": "VERIFIED",
< "billed_units": 1,
< "unit_rate": "1.00",
< "billed_amount": "1.00",
< "currency": "USD"
< }
< ],
< "events": [
< {
< "case_ref": "sample-rework",
< "event_type": "HUMAN_REWORK",
< "event_at": "2026-08-01T11:00:00+00:00",
< "same_issue": true
< }
< ],
< "policy": {
< "reopen_window_days": 7,
< "human_rework_invalidates": true,
< "duplicate_invalidates": true,
< "negative_feedback_invalidates": true,
< "explicit_unresolved_invalidates": true
< }
<}
<EOF
$curl "https://api.apify.com/v2/actors/factrelay~reconcile/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'