PrimaryCheck

Match review

Two things a source cannot decide for you: a name search on a board that hits several people, and an exclusion list that matches on name alone with no date of birth or NPI to confirm or rule it out. Both end as unable_to_verify(ambiguous_match) — a match never changes a verdict on its own — and both now open a match in the review queue (dashboard Review, or the API below) with every candidate scored so the person deciding sees why.

curl -X GET https://api.primarycheck.com/v1/matches?status=open&severity=red \
  -H "Authorization: Bearer pc_live_…" 
{ "data": [ {
    "id": "mat_…", "object": "match", "status": "open", "severity": "yellow", "kind": "ambiguous_match",
    "verificationId": "ver_…", "claimIndex": 0, "claimId": "c1", "claimType": "license", "source": "PA-PALS",
    "subject": { "firstName": "Amy", "lastName": "Kowalski", "dob": "1976-02-14" },
    "claim": { "type": "license", "state": "PA", "profession": "rn" },
    "candidates": [
      { "index": 0, "record": { "name": "Amy Kowalski", "license_number": "RN353077L", "status": "Active" },
        "score": 1.0, "signals": { "name": "exact", "nameSimilarity": 1.0, "dob": "absent", "npi": "absent", "state": "match", "licenseNumber": "absent" } },
      { "index": 1, "record": { "name": "Amy Kowalski", "license_number": "RN401122", "status": "Expired" }, "score": 1.0, "signals": { … } } ],
    "candidateCount": 2, "chosenIndex": null, "note": null, "resolvedBy": null, "resolvedAt": null, "resolution": null,
    "documents": [], "createdAt": "2026-11-08T14:05:09Z" } ], "hasMore": false }

Kinds, scores and severity

FieldValuesMeaning
kindambiguous_match · name_only_hitA licence or credential search hit several people (the board's candidate rows), or an exclusion / dataset list matched on name alone (its possible rows).
candidates[].score0–1Name similarity (Jaro-Winkler on normalised names, nickname-aware) weighted with date of birth, NPI and state when the source publishes them. A contradicting DOB or NPI caps the score at 0.35; a candidate carrying the claimed licence number scores at least 0.9.
candidates[].signalsname exact · nickname · initial · first_differs · different; dob exact · partial · absent · mismatch; npi, licenseNumber; stateWhy the score is what it is, one word per signal, so the reviewer and your own rules can read the same facts.
severityred yellow bluered: a candidate matches on name + DOB, on NPI or on the claimed licence number — treat as the person until a reviewer says otherwise. yellow: name only (suspected). blue: the source answered ambiguous but listed no candidate rows (waiting on candidate data).

Resolve

curl -X POST https://api.primarycheck.com/v1/matches/mat_…/resolve \
  -H "Authorization: Bearer pc_live_…" \
  -H "Content-Type: application/json" \
  -d '{
    "action": "accept",
    "candidateIndex": 0,
    "note": "Board confirmed the licence number by phone."
  }'
ActionWhat happens to the source resultClaim and verification
acceptThe connector is re-run on the chosen candidate's own licence number (its judge(), fresh evidence and page capture). When that is not possible — sandbox, no connector, no number, or the board still did not settle it — the field checks run on the candidate record: name (your identity decision stands), license_number when claimed, status through statusMapped, expires. The result becomes verified or discrepancy; every original record key stays, record.review and record.matched_candidate are added, and the decision is a document evidence entry. For a name_only_hit the accepted row is a confirmed hit: discrepancy with record.hits.Recomputed with the engine's own roll-up rules; a completed verification is re-stored. match.resolved then verification.updated fire.
rejectA name_only_hit is cleared for that list: verified, fieldChecks[excluded] = false, the dismissed rows under record.dismissed, the reviewer recorded. A licence ambiguity stays unable_to_verify(ambiguous_match): the board still did not say which record is the subject and nothing was verified; record.review records the decision and note.Same recompute, same events.

Every match resolves once: a second call answers 409 match_resolved. accept without a candidateIndex is 400 candidate_required. The decision is written to the account audit log (match.resolve) with the actor, the candidate and the note. A part of a healthcare screen carries claimId <yours>.license or .exclusions and resolves on its own; the bundle's verdict follows.

Documents

POST /v1/matches/{id}/documents takes a multipart file (PDF, image or text; up to 10 MB, 20 per match) — the board letter, the HR note, a screenshot — and stores it with its sha256. The response and every later read carry a signed url valid about 15 minutes (GET …/documents/{documentId}/content; the owning key also works without a signature). Documents stay on a resolved match: the audit record is the match plus what the reviewer looked at.

Staff queue

GET /v1/ops/matches lists open matches across every account for PrimaryCheck staff (session role ops on a staff account, or the break-glass key); rows add accountId. Customers never see each other's matches: another account's id answers 404 match_not_found.

Sandbox

Last name Ambiguous opens a deterministic match on every claim: a licence claim lists two namesakes without DOB (yellow) — candidate 0 holds SBX1, Active; candidate 1 holds SBX2, Expired — so accepting 0 verifies, accepting 1 is a discrepancy and rejecting leaves unable to verify. An exclusion screen lists one name-only row per live list: accept confirms the hit, reject clears it. match.created and match.resolved fire from the sandbox.

SDKs

# Python
for m in pc.matches.list(status="open").auto_paging_iter():
    best = max(m["candidates"], key=lambda c: c["score"])
    pc.matches.accept(m["id"], best["index"], note="auto-accepted at score 1.0")
pc.matches.upload_document("mat_…", "board-letter.pdf", open("letter.pdf", "rb").read(), "application/pdf")

// Node
for await (const m of await pc.matches.list({ status: "open" })) {
  await pc.matches.reject(m.id, { note: "none of these is our candidate" });
}