Skip to main content

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

coretier 1Established and fully trusted. Safe to build Specs, dashboards and downstream systems on. A move down is rare and always announced with field.demoted.
proventier 2Recurring and useful. The ID is stable; the name may still be tidied, announced by field.renamed or field.merged.
candidatetier 3New. May be merged, renamed or expire, announced only on the event feed. Do not hard-code.

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.

GET/v1/fields/resolve

Query parameters

name*stringThe field name in any spelling you hold: Invoice No, invoice_number, Rechnungsnummer.
follow_redirectsbooleanFollow superseded_by to the field it was merged into. Default: true

Talonic 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

GET/v1/fields/{id}/card

Response sections

definitionobjectdescription, instruction (what Talonic follows when extracting the field), variance_notes, synonyms[], aliases[].
identityobjectpinned, source, link_key, superseded_by, absorbed[] (fields merged into this one that still answer by their old IDs).
occurrenceobjectoccurrence_count, document_count, occurrence_rate, first_seen_at, last_seen_at, promoted_at, document_type_distribution.
valuesobjectValues across the field and fields merged into it, limited to documents the key's creator may see: total, distinct_count, top[] (value, count, share), examples[].
usageobjectschema_count, schema_field_count: how many Specs use the field.

Values across documents

GET/v1/fields/{id}/values

Query parameters

document_idstringOnly values from this document.
valuestringValue contains this text, ignoring case.
include_redirectedbooleanInclude values still attached to fields merged into this one (provenance.via_redirect: true). Default: true
follow_redirectsbooleanIf this field was merged, list the values of the field it was merged into. Default: false
limit / cursor / orderstringCursor pagination, newest first by default (max 100 per page).

One 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

GET/v1/fields/{id}/history

Event 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.

Keeping a copy of the field list? Store 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?+
No. The merged field stays readable and its values now belong to the field it was merged into. Read 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?+
Call 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.