HR & People pack

Benefits enrollments CSV import API

Import benefits enrollment files from any CSV: plan, plan type, coverage level, dependents, contributions. High risk, approved by a person before commit.

30-second curl
curl -X POST https://api.adaptivmapr.com/v1/uploads \
  -H "Authorization: Bearer $ADAPTIVMAPR_API_KEY" \
  -F "template=benefits_enrollments_v1" \
  -F "file=@your_data.csv"
→ 7 canonical fields · 0 validated · high risk

Canonical columns

The whole schema, printed as it ships.

Every canonical column, the type each row carries, whether it is required, the field-level validators that fire on commit, and the multilingual header hints the cascade resolves against. This is the shipped definition, not a summary of it.

benefits_enrollments_v1
fields
7
required
3
validated
0
hints
44
Canonical columnTypeRequiredValidatorsHeader hints the cascade matches
employee_idstringyes—personalnummermatriculematricolaemployee idnúmero de empleado
planstringyes—planleistungversicherungsplanrégimepianobenefit planprestación
plan_typeenumhealthdentalvisionpensionlifeother——leistungsarttype de prestationtipo di pianoplan typetipo de plan
coverage_levelenumemployeeemployee_spouseemployee_childrenfamily——deckungdeckungsumfangcouverturecoperturacoveragecobertura
dependentsnumber——angehörigemitversicherteayants droitfamiliari a caricodependentsdependientes
effective_datedateyes—gültig abbeginndate d'effetdecorrenzaeffective datefecha de efectostart datecoverage start
employee_contributionnumber——arbeitnehmerbeitragcotisation salariécontributo dipendenteemployee contributionaportación del empleadoemployee paysemployee cost

Read the same definition as JSON at GET /v1/templates/benefits_enrollments_v1. A hint match resolves on layer 2 — no LLM call, no token spend, just the flat per-map fee. Hover a validator id to see what it checks.

  • 7 canonical fields
  • 3 required
  • 0 validated
  • 44 header hints, 5 languages

Why it exists

Written for the file you actually receive.

The Benefits enrollments template records who is enrolled in which plan. Each row holds an employee_id, the plan and its effective_date (all required), the plan_type (health, dental, vision, pension, life or other), the coverage_level from employee-only to family, the number of dependents covered, and the employee_contribution. It is what a benefits-administration export, a broker's enrolment census or an insurer's member list reduces to. Benefits and payroll teams use it at open enrolment, when they change broker or administration platform, and every pay cycle when deductions have to match what people actually signed up for. It is `high` risk: membership of a health plan, a coverage level that implies a spouse or children, and a count of dependents reveal health and family circumstances. In production a high-risk mapping is never committed on the strength of an API call alone; a workspace member has to approve that exact mapping in the dashboard first.

employee_id, plan and effective_date are required, because an enrolment without a start date cannot be reconciled with payroll. plan_type and coverage_level are enums, and a value outside them is reported as a row error rather than guessed into the nearest member. dependents is a number, not a list: the template counts covered people and holds none of their names or birth dates, which keeps dependants' details out of this file. employee_contribution is a number without its own currency column, so keep one currency per file. One row is one enrolment, so a person in three plans has three rows.

Migration scenarios & the foreign headers they ship

Teams load this template when they move benefits administration (into Workday Benefits, BambooHR or a broker's platform, or out of one); when an open-enrolment census has to go to a new insurer in that insurer's layout; when payroll deductions are reconciled against enrolments each cycle; and when two companies' elections are merged after a deal. Headers we see: "Personalnummer / Employee ID / Versicherungsplan / Régime / Piano / Benefit Plan / Plan / Leistungsart / Plan Type / Tipo di piano / Deckung / Couverture / Copertura / Coverage Level / Mitversicherte / Ayants droit / Dependents / Gültig ab / Date d'effet / Decorrenza / Effective Date / Arbeitnehmerbeitrag / Cotisation salarié / Employee Contribution". Census files often call the start date just "Start Date" and the contribution "Employee Pays"; both are registered hints, so they resolve without a model call.

The cascade

Six layers, and the cheapest one wins.

Layers run in order and stop the moment a column resolves. That is the single biggest cost lever in the system: a column caught on layer 2 never reaches the metered layer 5.

  1. L1Statisticsno LLM

    Auto-accepts a header that past confirmations already resolved the same way, at {minN:100, minRatio:0.95} or {minN:20, minRatio:1.00}.

  2. L2Heuristicno LLM

    Normalises accents, punctuation and whitespace, then compares against the column name, the label, and every registered hint (DE / FR / IT / EN / ES).

  3. L3Fuzzyno LLM

    Token-set ratio plus Levenshtein over the normalised strings. Auto-accepts at 0.80 — it absorbs typos and reordered words.

  4. L4Semanticcheap, cached

    Embedding cosine between the header and the field’s label + hints. Catches the long tail of paraphrases.

  5. L5LLMmetered

    Everything still unresolved goes up in ONE batched, collision-aware call, constrained to this template’s column set so it cannot invent a field.

Try it

One template id, two ways in.

REST for your import pipeline, MCP for your editor. Both run the same cascade and both honour the same schema-only clamp.

REST · POST /v1/uploads

Name the template; the cascade picks up the rest. The canonical definition is read-only at GET /v1/templates/benefits_enrollments_v1.

bash
curl -X POST https://api.adaptivmapr.com/v1/uploads \
  -H "Authorization: Bearer $ADAPTIVMAPR_API_KEY" \
  -F "template=benefits_enrollments_v1" \
  -F "file=@your_data.csv"
→ upload created · mappings ready · confirm before commit

MCP · Cursor / Claude Desktop

Drop AdaptivMapr into your editor and call the same cascade as a tool. Schema-only calls leave only column names and a few example values.

mcp
// In Cursor or Claude Desktop with the AdaptivMapr MCP server installed:
adaptivmapr.match_headers({
  template_id: "benefits_enrollments_v1",
  headers: ["employee_id", "plan", "plan_type", "coverage_level"]
})
schema-only · column names and a few examples only
MCP install instructions
high-risk template

The mappings response comes back flagged. PATCH /uploads/:id/mappings returns requires_hitl: true and hitl_status: "pending_review" and on the hosted API a commit waits until a workspace member records an approval. Schema-only mode (column names and a few example values, never the full file) is a data-minimization mode enforced at the HTTP edge. Full-data mode routes the metered layer-5 call to phi-cloud in-region under a BAA, costs 20% more on the whole map charge, and stays locked until the workspace accepts the BAA/NDA in Settings → Security & Data.

How the wallet is charged

Questions

Benefits enrollments CSV import — FAQ

Why is this high risk when it holds no diagnoses?
Enrolment in a health plan, the coverage level and the number of dependents say something about a person's health and family. That is why a high-risk mapping waits for a recorded approval in the dashboard before the commit goes through.
Where do dependants' names and birth dates go?
Not in this template. It counts dependents and stops there; if you need dependant records, keep them in a separate file with its own, tighter access.
Our census says "EE+SP" and "EE+CH". Will those validate?
No. coverage_level accepts employee, employee_spouse, employee_children and family, and abbreviations are reported as row errors. Rename them before import, or define a custom schema in your workspace with your own values.
Can we commit a benefits file from an automated pipeline?
The pipeline can upload and map, but in production the commit answers 428 hitl_approval_required with an approve_url until a workspace member approves the mapping in the dashboard. Once approved, the same mapping commits; a changed mapping needs a new approval.

Map benefits enrollments in production — without shipping raw records.

Minimal data mode sends only column names and a few example values — never the full file. Add full-data when you need row-level AI, routed in-region under a BAA.