Registry Contract: Resolve, Card, Values, History
Build on your workspace fields safely: stable IDs after merges, name lookup, maturity, the field card, values with their sources, history and field.* events.
These endpoints let you build on your workspace fields without breaking when they change. An ID you stored keeps working after a merge, a name you hold resolves to the current field, every read states the field's maturity, and every change is announced on the event feed so a cached list can update instead of polling. This page is for developers and agents that keep their own copy of your field list.
Maturity levels
Every /v1/fields* response carries maturity beside the numeric tier. Treat it as the promise of what you can rely on.
Levels
field.demoted.field.renamed or field.merged.GET /v1/fields?maturity=core|proven|candidate filters by level. The list leaves out fields merged into another unless include_superseded=true, so a cached list never holds two IDs for one field.
Stable IDs after merges
When a field is merged into another, the merged field stays readable with superseded_by: { id, links.self }, so GET /v1/fields/{id} never returns 404 for an ID you stored. Pass follow_redirects=true (default false on GET /v1/fields/{id}, /card and /values) to get the field it was merged into instead; the IDs passed through are listed in redirected_from so you can update your keys. GET /v1/fields/resolve follows merges by default.
/v1/fields/resolveQuery parameters
Invoice No, invoice_number, Rechnungsnummer.superseded_by to the field it was merged into. Default: trueTalonic tries, in order: the exact standard name, the name ignoring case, separators, accents and plurals, a name the field had before a merge, and the field's synonyms, then case-insensitive matches on the standard name and synonyms. The first match wins. matched_by says how it matched (canonical_name, synonym, alias or match_key). No match returns 404 unknown_field; a missing name returns 400 missing_name.
curl
curl -G "https://api.talonic.com/v1/fields/resolve" \
-H "Authorization: Bearer $TALONIC_API_KEY" \
--data-urlencode "name=Invoice No"Response
{
"name": "Invoice No",
"matched_by": "synonym",
"redirected_from": ["b7c1…"],
"field": { "id": "a1b2…", "canonical_name": "invoice_number", "maturity": "proven", "tier": 2, "synonyms": ["inv_no", "invoice no"], "superseded_by": null, "links": { "card": "/v1/fields/a1b2…/card" } }
}The field card
/v1/fields/{id}/cardResponse sections
description, instruction (what Talonic follows when extracting the field), variance_notes, synonyms[], aliases[].pinned, source, link_key, superseded_by, absorbed[] (fields merged into this one that still answer by their old IDs).occurrence_count, document_count, occurrence_rate, first_seen_at, last_seen_at, promoted_at, document_type_distribution.total, distinct_count, top[] (value, count, share), examples[].schema_count, schema_field_count: how many Specs use the field.Values across documents
/v1/fields/{id}/valuesQuery parameters
provenance.via_redirect: true). Default: truefalseOne row per value found; a table column gives several rows with the same document_id. Each row carries value, confidence and provenance (raw_field_name, the exact source_text, the resolved_by band and needs_confirmation). Rows and pagination.total include only documents the key's creator may see.
History and events
/v1/fields/{id}/historyEvent kinds: tier_changed (with from_maturity, to_maturity and direction), merge_log_absorbed and merge_log_merged_into, absorbed, superseded, renamed, rewritten, split, deleted, alias_added. limit defaults to 100 (max 500). History never follows merges: it belongs to the ID you asked for.
The same changes arrive live on GET /v1/events (and at webhook and delivery bindings) as field.graduated, field.promoted, field.demoted, field.merged and field.renamed. Every event names the field by its stable field_id; field.merged carries merged_into_id and mode (redirect keeps the merged field readable, deleted removes it). Events are sent only once the change is saved.
id, read maturity, subscribe to field.*, and look names up again with GET /v1/fields/resolve when one stops matching. Never key on canonical_name alone.Agents read values with talonic_field_values and a field with talonic_get_field. Name lookup, the card and history have no agent tool; call the API from your agent.
Frequently asked questions
A field ID I stored now returns superseded_by. Did I lose data?+
superseded_by.id (or call with follow_redirects=true) and update your key; GET /v1/fields/{id}/values on the surviving field includes values still attached to the old one, marked provenance.via_redirect: true.Which maturity level is safe to hard-code?+
core. A proven field keeps its ID but its name may still be tidied, and a candidate may be merged or expire. Subscribe to field.* events either way so your copy never goes stale silently.How do I get from a name a user typed to the right field?+
GET /v1/fields/resolve?name= with the wording you have. It finds the current field, follows merges and tells you how it matched in matched_by. Then read /card to confirm the definition and example values before querying.