$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "before": "Key / Document,Key / Section,Key / Product,Key / Version,Key / Locale,Key / Visibility,Content Hash,Evidence Hash,Source Revision,Extractor Version,Validity\nfictional-document-1,fictional-section-1,fictional-assistant,1,en,private,aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb,source-r1,fictional-extractor-1,valid\n",
< "after": "Key / Document,Key / Section,Key / Product,Key / Version,Key / Locale,Key / Visibility,Content Hash,Evidence Hash,Source Revision,Extractor Version,Validity\nfictional-document-1,fictional-section-1,fictional-assistant,1,en,private,aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc,source-r2,fictional-extractor-1,valid\n",
< "items": "Id,Kind,Product,Version,Locale,Visibility\nfictional-test-1,test,fictional-assistant,1,en,private\nfictional-test-2,test,fictional-assistant,1,en,private\n",
< "links": "From Source / Document,From Source / Section,From Source / Product,From Source / Version,From Source / Locale,From Source / Visibility,From Item / Id,From Item / Kind,From Item / Product,From Item / Version,From Item / Locale,From Item / Visibility,To / Id,To / Kind,To / Product,To / Version,To / Locale,To / Visibility\nfictional-document-1,fictional-section-1,fictional-assistant,1,en,private,\\N,\\N,\\N,\\N,\\N,\\N,fictional-test-1,test,fictional-assistant,1,en,private\n\\N,\\N,\\N,\\N,\\N,\\N,fictional-unknown-answer,answer,fictional-assistant,1,en,private,fictional-test-2,test,fictional-assistant,1,en,private\n",
< "mapping": {
< "before_capture": {
< "capture_id": "fictional-source-before",
< "scope_id": "fictional-declared-source-inventory",
< "captured_at": "2026-10-01T12:00:00Z",
< "capture_state": "complete"
< },
< "after_capture": {
< "capture_id": "fictional-source-after",
< "scope_id": "fictional-declared-source-inventory",
< "captured_at": "2026-10-02T12:00:00Z",
< "capture_state": "complete"
< },
< "null_token": "\\N",
< "before": [
< {
< "source": "Key / Document",
< "target": "key.document"
< },
< {
< "source": "Key / Section",
< "target": "key.section"
< },
< {
< "source": "Key / Product",
< "target": "key.product"
< },
< {
< "source": "Key / Version",
< "target": "key.version"
< },
< {
< "source": "Key / Locale",
< "target": "key.locale"
< },
< {
< "source": "Key / Visibility",
< "target": "key.visibility"
< },
< {
< "source": "Content Hash",
< "target": "content_hash"
< },
< {
< "source": "Evidence Hash",
< "target": "evidence_hash"
< },
< {
< "source": "Source Revision",
< "target": "source_revision"
< },
< {
< "source": "Extractor Version",
< "target": "extractor_version"
< },
< {
< "source": "Validity",
< "target": "validity"
< }
< ],
< "after": [
< {
< "source": "Key / Document",
< "target": "key.document"
< },
< {
< "source": "Key / Section",
< "target": "key.section"
< },
< {
< "source": "Key / Product",
< "target": "key.product"
< },
< {
< "source": "Key / Version",
< "target": "key.version"
< },
< {
< "source": "Key / Locale",
< "target": "key.locale"
< },
< {
< "source": "Key / Visibility",
< "target": "key.visibility"
< },
< {
< "source": "Content Hash",
< "target": "content_hash"
< },
< {
< "source": "Evidence Hash",
< "target": "evidence_hash"
< },
< {
< "source": "Source Revision",
< "target": "source_revision"
< },
< {
< "source": "Extractor Version",
< "target": "extractor_version"
< },
< {
< "source": "Validity",
< "target": "validity"
< }
< ],
< "items": [
< {
< "source": "Id",
< "target": "id"
< },
< {
< "source": "Kind",
< "target": "kind"
< },
< {
< "source": "Product",
< "target": "product"
< },
< {
< "source": "Version",
< "target": "version"
< },
< {
< "source": "Locale",
< "target": "locale"
< },
< {
< "source": "Visibility",
< "target": "visibility"
< }
< ],
< "links": [
< {
< "source": "From Source / Document",
< "target": "from_source.document"
< },
< {
< "source": "From Source / Section",
< "target": "from_source.section"
< },
< {
< "source": "From Source / Product",
< "target": "from_source.product"
< },
< {
< "source": "From Source / Version",
< "target": "from_source.version"
< },
< {
< "source": "From Source / Locale",
< "target": "from_source.locale"
< },
< {
< "source": "From Source / Visibility",
< "target": "from_source.visibility"
< },
< {
< "source": "From Item / Id",
< "target": "from_item.id"
< },
< {
< "source": "From Item / Kind",
< "target": "from_item.kind"
< },
< {
< "source": "From Item / Product",
< "target": "from_item.product"
< },
< {
< "source": "From Item / Version",
< "target": "from_item.version"
< },
< {
< "source": "From Item / Locale",
< "target": "from_item.locale"
< },
< {
< "source": "From Item / Visibility",
< "target": "from_item.visibility"
< },
< {
< "source": "To / Id",
< "target": "to.id"
< },
< {
< "source": "To / Kind",
< "target": "to.kind"
< },
< {
< "source": "To / Product",
< "target": "to.product"
< },
< {
< "source": "To / Version",
< "target": "to.version"
< },
< {
< "source": "To / Locale",
< "target": "to.locale"
< },
< {
< "source": "To / Visibility",
< "target": "to.visibility"
< }
< ]
< }
<}
<EOF
$curl "https://api.apify.com/v2/actors/critd~answer-drift-planner/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'