Developer guide · Business packs

Business packs data, for developers.

Every SaaS has to ingest user lists, CRM contacts, product catalogs and orders, and no two customer exports look alike. Low-risk templates across three packs cover the common business objects — and most columns land on the free deterministic layers.

The pack

Core · CRM · E-commerce

low-risk templates commit straight through
Directlow-risk templates commit straight through
field validators
5field validators
hint languages
5hint languages
or bring your own schema
Yoursor bring your own schema
users_v1transactions_v1addresses_v1organizations_v1leads_v1and more

How it works

Four calls, and the file is in your schema.

Upload, cascade, confirm, commit. The deterministic layers do most of the work before anything metered runs, and nothing but headers and a few clamped sample rows leaves your system on the way.

  1. 1Step 1

    Take the file as it comes

    A user list, a CRM contact dump, a product catalog, an orders CSV — whatever the customer exported, uploaded as-is. No pre-formatting, no column renaming, no template picked by the customer.

    POST /v1/uploadscsv · xlsx · json · sql
  2. 2Step 2

    The cascade maps it

    Statistics, heuristic and fuzzy resolve the common business objects against the Core, CRM and E-commerce packs. Artikelnummer, référence and codice articolo all reach sku without a model call — the hints are on the field, and the heuristic layer compares against them at zero cost.

    corecrmecommerce
  3. 3Step 3

    Validate the formats the template defines

    gtin on catalog items runs the GS1 checksum, not a length check; email, phone and url are format-checked on contacts, leads and accounts. A bad barcode fails with gtin_checksum before it reaches your database.

    gtinemailphoneurl
  4. 4Step 4

    Commit — and make the next one a lookup

    Commit writes inline, to a signed webhook, or into a saved database connector. It also records the confirmed layout against a fingerprint of the normalized header row, so the same shape next month can skip mapping entirely.

    POST /v1/layouts/lookupPOST /v1/layouts/drift

Field level

One template, printed in full.

One of the business templates, printed field by field. Every row below is a field object the catalogue ships, with the validator ids that run on it and the header vocabulary the free heuristic layer already recognises — which is why a German or Italian catalogue maps without anyone touching a mapping UI.

products_v1low9 fields · 3 required · 1 validated
FieldTypeRequiredValidatorsHeader vocabulary it already knows
skustringrequired—sku · artikelnummer · référence · codice articolo +1
namestringrequired—name · nom · nome · nombre
descriptionstring———
pricenumberrequired—preis · prix · prezzo · precio
currencystring——währung · devise · valuta · moneda
gtinstring—gtingtin · ean · barcode
categorystring——kategorie · catégorie · categoria · categoría
weight_gnumber——gewicht · poids · peso
in_stockboolean——vorrätig · en stock · disponibile · disponible
Every row is a field object from GET /v1/templates/products_v1 — not a description of one. The hint lists are what the heuristic layer compares a header against after normalize() strips accents, punctuation and whitespace, which is why adding a hint is the highest-leverage change in the whole engine: it costs nothing to run and removes a model call.

Why AdaptivMapr

Built for the shape of regulated data.

What the business packs pack gives you that a generic importer does not — and, under each card, the mechanism that does it.

Business templates, all low-risk

Core covers users, organizations, transactions and addresses; CRM covers leads, contacts, accounts, opportunities, activities, campaigns and support tickets; E-commerce covers orders, products, customers, inventory, returns, shipments and subscriptions. None of them flags for review, so onboarding commits straight through.
HowEvery field carries DE / FR / IT / EN / ES hints — the same multilingual layer the regulated packs use — so a European customer’s export maps without anyone touching a mapping UI.

The second import of a shape is a lookup

A confirmed mapping is cached whole, keyed by a sha256 fingerprint of the normalized header row. When that shape arrives again your importer can offer one-click reuse and skip mapping — and still be billed only the flat per-map fee.
HowPOST /v1/layouts/lookup reads it, /v1/layouts/record writes it, and /v1/layouts/drift diffs a new field set against the newest confirmed layout for that template — added / removed / common, deterministic, no model. Workspace-scoped, never shared.

Recurring feeds pull themselves

Register a scheduled ingest source once and let it pull and map on a cadence. Delivery is a signed, queued webhook with a dead-letter queue and admin replay — a failed delivery is visible and re-sendable, not lost.
HowConnector secrets are KEK-encrypted at rest. Webhook delivery runs on a Cloudflare Queue with a DLQ journal; five cron triggers drive activation, audit cleanup, audit digest, connector sync and migration checks.

Drive it from your product, or from an agent

The whole flow is a small REST surface under /v1, and the same catalogue is exposed over MCP so an agent can list templates and match headers directly. Keys are self-contained and verify without a database lookup.
HowAPI keys are HMAC-signed and carry their own tenant_id — authentication needs no lookup. GET /v1/templates and GET /v1/packs are public and static: the catalogue on this page is the catalogue the API serves.

The frame

What applies here, and what we actually do about it.

Each frame below is paired with a mechanism, not an adjective. Where we hold nothing, the row says so — a compliance page that overstates is worse than one that is short.

GDPR / nFADP — your customers’ customers

A user list or a CRM dump is personal data, and it belongs to your customer. You are a processor for it, and so is anything you hand it to.

Our posture · Schema-only sends headers plus up to three sample rows clamped to 80 characters — enforced by one chokepoint at the HTTP edge — so an onboarding import does not put your customer’s contact list through a model. A DPA is provided on request.

Tenant isolation

One customer’s learned mappings must never surface in another customer’s import.

Our posture · Learned mapping statistics and cached layouts are workspace-scoped. Uploads live in Cloudflare KV under the workspace retention window (24h by default, up to 30d) with explicit tenant scoping; the dashboard plane runs under Postgres row-level security. Nothing is pooled across tenants, and there is no cross-tenant catalogue of “what other customers called this column”.

Risk, even where it is low

A low-risk template is a claim, and a claim needs a mechanism behind it.

Our posture · The business templates are rated low, so PATCH /mappings returns requires_hitl: false and an onboarding import commits straight through. The rating lives on the template and drives the flag in code — if one of these ever becomes medium, every caller starts seeing the gate in the same deploy.

Operational integrity

A failed delivery that disappears is worse than one that errors.

Our posture · Webhook delivery runs on a Cloudflare Queue with a dead-letter queue and admin replay, connector secrets are KEK-encrypted at rest, and commits are written to the audit trail with the mapping fingerprint.

What we do not claim: SOC 2 is in progress, there is no free tier, and AdaptivMapr is not a drop-in replacement for a hosted onboarding UI such as Flatfile. It has no end-customer importer widget. It is the engine you put underneath the import experience you have already designed.

Risk & review

The pack, printed.

Every template this vertical ships, with the risk level that decides whether a commit gates on human review.

Template idRiskCommit gateValidators
users_v1lowrequires_hitl: falseemail
transactions_v1lowrequires_hitl: false—
addresses_v1lowrequires_hitl: false—
organizations_v1lowrequires_hitl: falseurl
leads_v1lowrequires_hitl: falseemail, phone
contacts_v1lowrequires_hitl: falseemail, phone
opportunities_v1lowrequires_hitl: falsenumber_range, email
accounts_v1lowrequires_hitl: falseurl
activities_v1lowrequires_hitl: false—
support_tickets_v1lowrequires_hitl: falseemail
campaigns_v1lowrequires_hitl: false—
orders_v1lowrequires_hitl: false—
products_v1lowrequires_hitl: falsegtin
customers_v1lowrequires_hitl: falseemail, phone
inventory_v1lowrequires_hitl: false—
returns_v1lowrequires_hitl: false—
shipments_v1lowrequires_hitl: false—
subscriptions_v1lowrequires_hitl: false—
Read from the live template catalogue — the same ids, risk levels and validator ids that GET /v1/templates returns. Nothing on this table is typed by hand.

The gate is a property of the template.

There is no setting for it and no per-id list to maintain. A template rated medium or high makes PATCH /mappings return requires_hitl: true and hitl_status: "pending_review" — on every call, for every workspace, derived in one line of the route from the risk field. In production the commit is then refused (428 hitl_approval_required) until a workspace member approves that exact mapping in the dashboard.

All low risk

Nothing in this vertical flags for review.

Derived from risk

Read from each template's own risk field, so it covers every template GET /v1/templates serves — new ones included.

PATCH /v1/uploads/:id/mappings
[
  { "source_col": "Sku",
    "target_field": "sku",
    "user_confirmed": true }
]
response · users_v1
{
  "upload_id": "upl_7a41c2…",
  "mappings": [ … ],
  "requires_hitl": false,
  "hitl_status": "not_required"
}
the body is an ARRAY of { source_col, target_field, user_confirmed } · 409 no_template if /match has not run on this upload yet

In code

A real call, end to end.

A customer’s product catalog against products_v1 — mapped on the free layers, GTIN checksummed at validate, then the confirmed layout cached so the next monthly file is a lookup instead of a map.

  • POST/v1/uploadsparse the file, return its headers + ≤3 clamped sample rows
  • POST/v1/uploads/:id/matchrun the six-layer cascade against one template
  • PATCH/v1/uploads/:id/mappingsrecord confirmations; returns requires_hitl
  • POST/v1/uploads/:id/validaterun the field validators over every row, indexed
  • POST/v1/uploads/:id/commitemit and deliver — inline, webhook or DB connector

Authentication is one header. Keys are HMAC-signed and carry their own tenant_id, so verifying one needs no database lookup — and a key can be scoped so the service that reads mappings is not the one allowed to commit them.

curl
# 1 · upload the customer's file, unmodified
curl -s https://api.adaptivmapr.com/v1/uploads \
  -H "Authorization: Bearer $MAPR_KEY" \
  -F file=@artikelstamm.csv

# 2 · map to the e-commerce catalog template
curl -s https://api.adaptivmapr.com/v1/uploads/$ID/match \
  -H "Authorization: Bearer $MAPR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"target_schema":{"schema_id":"products_v1"},
       "mode":"schema-only"}'

# 3 · next month, reuse the layout instead of mapping
curl -s https://api.adaptivmapr.com/v1/layouts/lookup \
  -H "Authorization: Bearer $MAPR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"template_id":"products_v1",
       "headers":["Artikelnummer","Name","Preis","EAN","Kategorie"]}'
response
{
  "template_id": "products_v1",
  "mode": "schema-only",
  "matches": [
    { "source_col": "Artikelnummer", "target_field": "sku",      "confidence": 1, "source": "heuristic" },
    { "source_col": "Name",          "target_field": "name",     "confidence": 1, "source": "heuristic" },
    { "source_col": "Preis",         "target_field": "price",    "confidence": 1, "source": "heuristic" },
    { "source_col": "EAN",           "target_field": "gtin",     "confidence": 1, "source": "heuristic" },
    { "source_col": "Kategorie",     "target_field": "category", "confidence": 1, "source": "heuristic" }
  ],
  "unmapped": [],
  "cascade_layers": ["statistics","heuristic","fuzzy","ranker","semantic","ai"]
}
schema-only · headers + ≤3 rows clamped to 80 chars left your system · all templates here are low-risk, so commit is not gated

Rollout

From one file to a feed that runs itself.

Four phases, none of which requires the previous one to be finished. Most teams stop after the third and only wire the fourth when a customer starts sending the same file every month.

  1. 1

    Point it at your worst onboarding file

    Not your cleanest one — the export from a customer that took three days last quarter. Run it in schema-only mode against a business template and read which layer resolved each column.

    POST /v1/uploadscsv · xlsx · json · sql
  2. 2

    Put it behind your own import screen

    The whole flow is four REST calls, so the mapping UI stays yours: your copy, your confidence thresholds, your review step. The same catalogue is exposed over MCP if you would rather an agent drive it.

    REST /v1MCP
  3. 3

    Turn confirmations into a cache

    Record the confirmed layout on commit and look it up on the next file. The second import of a shape is a lookup rather than a map, and a customer whose export changes shape shows up as a deterministic drift diff instead of a support ticket.

    /v1/layouts/record/v1/layouts/lookup/v1/layouts/drift
  4. 4

    Let the recurring feeds run themselves

    Register a connector for a customer who sends the same file every month and let it pull and map on a cadence, delivering through a signed, queued webhook with a dead-letter queue and admin replay.

    connectorssigned webhookDLQ replay

FAQ

The questions that decide it.

What do the business packs cover?
Three packs. Core includes users_v1, transactions_v1, addresses_v1; CRM includes leads_v1, contacts_v1, accounts_v1, opportunities_v1, activities_v1; E-commerce includes orders_v1, products_v1, customers_v1, inventory_v1, returns_v1. All low-risk, and every field carries DE/FR/IT/EN/ES hints so a customer’s export maps regardless of their header language.
Why are onboarding imports fast and cheap here?
Business objects have common column names, so the three free deterministic layers resolve most of them: statistics (learned from your confirmations), heuristic (normalized comparison against the field name, label and its hints) and fuzzy (token-set plus Levenshtein, auto-accepting at 0.80). A column that resolves there never reaches the metered model layer. There is no free tier — every map still draws the small flat per-map fee — but a low-risk business file is close to that floor.
How does layout reuse work for recurring imports?
When a mapping is confirmed, the whole layout is cached against a sha256 fingerprint of the normalized header row. The next time that shape arrives, POST /v1/layouts/lookup returns the stored mapping so your importer can offer one-click reuse and skip mapping entirely. POST /v1/layouts/drift uses the same fingerprints to detect schema drift: a new field set for a known template comes back as drift with an added / removed / common diff, or stable, or first_seen — deterministic, no model. Layouts are workspace-scoped; nothing is shared between tenants.
Can I automate this without manual uploads?
Yes. Connectors register a scheduled ingest source with KEK-encrypted secrets and pull on a cadence, delivery runs through a queued, signed webhook with a dead-letter queue and admin replay, and the whole flow is available over the REST /v1 API and the MCP adapter for programmatic onboarding.
Is this a replacement for a hosted importer product?
No. AdaptivMapr is the mapping engine and its API — a six-layer cascade, a template catalogue, validators, layout reuse and delivery. It is not a drop-in replacement for a hosted onboarding UI, and it does not front a clinical integration engine. Teams use it as the mapping layer underneath their own import experience.
Can we keep our data away from AI models entirely?
Not with a switch. The first three layers — statistics, heuristics, fuzzy matching — are deterministic and settle most columns. Columns they leave go to our mapping ranker, which sees column names and computed statistics but never a cell value, and then to the model layer. What you control is how much a model sees: in schema-only mode, column headers and at most three sample values of 80 characters; and with PHI routing, model calls stay on PHI-eligible providers in your region. Anything still unresolved comes back unmapped for a person to assign rather than being guessed.
What happens when a mapping is wrong?
Every match carries a confidence and the layer it came from, so your import screen can show a weak pick rather than hiding it. An override in PATCH /v1/uploads/:id/mappings with user_confirmed: true teaches the statistics layer for your workspace, and a choice that differs from the suggestion records the original as a negative signal. Contests between columns are settled by layer rank then confidence — never by column order — so the same file maps the same way whichever order the columns arrive in.
What does high-volume onboarding cost?
There is no free tier, no seats and no contract. AdaptivMapr runs on a prepaid token wallet with a ~$10 minimum, shared across the phi-cloud suite. Every map draws a small flat fee — a few tokens — including a fully deterministic map and a layout-cache hit that uses no AI. A low-risk business file that resolves on the free layers sits close to that floor, and standard routing pays no PHI surcharge.

Looking for the overview? Business packs: the industry overview

Map business packs data without shipping raw records.

Start in Minimal mode — only your column names and a few example values leave you, never the full file. Turn on Regulated routing when you need it: in your region, under a BAA you accept in the app.