Auto-Configure Reconciliation
Derive a runnable reconciliation config by cross-referencing a reference dataset against your target documents or structuring run.
Auto-configure derives a ready-to-run reconciliation config from your data. It cross-references the reference dataset against the documents or structuring run you target, finds which extracted fields line up with which reference columns, and returns a complete config plus the evidence behind every match.
The target_value is polymorphic on target_type. For documents, pass { "document_ids": [...] }. For run, pass { "run_id": "..." }. The server scopes every referenced document and run to your tenant, loads the extracted values, and compares them against the reference rows to detect field matches by value overlap, name similarity, or both.
If a config is already stored on the dataset, auto-configure merges those stored rules on top of its suggestions, so your manual choices win. The response always echoes the stored_config it merged (or null) so you can see exactly what was layered. The result is a config you can pass straight to POST /v1/reconciliation/run or persist with PUT /v1/reconciliation/config/{referenceDataId}.
/v1/reconciliation/auto-configureResponse
Response fields
Request body
{
"reference_data_id": "rd_a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"target_type": "documents",
"target_value": {
"document_ids": ["doc_uuid_1", "doc_uuid_2"]
}
}Response
{
"config": {
"lookup_fields": ["booking_reference"],
"reference_key_columns": ["booking_ref"],
"checks": [
{
"name": "freight_amount",
"type": "numeric_tolerance",
"extracted_fields": ["freight_total"],
"reference_fields": ["freight_amount"],
"tolerance": 0.02
}
]
},
"field_matches": [
{
"extracted_field": "booking_reference",
"reference_column": "booking_ref",
"match_reason": "both",
"overlap_count": 14,
"name_similarity": 0.91,
"ref_role": "anchor",
"suggested_check_type": "lookup"
},
{
"extracted_field": "freight_total",
"reference_column": "freight_amount",
"match_reason": "value_overlap",
"overlap_count": 9,
"name_similarity": 0.42,
"ref_role": "validate",
"suggested_check_type": "numeric_tolerance"
}
],
"column_classification": {
"key_columns": ["booking_ref"],
"descriptor_columns": ["carrier_name"],
"numeric_columns": ["freight_amount"]
},
"collapsed_fields": {},
"stored_config": null
}Errors
Error responses