Merge API

Collapses several records for the same entity into one golden record using explicit per-field survivorship rules (most_complete, longest, highest, most_common, and more), with provenance for every chosen value. Reuses the shared merge engine. Deterministic; billed per credit.

What it does

Collapse duplicate records into one golden record with provenance.

When to use it

Reach for Merge when you need to answer: Can you combine these into one golden record? It sits in the Reconcile stage of the catalog — match expected against actual.

Endpoint & cost

POST /api/v1/merge

Cost: Per credit. Zaps draw down your shared monthly allowance; requests that fail validation are not charged.

Authentication

Send your key as a bearer token: Authorization: Bearer zap_live_…. See Authentication for key management and the alternate header.

Example request

curl https://zapinner.com/api/v1/merge \
  -H "Authorization: Bearer zap_live_••••••" \
  -H "Content-Type: application/json" \
  -d '{"records":[{"name":"Acme","phone":""},{"name":"Acme Inc","phone":"555-1234"}]}'
Every response is structured JSON and includes a request_id. Full field-level request and response schemas for this endpoint live in the OpenAPI spec and the API reference.

Errors & limits

Errors use one consistent shape ( error.code, error.message, request_id). See Errors and Rate limits.

SDK

Merge has typed methods in both the JavaScript and Python SDKs. Both are implemented and package-ready but not yet published to npm / PyPI — until they ship, vendor the package source or install from a git ref, or call the endpoint over HTTPS with the example above.

Try it

Select Merge in the playground to see the request, or run it live with your API key.

  • Reconciliation Compare two datasets and surface mismatches, duplicates, and missing records.
  • Entity Resolution Cluster records into entities and emit one canonical record each.
  • Conflicts Find fields whose values disagree across records sharing a key.
  • Survivorship Collapse keyed groups into golden records with survivorship rules.
  • Similarity Score pairwise similarity within one record set.
  • Link Record linkage across two datasets.