Survivorship API
Groups records by a shared key and collapses each group into one golden record using explicit per-field survivorship rules, with full provenance. Reuses the shared merge engine. Deterministic; billed per credit.
What it does
Collapse keyed groups into golden records with survivorship rules.
When to use it
Reach for Survivorship when you need to answer: “Which value survives per group?” It sits in the Reconcile stage of the catalog — match expected against actual.
Endpoint & cost
POST /api/v1/survivorship
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/survivorship \
-H "Authorization: Bearer zap_live_••••••" \
-H "Content-Type: application/json" \
-d '{"records":[{"id":"1","email":"a@x.com"},{"id":"1","email":""}],"key_fields":["id"]}'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
Survivorship 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 Survivorship in the playground to see the request, or run it live with your API key.
Related APIs
- 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.
- Merge — Collapse duplicate records into one golden record with provenance.
- Similarity — Score pairwise similarity within one record set.
- Link — Record linkage across two datasets.
