On this page

Last updated

The contract, operation by operation

API reference.

Every public operation, generated from the same OpenAPI document the server is built against. The developer guide walks the workflow; this page is the detail.

The public endpoint is not open yet. Keys can be created today, and this contract is the one the server is built against, but there is no API origin a customer can reach from outside DupeZero yet. The steps below are how a connection will work once it opens; until then, the web application is how you use DupeZero.

The document itself is at /api/openapi, ready for a client generator.

Connect in three steps.

  1. Create a key. An organization admin opens Settings → API keys, picks the role the integration needs (viewer, steward or admin), and creates it. The key is shown once; copy it into your secret manager.
  2. Set it as a bearer credential. Every operation below except the health probes needs Authorization: Bearer with that key. A key acts only within its own organization and never above its role.
  3. Make the first call, once the endpoint opens. Read your organization back. A 200 means the key, the origin and the organization name are all right.
First call
export ER_API_ORIGIN='https://your-api.example.com'
export ER_ORG='your-org'
export ER_DATASET='contacts'
# ER_API_KEY comes from your secret manager, never from source.

curl -H "Authorization: Bearer $ER_API_KEY" "$ER_API_ORIGIN/v1/orgs/$ER_ORG"

Each operation below carries the same request, with its path filled in from these variables. Path parameters other than the organization and dataset appear as <placeholders>.

Organization and keys

GET/v1/orgs/{org}viewer+

an org's detail

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired

Success response: OrgView

Response fields
NameTypeRequiredDescription
active_config_versioninteger | nulloptional
drop_rootstring | nulloptional
idstringrequired
namestringrequired
resourcesOrgResourcesrequired
statestringrequired
GET /v1/orgs/{org}
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/api-keysadmin+

list the org's API keys

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired

Success response: ApiKeyList

Response fields
NameTypeRequiredDescription
keysarray of ApiKeyrequiredMetadata only: the wire form has no `key_hash`, and the plaintext was shown once at mint time and is not stored.
GET /v1/orgs/{org}/api-keys
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/api-keys" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/api-keysadmin+

mint an API key for the org, returning the plaintext ONCE

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
Request body
NameTypeRequiredDescription
rolestringrequired

Success response: KeyIssued

Response fields
NameTypeRequiredDescription
idstringrequired
keystringrequired
rolestringrequired
POST /v1/orgs/{org}/api-keys
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/api-keys" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"role": "<role>"}'
DELETE/v1/orgs/{org}/api-keys/{key_id}admin+

revoke an API key, org-scoped and idempotent

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
key_idstringrequired

Success response: KeyRevoked

Response fields
NameTypeRequiredDescription
revokedbooleanrequired
DELETE /v1/orgs/{org}/api-keys/{key_id}
curl -X DELETE "$ER_API_ORIGIN/v1/orgs/$ER_ORG/api-keys/<key_id>" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/auditadmin+

an org's audit feed

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
Query parameters
NameTypeRequiredDescription
actionstringoptionalOnly entries with this action.
actorstringoptionalOnly entries by this actor.
before_idstringoptionalKeyset cursor: only entries with a smaller id; an integer.
formatstringoptional`csv` for a text/csv export; JSON otherwise.
limitstringoptionalMaximum items to return; an integer, clamped to the endpoint's range when out of it.
sincestringoptionalInclusive lower bound on the timestamp (any form `timestamptz` accepts).
untilstringoptionalExclusive upper bound on the timestamp.

Success response: AuditEntry

GET /v1/orgs/{org}/audit
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/audit" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/connectionsviewer+

list an org's active Salesforce connections

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired

Success response: SalesforceConnectionItem

GET /v1/orgs/{org}/connections
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/connections" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/connectionsadmin+

register a Salesforce connection

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
Request body
NameTypeRequiredDescription
api_versionstring | any | nulloptional
auth_kindstring | any | nulloptional
client_idstringrequired
client_secretstringrequired
instance_urlstringrequired
namestringrequired

Success response: a JSON object; see the fields below.

Response fields
NameTypeRequiredDescription
activeanyoptional
api_versionanyoptional
auth_kindanyoptional
idanyoptional
instance_urlanyoptional
nameanyoptional
POST /v1/orgs/{org}/connections
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/connections" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"client_id": "<client_id>", "client_secret": "<client_secret>", "instance_url": "<instance_url>", "name": "<name>"}'
DELETE/v1/orgs/{org}/connections/{connection_id}admin+

retire a Salesforce connection

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
connection_idstringrequired

Success response: Deleted

Response fields
NameTypeRequiredDescription
deletedbooleanrequired
DELETE /v1/orgs/{org}/connections/{connection_id}
curl -X DELETE "$ER_API_ORIGIN/v1/orgs/$ER_ORG/connections/<connection_id>" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/connections/{connection_id}/writeback-authorizationviewer+

a connection's delegated writeback authorization, without tokens

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
connection_idstringrequired

Success response: a JSON object; see the fields below.

GET /v1/orgs/{org}/connections/{connection_id}/writeback-authorization
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/connections/<connection_id>/writeback-authorization" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/connections/{connection_id}/writeback-authorizationadmin+

start delegating Salesforce writeback to a reviewing user

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
connection_idstringrequired
Request body
NameTypeRequiredDescription
allow_automaticbooleanoptional
redirect_uristringrequired

Success response: WritebackAuthorizationStarted

Response fields
NameTypeRequiredDescription
authorize_urlstringrequiredSend the reviewer here; Salesforce returns them to `redirect_uri` with `code` and `state`.
expires_atstringrequiredRFC 3339; complete before this.
POST /v1/orgs/{org}/connections/{connection_id}/writeback-authorization
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/connections/<connection_id>/writeback-authorization" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"redirect_uri": "<redirect_uri>"}'
DELETE/v1/orgs/{org}/connections/{connection_id}/writeback-authorizationadmin+

revoke a connection's delegated writeback authorization

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
connection_idstringrequired

Success response: a JSON object; see the fields below.

DELETE /v1/orgs/{org}/connections/{connection_id}/writeback-authorization
curl -X DELETE "$ER_API_ORIGIN/v1/orgs/$ER_ORG/connections/<connection_id>/writeback-authorization" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/connections/{connection_id}/writeback-authorization/completeadmin+

finish a delegated authorization

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
connection_idstringrequired
Request body
NameTypeRequiredDescription
codestringrequired
statestringrequired

Success response: a JSON object; see the fields below.

POST /v1/orgs/{org}/connections/{connection_id}/writeback-authorization/complete
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/connections/<connection_id>/writeback-authorization/complete" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"code": "<code>", "state": "<state>"}'
GET/v1/orgs/{org}/datasetsviewer+

an org's datasets

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired

Success response: DatasetView

GET /v1/orgs/{org}/datasets
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasetsadmin+

create a dataset

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
Request body
NameTypeRequiredDescription
config_pathstring | any | nulloptional
display_namestring | any | nulloptional
drop_rootstring | any | nulloptional
entity_typestring | any | nulloptional
envmap of stringoptional
namestringrequired
s3_ingest_bucketstring | any | nulloptional
s3_ingest_prefixstring | any | nulloptional

Success response: DatasetProvisioning or DatasetCreated

POST /v1/orgs/{org}/datasets
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "<name>"}'
GET/v1/orgs/{org}/datasets/{ds}viewer+

one dataset's detail

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired

Success response: DatasetView

Response fields
NameTypeRequiredDescription
active_config_versioninteger | nulloptional
created_atstringrequired
display_namestring | nulloptional
entity_typestringrequired
namestringrequired
statestringrequired
updated_atstringrequired
GET /v1/orgs/{org}/datasets/{ds}
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET" \
  -H "Authorization: Bearer $ER_API_KEY"
PATCH/v1/orgs/{org}/datasets/{ds}admin+

update a dataset's display fields

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
display_namestring | any | nulloptional

Success response: DatasetView

Response fields
NameTypeRequiredDescription
active_config_versioninteger | nulloptional
created_atstringrequired
display_namestring | nulloptional
entity_typestringrequired
namestringrequired
statestringrequired
updated_atstringrequired
PATCH /v1/orgs/{org}/datasets/{ds}
curl -X PATCH "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
DELETE/v1/orgs/{org}/datasets/{ds}admin+

delete a dataset

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired

Success response: a JSON object; see the fields below.

Response fields
NameTypeRequiredDescription
job_idanyoptional
nameanyoptional
purge_afteranyoptional
stateanyoptional
DELETE /v1/orgs/{org}/datasets/{ds}
curl -X DELETE "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/usageviewer+

the org's usage against its allowance

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired

Success response: a JSON object; see the fields below.

GET /v1/orgs/{org}/usage
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/usage" \
  -H "Authorization: Bearer $ER_API_KEY"

Configuration

GET/v1/orgs/{org}/datasets/{ds}/configviewer+

the org's active (published) config

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired

Success response: ConfigVersionView

Response fields
NameTypeRequiredDescription
config_hashstringrequired
created_atstringrequired
created_bystringrequired
published_atstring | nulloptional
statestringrequired`draft`, `published` or `superseded`.
tierstring | nulloptionalThe rebuild tier the publish chose; null until published.
versionintegerrequired
yamlstringrequired
GET /v1/orgs/{org}/datasets/{ds}/config
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/config" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/config/validateadmin+

validate a candidate config against a dataset without storing it

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
yamlstringrequired

Success response: ConfigValidation

Response fields
NameTypeRequiredDescription
changed_blocksarray of stringrequiredThe top-level blocks that differ from the active config.
config_hashstring | nulloptionalThe canonical document's hash, the value a run records as the config it executed under; null when the YAML does not load.
problemsarray of stringrequiredEvery reason publish would refuse it, each naming what to change.
tierstring | nulloptionalThe rebuild tier publish would queue (`A`, `B` or `C`), versus the dataset's active config; null when nothing that matters changed.
validbooleanrequiredTrue when publish would accept the document as written.
POST /v1/orgs/{org}/datasets/{ds}/config/validate
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/config/validate" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"yaml": "<yaml>"}'
GET/v1/orgs/{org}/datasets/{ds}/config/versionsviewer+

list an org's config versions, newest first

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired

Success response: ConfigVersionItem

GET /v1/orgs/{org}/datasets/{ds}/config/versions
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/config/versions" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/config/versionsadmin+

create a draft config version

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
yamlstringrequired

Success response: ConfigDraftCreated

Response fields
NameTypeRequiredDescription
config_hashstringrequired
orgstringrequired
statestringrequiredAlways `draft`.
versionintegerrequired
POST /v1/orgs/{org}/datasets/{ds}/config/versions
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/config/versions" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"yaml": "<yaml>"}'
GET/v1/orgs/{org}/datasets/{ds}/config/versions/{version}viewer+

one config version with its `yaml`

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
versionstringrequired

Success response: ConfigVersionView

Response fields
NameTypeRequiredDescription
config_hashstringrequired
created_atstringrequired
created_bystringrequired
published_atstring | nulloptional
statestringrequired`draft`, `published` or `superseded`.
tierstring | nulloptionalThe rebuild tier the publish chose; null until published.
versionintegerrequired
yamlstringrequired
GET /v1/orgs/{org}/datasets/{ds}/config/versions/{version}
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/config/versions/<version>" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/config/versions/{version}/publishadmin+

publish a draft config version

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
versionstringrequired

Success response: ConfigPublished

Response fields
NameTypeRequiredDescription
advisoriesarray of stringrequiredWhat the latest profile says about the config that just went live: advice, never a refusal.
changed_blocksarray of stringrequired
jobs_enqueuedarray of stringrequiredThe rebuild jobs the tier queued, in order.
orgstringrequired
published_bystringrequired
tierstring | nulloptionalThe rebuild tier the changed blocks required.
versionintegerrequired
POST /v1/orgs/{org}/datasets/{ds}/config/versions/{version}/publish
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/config/versions/<version>/publish" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/datasets/{ds}/ignore-wordsviewer+

the org's ignore-words dictionary

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired

Success response: a JSON object; see the fields below.

Response fields
NameTypeRequiredDescription
rowsanyoptional
GET /v1/orgs/{org}/datasets/{ds}/ignore-words
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/ignore-words" \
  -H "Authorization: Bearer $ER_API_KEY"
PUT/v1/orgs/{org}/datasets/{ds}/ignore-wordssteward+

replace the org's ignore-words dictionary

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
rowsarray of objectrequired

Success response: a JSON object; see the fields below.

Response fields
NameTypeRequiredDescription
apply_jobanyoptional
rowsanyoptional
PUT /v1/orgs/{org}/datasets/{ds}/ignore-words
curl -X PUT "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/ignore-words" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"rows": []}'
GET/v1/orgs/{org}/datasets/{ds}/lexiconviewer+

the org's nickname lexicon

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired

Success response: Lexicon

Response fields
NameTypeRequiredDescription
pairsarray of LexiconPairrequired
GET /v1/orgs/{org}/datasets/{ds}/lexicon
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/lexicon" \
  -H "Authorization: Bearer $ER_API_KEY"
PUT/v1/orgs/{org}/datasets/{ds}/lexiconsteward+

replace the org's nickname lexicon

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
pairsarray of objectrequired

Success response: LexiconSaved

Response fields
NameTypeRequiredDescription
apply_jobstringrequiredThe `run_all_full` job that re-standardizes with the new pairs.
pairsarray of LexiconPairrequired
PUT /v1/orgs/{org}/datasets/{ds}/lexicon
curl -X PUT "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/lexicon" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"pairs": []}'
GET/v1/orgs/{org}/datasets/{ds}/modelsviewer+

the tenant's model versions

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired

Success response: a JSON object; see the fields below.

Response fields
NameTypeRequiredDescription
activeanyoptional
itemsanyoptional
GET /v1/orgs/{org}/datasets/{ds}/models
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/models" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/datasets/{ds}/models/{name}/versions/{version}viewer+

one model version with its document and weights

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
namestringrequired
versionintegerrequired

Success response: ModelDetail

Response fields
NameTypeRequiredDescription
activated_atstring | nulloptionalRFC 3339, microseconds.
comparator_algorithm_versioninteger | nulloptionalThe comparator algorithm the document was trained with; null when the stored document does not parse.
created_atstringrequiredRFC 3339, microseconds.
created_bystringrequired
entity_typestringrequired
idstringrequired
model_hashstringrequired
model_version_labelstringrequired
namestringrequired
provenanceanyrequired
statestringrequired
tf_snapshot_idstring | nulloptional
versionintegerrequired
model_jsonstringrequiredThe stored settings document, as text.
weightsanyrequiredPer comparison level: m/u and the log-odds they imply. Null when the document does not parse.
GET /v1/orgs/{org}/datasets/{ds}/models/{name}/versions/{version}
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/models/<name>/versions/<version>" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/models/{name}/versions/{version}/activateadmin+

activate a model version

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
namestringrequired
versionintegerrequired

Success response: a JSON object; see the fields below.

Response fields
NameTypeRequiredDescription
model_hashanyoptional
nameanyoptional
stateanyoptional
versionanyoptional
POST /v1/orgs/{org}/datasets/{ds}/models/{name}/versions/{version}/activate
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/models/<name>/versions/<version>/activate" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/datasets/{ds}/models/{name}/versions/{version}/evaluationviewer+

how a model version scored against its own labels

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
namestringrequired
versionintegerrequired
Query parameters
NameTypeRequiredDescription
thresholdstringoptionalThe cut to evaluate at (0–1); the configured auto-merge threshold when omitted.

Success response: ModelEvaluation

Response fields
NameTypeRequiredDescription
by_originmap of ConfusionMetricsrequiredPer label origin that has any evaluable label.
countsEvaluationCountsrequired
curvearray of CurvePointrequired
model_version_labelstringrequired
overallConfusionMetricsrequired
thresholdnumberrequired
namestringrequired
statestringrequired
versionintegerrequired
GET /v1/orgs/{org}/datasets/{ds}/models/{name}/versions/{version}/evaluation
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/models/<name>/versions/<version>/evaluation" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/models/compileadmin+

compile the org's ACTIVE config into a new draft model version

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired

Success response: ModelCompiled

Response fields
NameTypeRequiredDescription
activated_atstring | nulloptionalRFC 3339, microseconds.
comparator_algorithm_versioninteger | nulloptionalThe comparator algorithm the document was trained with; null when the stored document does not parse.
created_atstringrequiredRFC 3339, microseconds.
created_bystringrequired
entity_typestringrequired
idstringrequired
model_hashstringrequired
model_version_labelstringrequired
namestringrequired
provenanceanyrequired
statestringrequired
tf_snapshot_idstring | nulloptional
versionintegerrequired
notesarray of stringrequired
POST /v1/orgs/{org}/datasets/{ds}/models/compile
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/models/compile" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/models/versionsadmin+

mint a new model version

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
model_jsonstringrequired
model_version_labelstringrequired
namestring | any | nulloptional
provenanceany | any | nulloptional
tf_snapshot_idstring | any | nulloptional

Success response: ModelSummary

Response fields
NameTypeRequiredDescription
activated_atstring | nulloptionalRFC 3339, microseconds.
comparator_algorithm_versioninteger | nulloptionalThe comparator algorithm the document was trained with; null when the stored document does not parse.
created_atstringrequiredRFC 3339, microseconds.
created_bystringrequired
entity_typestringrequired
idstringrequired
model_hashstringrequired
model_version_labelstringrequired
namestringrequired
provenanceanyrequired
statestringrequired
tf_snapshot_idstring | nulloptional
versionintegerrequired
POST /v1/orgs/{org}/datasets/{ds}/models/versions
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/models/versions" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model_json": "<model_json>", "model_version_label": "<model_version_label>"}'
GET/v1/orgs/{org}/datasets/{ds}/s3-ingestviewer+

this tenant's auto-ingest state

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired

Success response: a JSON object; see the fields below.

Response fields
NameTypeRequiredDescription
bucketanyoptional
prefixanyoptional
sourcesanyoptional
GET /v1/orgs/{org}/datasets/{ds}/s3-ingest
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/s3-ingest" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/datasets/{ds}/schedulesviewer+

list an org's schedules

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired

Success response: ScheduleItem

GET /v1/orgs/{org}/datasets/{ds}/schedules
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/schedules" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/schedulesadmin+

create an API-sourced schedule

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
cronstringrequired
kindstringrequired
paramsany | any | nulloptional

Success response: ScheduleCreated

Response fields
NameTypeRequiredDescription
cronstringrequired
idstringrequired
kindstringrequired
POST /v1/orgs/{org}/datasets/{ds}/schedules
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/schedules" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"cron": "<cron>", "kind": "<kind>"}'
PATCH/v1/orgs/{org}/datasets/{ds}/schedules/{schedule_id}admin+

enable/disable a schedule

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
schedule_idstringrequired
Request body
NameTypeRequiredDescription
enabledbooleanrequired

Success response: ScheduleToggled

Response fields
NameTypeRequiredDescription
enabledbooleanrequired
idstringrequired
PATCH /v1/orgs/{org}/datasets/{ds}/schedules/{schedule_id}
curl -X PATCH "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/schedules/<schedule_id>" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"enabled": false}'
DELETE/v1/orgs/{org}/datasets/{ds}/schedules/{schedule_id}admin+

delete a schedule

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
schedule_idstringrequired

Success response: Deleted

Response fields
NameTypeRequiredDescription
deletedbooleanrequired
DELETE /v1/orgs/{org}/datasets/{ds}/schedules/{schedule_id}
curl -X DELETE "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/schedules/<schedule_id>" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/datasets/{ds}/segmentsviewer+

the segments the active config declares

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired

Success response: a JSON object; see the fields below.

Response fields
NameTypeRequiredDescription
segmentsanyoptional
GET /v1/orgs/{org}/datasets/{ds}/segments
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/segments" \
  -H "Authorization: Bearer $ER_API_KEY"

Ingest

POST/v1/orgs/{org}/datasets/{ds}/extractsteward+

pull an sObject from Salesforce into this dataset

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired

Success response: a JSON object; see the fields below.

Response fields
NameTypeRequiredDescription
jobanyoptional
POST /v1/orgs/{org}/datasets/{ds}/extract
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/extract" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
GET/v1/orgs/{org}/datasets/{ds}/importsviewer+

ingest-batch receipts

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Query parameters
NameTypeRequiredDescription
cursorstringoptionalThe opaque `next_cursor` of the previous page; omit for the first page.
limitstringoptionalMaximum items to return; an integer, clamped to the endpoint's range when out of it.
sourcestringoptionalThe source system.

Success response: a JSON object; see the fields below.

Response fields
NameTypeRequiredDescription
itemsarray of anyrequired
next_cursorstring | nullrequired
GET /v1/orgs/{org}/datasets/{ds}/imports
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/imports" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/importssteward+

upload one source's delivery

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Query parameters
NameTypeRequiredDescription
sourcestringoptionalThe source system.
modestringoptional`upsert` (the default and only mode): rows add or replace by record key; nothing the file omits is deleted.

Success response: DeliveryAccepted

Response fields
NameTypeRequiredDescription
delivery_idstringrequired
jobJobrequired
POST /v1/orgs/{org}/datasets/{ds}/imports
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/imports" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/datasets/{ds}/imports/recentviewer+

the most recent ingest-batch receipts

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Query parameters
NameTypeRequiredDescription
limitstringoptionalMaximum items to return; an integer, clamped to the endpoint's range when out of it.
sourcestringoptionalThe source system.

Success response: ImportReceipt

GET /v1/orgs/{org}/datasets/{ds}/imports/recent
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/imports/recent" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/datasets/{ds}/recordsviewer+

standardized source records by `record_key`

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired

Success response: RecordsByKey

Response fields
NameTypeRequiredDescription
itemsarray of anyrequiredOne object per found record: `record_key` plus the dataset entity type's standardized columns, so the keys depend on that type.
snapshotintegerrequired
GET /v1/orgs/{org}/datasets/{ds}/records
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/records" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/records/deletesteward+

delete a record (spec 2.9)

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
apply_nowbooleanoptional
record_keystring | any | nulloptional
record_keysarray of stringoptional

Success response: StagedRecords or StagedRecordsApplied

POST /v1/orgs/{org}/datasets/{ds}/records/delete
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/records/delete" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
POST/v1/orgs/{org}/datasets/{ds}/records/ingeststeward+

push records as JSON

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
modestring | any | nulloptional
recordsarray of anyrequired
sourcestringrequired

Success response: DeliveryAccepted

Response fields
NameTypeRequiredDescription
delivery_idstringrequired
jobJobrequired
POST /v1/orgs/{org}/datasets/{ds}/records/ingest
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/records/ingest" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"records": [], "source": "<source>"}'
POST/v1/orgs/{org}/datasets/{ds}/records/protectsteward+

pin a record master for its entity

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
apply_nowbooleanoptional
record_keystring | any | nulloptional
record_keysarray of stringoptional

Success response: StagedRecords or StagedRecordsApplied

POST /v1/orgs/{org}/datasets/{ds}/records/protect
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/records/protect" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
POST/v1/orgs/{org}/datasets/{ds}/records/suppresssteward+

exclude a record from golden assembly

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
apply_nowbooleanoptional
record_keystring | any | nulloptional
record_keysarray of stringoptional

Success response: StagedRecords or StagedRecordsApplied

POST /v1/orgs/{org}/datasets/{ds}/records/suppress
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/records/suppress" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
POST/v1/orgs/{org}/datasets/{ds}/records/undeletesteward+

retract a record deletion

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
apply_nowbooleanoptional
record_keystring | any | nulloptional
record_keysarray of stringoptional

Success response: StagedRecords or StagedRecordsApplied

POST /v1/orgs/{org}/datasets/{ds}/records/undelete
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/records/undelete" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
POST/v1/orgs/{org}/datasets/{ds}/records/unmatchsteward+

unmatch a record from its current group

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
apply_nowbooleanoptional
record_keystringrequired

Success response: UnmatchStaged or UnmatchApplied

POST /v1/orgs/{org}/datasets/{ds}/records/unmatch
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/records/unmatch" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"record_key": "<record_key>"}'
POST/v1/orgs/{org}/datasets/{ds}/records/unprotectsteward+

retract a record protection

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
apply_nowbooleanoptional
record_keystring | any | nulloptional
record_keysarray of stringoptional

Success response: StagedRecords or StagedRecordsApplied

POST /v1/orgs/{org}/datasets/{ds}/records/unprotect
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/records/unprotect" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
POST/v1/orgs/{org}/datasets/{ds}/records/unsuppresssteward+

retract a record suppression

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
apply_nowbooleanoptional
record_keystring | any | nulloptional
record_keysarray of stringoptional

Success response: StagedRecords or StagedRecordsApplied

POST /v1/orgs/{org}/datasets/{ds}/records/unsuppress
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/records/unsuppress" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
POST/v1/orgs/{org}/datasets/{ds}/records/unverifysteward+

retract a verification

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
apply_nowbooleanoptional
attributestring | any | nulloptional
record_keystring | any | nulloptional
record_keysarray of stringoptional

Success response: StagedRecords or StagedRecordsApplied

POST /v1/orgs/{org}/datasets/{ds}/records/unverify
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/records/unverify" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
POST/v1/orgs/{org}/datasets/{ds}/records/verifysteward+

verify records or one cell of them (spec 2.9)

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
apply_nowbooleanoptional
attributestring | any | nulloptional
record_keystring | any | nulloptional
record_keysarray of stringoptional

Success response: StagedRecords or StagedRecordsApplied

POST /v1/orgs/{org}/datasets/{ds}/records/verify
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/records/verify" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
POST/v1/orgs/{org}/datasets/{ds}/uploadssteward+

open a resumable upload

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
bytesintegerrequired
sha256stringrequired
sourcestringrequired

Success response: a JSON object; see the fields below.

POST /v1/orgs/{org}/datasets/{ds}/uploads
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/uploads" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"bytes": 0, "sha256": "<sha256>", "source": "<source>"}'
GET/v1/orgs/{org}/datasets/{ds}/uploads/{upload_id}steward+

an upload's state

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
upload_idstringrequired

Success response: a JSON object; see the fields below.

GET /v1/orgs/{org}/datasets/{ds}/uploads/{upload_id}
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/uploads/<upload_id>" \
  -H "Authorization: Bearer $ER_API_KEY"
DELETE/v1/orgs/{org}/datasets/{ds}/uploads/{upload_id}steward+

abandon an upload and delete its parts

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
upload_idstringrequired

Success response: UploadAborted

Response fields
NameTypeRequiredDescription
statestringrequired
upload_idstringrequired
DELETE /v1/orgs/{org}/datasets/{ds}/uploads/{upload_id}
curl -X DELETE "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/uploads/<upload_id>" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/uploads/{upload_id}/completesteward+

finish an upload

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
upload_idstringrequired

Success response: DeliveryAccepted

Response fields
NameTypeRequiredDescription
delivery_idstringrequired
jobJobrequired
POST /v1/orgs/{org}/datasets/{ds}/uploads/{upload_id}/complete
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/uploads/<upload_id>/complete" \
  -H "Authorization: Bearer $ER_API_KEY"
PUT/v1/orgs/{org}/datasets/{ds}/uploads/{upload_id}/parts/{part}steward+

store one part

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
upload_idstringrequired
partstringrequired

Success response: UploadPart

Response fields
NameTypeRequiredDescription
bytesintegerrequired
partintegerrequired
sha256stringrequiredThe part's SHA-256 as received — compare with your copy.
PUT /v1/orgs/{org}/datasets/{ds}/uploads/{upload_id}/parts/{part}
curl -X PUT "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/uploads/<upload_id>/parts/<part>" \
  -H "Authorization: Bearer $ER_API_KEY"

Run and monitor

GET/v1/orgs/{org}/datasets/{ds}/blocking-estimateviewer+

what a run would cost before it runs

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Query parameters
NameTypeRequiredDescription
largeststringoptionalHow many of the largest blocks to report; an integer.

Success response: BlockingEstimate

Response fields
NameTypeRequiredDescription
candidate_pairsintegerrequiredWhat the declared rules actually generate: the number that decides the run's cost.
largest_blocksarray of LargestBlockEstimaterequired
per_rulearray of BlockingRuleEstimaterequired
total_possible_pairsintegerrequiredEvery pair the corpus could produce — what resolution would cost with no blocking at all.
GET /v1/orgs/{org}/datasets/{ds}/blocking-estimate
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/blocking-estimate" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/datasets/{ds}/data-qualityviewer+

data-quality scores over the org's lake

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Query parameters
NameTypeRequiredDescription
stale_daysstringoptionalA record not updated in this many days counts as stale; an integer.

Success response: DataQuality

Response fields
NameTypeRequiredDescription
completenessCompletenessrequired
dq_scorenumberrequiredThe mean of completeness and the complements of the three rates.
duplicate_ratenumberrequired
entitiesintegerrequired
junk_ratenumberrequired
recordsintegerrequired
snapshotintegerrequired
stale_daysintegerrequired
stale_ratenumberrequired
GET /v1/orgs/{org}/datasets/{ds}/data-quality
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/data-quality" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/datasets/{ds}/insightsviewer+

the resolution metrics over time

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Query parameters
NameTypeRequiredDescription
limitstringoptionalMaximum items to return; an integer, clamped to the endpoint's range when out of it.

Success response: InsightSeries

Response fields
NameTypeRequiredDescription
seriesarray of InsightPointrequired
snapshotintegerrequired
GET /v1/orgs/{org}/datasets/{ds}/insights
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/insights" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/datasets/{ds}/insights/sourcesviewer+

one run's per-source duplicate attribution

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Query parameters
NameTypeRequiredDescription
run_idstringoptionalThe run to report on; the newest when omitted.

Success response: SourceInsights

Response fields
NameTypeRequiredDescription
run_idstring | nulloptionalThe run reported on; null (with no sources) before any run retained one.
snapshotintegerrequired
sourcesarray of SourceInsightrequired
GET /v1/orgs/{org}/datasets/{ds}/insights/sources
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/insights/sources" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/datasets/{ds}/jobsviewer+

list an org's jobs, newest first

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Query parameters
NameTypeRequiredDescription
limitstringoptionalMaximum items to return; an integer, clamped to the endpoint's range when out of it.
statestringoptionalOnly items in this state.

Success response: JobList

Response fields
NameTypeRequiredDescription
jobsarray of Jobrequired
GET /v1/orgs/{org}/datasets/{ds}/jobs
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/jobs" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/jobssteward+

enqueue a job for an org

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
kindstringrequired
priorityintegeroptional
segmentstring | any | nulloptional

Success response: Job

Response fields
NameTypeRequiredDescription
attemptintegerrequiredAttempts made so far.
clear_numberinteger | nulloptionalIncremented by every clear; fences readiness verdicts composed before the clear. Read as COALESCE(clear_number, 0).
created_atstringrequiredWhen the job was enqueued.
created_bystring | nulloptionalPrincipal that created the job.
dataset_idstring | nulloptionalThe dataset this job runs against. NULL only for org-level kinds (provision) — every lake-touching job carries it, and the per-dataset writer lock keys on it once the queue is re-scoped.
error_classstring | nulloptionalWhy the job failed, as a class the UI can act on: precondition (an input is missing — expected during onboarding), transient_io (worth retrying), config (the tenant config is wrong), internal (a bug). Null until a failure.
error_detailstring | nulloptionalThe failure's human text, already chain-flattened. Kept beside error_class so a steward sees the reason without reading pod logs.
finished_atstring | nulloptionalWhen the job finished.
idstringrequiredThe job's unique id (UUIDv7, minted at enqueue).
idempotency_keystring | nulloptionalOptional dedup key, unique per org.
image_digeststring | nulloptionalImage digest the planning dispatcher ran, so a deploy mid-run is legible.
kindstringrequiredThe job kind (run_all, correct, maintain, train, ...).
max_attemptsintegerrequiredVestigial: no statement consults it. It bounded the job-level retry that went with the legacy in-process arm (#645); the live budget is task_instances.max_tries, per attempt.
not_beforestring | nulloptionalEarliest time the job may be claimed. A retry sets it to the backoff deadline.
org_idstringrequiredThe tenant this job runs for.
owner_epochstring | nulloptionalThe dispatcher process epoch that planned or adopted the run.
paramsanyrequiredKind-specific parameters.
policy_hashstring | nulloptionalsha256 over the compiled DAG's per-node policy (retries, backoff, timeout, class, segment); a divergence proceeds with the diff logged.
priorityintegerrequiredClaim priority; higher runs first.
resource_classstring | nulloptionalRequested runner resource class.
run_idstring | nulloptionalThe run this job produced, once dispatched.
schedule_idstring | nulloptionalThe schedule that enqueued the job, if any.
started_atstring | nulloptionalWhen the job started running.
statestringrequiredLifecycle state (queued, dispatching, running, succeeded, failed, canceling, canceled).
structural_fingerprintstring | nulloptionalsha256 over the compiled DAG's shape (names, versions, edges, trigger rules), written at planning; a clear or adoption refuses on mismatch (batch-orchestration-design §3.4).
trace_contextstring | nulloptionalPropagated trace context.
updated_atstringrequiredWhen the job row was last updated.
POST /v1/orgs/{org}/datasets/{ds}/jobs
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/jobs" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"kind": "<kind>"}'
GET/v1/orgs/{org}/datasets/{ds}/jobs/{job_id}viewer+

one job by id

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
job_idstringrequired

Success response: Job

Response fields
NameTypeRequiredDescription
attemptintegerrequiredAttempts made so far.
clear_numberinteger | nulloptionalIncremented by every clear; fences readiness verdicts composed before the clear. Read as COALESCE(clear_number, 0).
created_atstringrequiredWhen the job was enqueued.
created_bystring | nulloptionalPrincipal that created the job.
dataset_idstring | nulloptionalThe dataset this job runs against. NULL only for org-level kinds (provision) — every lake-touching job carries it, and the per-dataset writer lock keys on it once the queue is re-scoped.
error_classstring | nulloptionalWhy the job failed, as a class the UI can act on: precondition (an input is missing — expected during onboarding), transient_io (worth retrying), config (the tenant config is wrong), internal (a bug). Null until a failure.
error_detailstring | nulloptionalThe failure's human text, already chain-flattened. Kept beside error_class so a steward sees the reason without reading pod logs.
finished_atstring | nulloptionalWhen the job finished.
idstringrequiredThe job's unique id (UUIDv7, minted at enqueue).
idempotency_keystring | nulloptionalOptional dedup key, unique per org.
image_digeststring | nulloptionalImage digest the planning dispatcher ran, so a deploy mid-run is legible.
kindstringrequiredThe job kind (run_all, correct, maintain, train, ...).
max_attemptsintegerrequiredVestigial: no statement consults it. It bounded the job-level retry that went with the legacy in-process arm (#645); the live budget is task_instances.max_tries, per attempt.
not_beforestring | nulloptionalEarliest time the job may be claimed. A retry sets it to the backoff deadline.
org_idstringrequiredThe tenant this job runs for.
owner_epochstring | nulloptionalThe dispatcher process epoch that planned or adopted the run.
paramsanyrequiredKind-specific parameters.
policy_hashstring | nulloptionalsha256 over the compiled DAG's per-node policy (retries, backoff, timeout, class, segment); a divergence proceeds with the diff logged.
priorityintegerrequiredClaim priority; higher runs first.
resource_classstring | nulloptionalRequested runner resource class.
run_idstring | nulloptionalThe run this job produced, once dispatched.
schedule_idstring | nulloptionalThe schedule that enqueued the job, if any.
started_atstring | nulloptionalWhen the job started running.
statestringrequiredLifecycle state (queued, dispatching, running, succeeded, failed, canceling, canceled).
structural_fingerprintstring | nulloptionalsha256 over the compiled DAG's shape (names, versions, edges, trigger rules), written at planning; a clear or adoption refuses on mismatch (batch-orchestration-design §3.4).
trace_contextstring | nulloptionalPropagated trace context.
updated_atstringrequiredWhen the job row was last updated.
GET /v1/orgs/{org}/datasets/{ds}/jobs/{job_id}
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/jobs/<job_id>" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/jobs/{job_id}/cancelsteward+

cancel a job

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
job_idstringrequired

Success response: Job

Response fields
NameTypeRequiredDescription
attemptintegerrequiredAttempts made so far.
clear_numberinteger | nulloptionalIncremented by every clear; fences readiness verdicts composed before the clear. Read as COALESCE(clear_number, 0).
created_atstringrequiredWhen the job was enqueued.
created_bystring | nulloptionalPrincipal that created the job.
dataset_idstring | nulloptionalThe dataset this job runs against. NULL only for org-level kinds (provision) — every lake-touching job carries it, and the per-dataset writer lock keys on it once the queue is re-scoped.
error_classstring | nulloptionalWhy the job failed, as a class the UI can act on: precondition (an input is missing — expected during onboarding), transient_io (worth retrying), config (the tenant config is wrong), internal (a bug). Null until a failure.
error_detailstring | nulloptionalThe failure's human text, already chain-flattened. Kept beside error_class so a steward sees the reason without reading pod logs.
finished_atstring | nulloptionalWhen the job finished.
idstringrequiredThe job's unique id (UUIDv7, minted at enqueue).
idempotency_keystring | nulloptionalOptional dedup key, unique per org.
image_digeststring | nulloptionalImage digest the planning dispatcher ran, so a deploy mid-run is legible.
kindstringrequiredThe job kind (run_all, correct, maintain, train, ...).
max_attemptsintegerrequiredVestigial: no statement consults it. It bounded the job-level retry that went with the legacy in-process arm (#645); the live budget is task_instances.max_tries, per attempt.
not_beforestring | nulloptionalEarliest time the job may be claimed. A retry sets it to the backoff deadline.
org_idstringrequiredThe tenant this job runs for.
owner_epochstring | nulloptionalThe dispatcher process epoch that planned or adopted the run.
paramsanyrequiredKind-specific parameters.
policy_hashstring | nulloptionalsha256 over the compiled DAG's per-node policy (retries, backoff, timeout, class, segment); a divergence proceeds with the diff logged.
priorityintegerrequiredClaim priority; higher runs first.
resource_classstring | nulloptionalRequested runner resource class.
run_idstring | nulloptionalThe run this job produced, once dispatched.
schedule_idstring | nulloptionalThe schedule that enqueued the job, if any.
started_atstring | nulloptionalWhen the job started running.
statestringrequiredLifecycle state (queued, dispatching, running, succeeded, failed, canceling, canceled).
structural_fingerprintstring | nulloptionalsha256 over the compiled DAG's shape (names, versions, edges, trigger rules), written at planning; a clear or adoption refuses on mismatch (batch-orchestration-design §3.4).
trace_contextstring | nulloptionalPropagated trace context.
updated_atstringrequiredWhen the job row was last updated.
POST /v1/orgs/{org}/datasets/{ds}/jobs/{job_id}/cancel
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/jobs/<job_id>/cancel" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/jobs/{job_id}/resumesteward+

requeue a failed/canceled job

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
job_idstringrequired

Success response: ResumeAccepted

Response fields
NameTypeRequiredDescription
job_idstringrequired
statestringrequired
POST /v1/orgs/{org}/datasets/{ds}/jobs/{job_id}/resume
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/jobs/<job_id>/resume" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/datasets/{ds}/jobs/{job_id}/tasksviewer+

every try of every task of one job, in topological then try order, archived tries included

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
job_idstringrequired

Success response: TaskList

Response fields
NameTypeRequiredDescription
tasksarray of TaskInstancerequired
GET /v1/orgs/{org}/datasets/{ds}/jobs/{job_id}/tasks
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/jobs/<job_id>/tasks" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/jobs/{job_id}/tasks/{task_id}/clearsteward+

clear one task and everything downstream of it, so it re-runs WITHOUT re-running the whole job

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
job_idstringrequired
task_idstringrequired
Request body, optional
NameTypeRequiredDescription
resource_classstring | any | nulloptional
retriesinteger | any | nulloptional

Success response: ClearAccepted

Response fields
NameTypeRequiredDescription
clearedarray of stringrequired
demanded_upstreamarray of stringrequired
reopenedbooleanrequired
resetintegerrequired
restartingintegerrequired
rotatedintegerrequired
POST /v1/orgs/{org}/datasets/{ds}/jobs/{job_id}/tasks/{task_id}/clear
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/jobs/<job_id>/tasks/<task_id>/clear" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
GET/v1/orgs/{org}/datasets/{ds}/match-previewsteward+

a READ-ONLY score-only match preview (frontend §7.16, `GET /v1/orgs/{org}/datasets/{ds}/match-preview`)

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Query parameters
NameTypeRequiredDescription
limitstringoptionalMaximum items to return; an integer, clamped to the endpoint's range when out of it.

Success response: MatchPreviewView

Response fields
NameTypeRequiredDescription
samplearray of PreviewPairViewrequired
totalintegerrequired
would_auto_mergeintegerrequired
would_reviewintegerrequired
GET /v1/orgs/{org}/datasets/{ds}/match-preview
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/match-preview" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/datasets/{ds}/metricsviewer+

dashboard counters over the org's lake

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired

Success response: Metrics

Response fields
NameTypeRequiredDescription
duplicate_groupsintegerrequired
entitiesintegerrequired
open_reviewsintegerrequired
recordsintegerrequired
records_in_duplicate_groupsintegerrequired
snapshotintegerrequired
GET /v1/orgs/{org}/datasets/{ds}/metrics
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/metrics" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/datasets/{ds}/profileviewer+

a corpus stage's profile

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Query parameters
NameTypeRequiredDescription
sourcestringoptionalThe source system.
subjectstringoptionalThe corpus stage profiled.
tierstringoptionalProfile tier, 1 or 2; an integer (default 1).

Success response: Profile

GET /v1/orgs/{org}/datasets/{ds}/profile
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/profile" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/profilesteward+

profile a corpus stage

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired

Success response: a JSON object; see the fields below.

Response fields
NameTypeRequiredDescription
jobanyoptional
POST /v1/orgs/{org}/datasets/{ds}/profile
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/profile" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
GET/v1/orgs/{org}/datasets/{ds}/qualityviewer+

the corpus's data-quality picture

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Query parameters
NameTypeRequiredDescription
limitstringoptionalMaximum items to return; an integer, clamped to the endpoint's range when out of it.

Success response: Quality

GET /v1/orgs/{org}/datasets/{ds}/quality
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/quality" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/resumeadmin+

resume a suspended dataset

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired

Success response: a JSON object; see the fields below.

Response fields
NameTypeRequiredDescription
nameanyoptional
stateanyoptional
POST /v1/orgs/{org}/datasets/{ds}/resume
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/resume" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/datasets/{ds}/runsviewer+

the 20 most recent runs

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired

Success response: RunItem

GET /v1/orgs/{org}/datasets/{ds}/runs
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/runs" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/datasets/{ds}/runs/{run_id}/entity-eventsviewer+

one run's entity events

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
run_idstringrequired
Query parameters
NameTypeRequiredDescription
cursorstringoptionalThe opaque `next_cursor` of the previous page; omit for the first page.
event_typestringoptionalOnly events of this type.
limitstringoptionalMaximum items to return; an integer, clamped to the endpoint's range when out of it.

Success response: RunEventPage

Response fields
NameTypeRequiredDescription
itemsarray of RunEventItemrequired
next_cursorstring | nulloptional
run_idstringrequired
snapshotintegerrequired
GET /v1/orgs/{org}/datasets/{ds}/runs/{run_id}/entity-events
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/runs/<run_id>/entity-events" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/datasets/{ds}/stagedviewer+

how many steward actions await the next reconcile

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired

Success response: StagedCount

Response fields
NameTypeRequiredDescription
pending_countintegerrequired
GET /v1/orgs/{org}/datasets/{ds}/staged
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/staged" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/suspendadmin+

suspend an active dataset

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired

Success response: a JSON object; see the fields below.

Response fields
NameTypeRequiredDescription
nameanyoptional
stateanyoptional
POST /v1/orgs/{org}/datasets/{ds}/suspend
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/suspend" \
  -H "Authorization: Bearer $ER_API_KEY"

Results

GET/v1/orgs/{org}/datasets/{ds}/duplicatesviewer+

duplicate groups (entities with >=2 members)

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Query parameters
NameTypeRequiredDescription
cursorstringoptionalThe opaque `next_cursor` of the previous page; omit for the first page.
snapshotintegeroptionalRead at this lake snapshot rather than the latest — a run's `snapshot`, to read that run's results after a newer run (#1229). An expired snapshot is a 410, never a read of a different one.
exclude_tagstringoptionalExclude groups carrying this tag.
limitstringoptionalMaximum items to return; an integer, clamped to the endpoint's range when out of it.
matched_bystringoptionalOnly groups matched by this model version.
matched_onstringoptionalOnly groups whose evidence names this comparison column.
max_confidencestringoptionalUpper bound on group confidence (0–100); an integer.
max_membersstringoptionalUpper bound on group size; an integer.
memberstringoptionalJump to the group containing this record key.
min_confidencestringoptionalLower bound on group confidence (0–100); an integer.
min_membersstringoptionalLower bound on group size; an integer.
tagstringoptionalOnly groups carrying this tag.
verifiedstringoptional`true` or `false`: only (un)verified groups.
GET /v1/orgs/{org}/datasets/{ds}/duplicates
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/duplicates" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/entity-linkssteward+

link two entities WITHOUT merging them

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
child_entity_idstringrequired
kindstringrequired
notestring | any | nulloptional
parent_entity_idstringrequired

Success response: EntityLink

Response fields
NameTypeRequiredDescription
child_entity_idstringrequiredThe entity on the member side — the person in the household, the subsidiary.
created_atstringrequiredWhen the link was created.
created_bystringrequiredThe actor that created the link.
dataset_idstringrequiredThe dataset whose entities this link relates — entity ids are lake-local.
idstringrequiredThe link's unique id (UUIDv7, minted by the application).
kindstringrequiredWhat the relationship is. A closed set rather than free text because the whole value of a link is that something downstream can act on it, and an export or a rule cannot act on a spelling. `related` is the deliberate escape hatch for a real relationship that is neither of the other two — it says 'these are connected, do not merge them' without claiming to know how.
notestring | nulloptionalOptional free text — why this link exists, in the words of whoever made it.
org_idstringrequiredThe tenant. Every read is scoped by it.
originstringrequiredWhere the link came from. Kept apart for the reason `pair_labels.origin` is: a steward's judgement and a model's suggestion are different evidence, and a surface that cannot tell them apart will present a guess as a decision. `llm` has no producer until an adjudicator can propose a link; it is declared here because the column's accepted values are the contract that producer will be written against.
parent_entity_idstringrequiredThe entity on the owning side — the household, the parent company. Deliberately NOT a foreign key, for the reason `taggings.subject_id` gives: an entity lives in the LAKE and this table is Postgres, so a database-level reference would point at a row this store does not own. The id is stable across runs because reconcile carries ids forward by membership overlap (INV-PERM) rather than re-deriving them, and an entity that loses that contest records `merged_into` — so a link survives its entity gaining members, and a merged-away side is followable rather than dangling.
updated_atstringrequiredWhen it was last changed.
POST /v1/orgs/{org}/datasets/{ds}/entity-links
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/entity-links" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"child_entity_id": "<child_entity_id>", "kind": "<kind>", "parent_entity_id": "<parent_entity_id>"}'
POST/v1/orgs/{org}/datasets/{ds}/exportssteward+

export the dataset's golden records or duplicate groups at one pinned snapshot, as one CSV or JSON Lines artifact

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
formatstringrequired
kindstringrequired
snapshotinteger | any | nulloptional

Success response: a JSON object; see the fields below.

Response fields
NameTypeRequiredDescription
export_idanyoptional
snapshotanyoptional
stateanyoptional
POST /v1/orgs/{org}/datasets/{ds}/exports
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/exports" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"format": "<format>", "kind": "<kind>"}'
GET/v1/orgs/{org}/datasets/{ds}/exports/{export_id}viewer+

one export's state, row count and expiry

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
export_idstringrequired

Success response: a JSON object; see the fields below.

Response fields
NameTypeRequiredDescription
created_atanyoptional
error_classanyoptional
expires_atanyoptional
export_idanyoptional
finished_atanyoptional
formatanyoptional
kindanyoptional
rowsanyoptional
snapshotanyoptional
stateanyoptional
GET /v1/orgs/{org}/datasets/{ds}/exports/{export_id}
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/exports/<export_id>" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/datasets/{ds}/exports/{export_id}/downloadviewer+

download a finished export's artifact

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
export_idstringrequired

Success response: No JSON body.

GET /v1/orgs/{org}/datasets/{ds}/exports/{export_id}/download
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/exports/<export_id>/download" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/datasets/{ds}/golden-recordsviewer+

a keyset page of the org's golden (resolved) records

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Query parameters
NameTypeRequiredDescription
cursorstringoptionalThe opaque `next_cursor` of the previous page; omit for the first page.
limitstringoptionalMaximum items to return; an integer, clamped to the endpoint's range when out of it.
qstringoptionalFree-text search over the golden record.
snapshotintegeroptionalRead at this lake snapshot rather than the latest — a run's `snapshot`, to read that run's results after a newer run (#1229). An expired snapshot is a 410, never a read of a different one.

Success response: No JSON body.

GET /v1/orgs/{org}/datasets/{ds}/golden-records
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/golden-records" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/datasets/{ds}/golden-records/{entity_id}viewer+

one resolved entity with members/lineage/events

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
entity_idstringrequired
Query parameters
NameTypeRequiredDescription
snapshotintegeroptional

Success response: GoldenDetail

Response fields
NameTypeRequiredDescription
eventsarray of EntityEventItemrequired
goldenGoldenRowrequired
lineagearray of LineageItemrequired
membersarray of EntityMemberrequired
GET /v1/orgs/{org}/datasets/{ds}/golden-records/{entity_id}
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/golden-records/<entity_id>" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/golden-records/{entity_id}/unmergesteward+

split members out of a resolved entity

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
entity_idstringrequired
Request body
NameTypeRequiredDescription
apply_nowbooleanoptional
recordsarray of stringrequired

Success response: UnmergeStaged or UnmergeApplied

POST /v1/orgs/{org}/datasets/{ds}/golden-records/{entity_id}/unmerge
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/golden-records/<entity_id>/unmerge" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"records": []}'
GET/v1/orgs/{org}/datasets/{ds}/match-scoresviewer+

active pairwise match scores

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Query parameters
NameTypeRequiredDescription
band_highstringoptionalUpper bound on match probability (0–1); a number.
band_lowstringoptionalLower bound on match probability (0–1); a number.
cursorstringoptionalThe opaque `next_cursor` of the previous page; omit for the first page.
limitstringoptionalMaximum items to return; an integer, clamped to the endpoint's range when out of it.

Success response: MatchScoresPage

Response fields
NameTypeRequiredDescription
itemsarray of ScoredPairrequired
next_cursorstring | nulloptionalPass as `cursor` for the next page; null on the last page.
snapshotintegerrequiredThe lake snapshot every page of this walk reads; the cursor pins it.
GET /v1/orgs/{org}/datasets/{ds}/match-scores
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/match-scores" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/datasets/{ds}/merge-plansviewer+

merge plans for entities touched by a merge/member-add

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Query parameters
NameTypeRequiredDescription
formatstringoptional`csv` for a text/csv export; JSON otherwise.
limitstringoptionalMaximum items to return; an integer, clamped to the endpoint's range when out of it.
policystringoptionalThe master-election policy (default `most_attributes`).
sincestringoptionalInclusive lower bound on the timestamp (any form `timestamptz` accepts).

Success response: MergePlanList

Response fields
NameTypeRequiredDescription
itemsarray of MergePlanrequired
GET /v1/orgs/{org}/datasets/{ds}/merge-plans
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/merge-plans" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/resolveviewer+

resolve an UNSAVED record against the corpus

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
limitinteger | any | nulloptional
recordanyrequired
sourcestringrequired

Success response: ResolveResult

Response fields
NameTypeRequiredDescription
candidatesarray of ResolveCandidaterequired
decisionstringrequiredThe single value a form or an ingestion pipeline branches on: the best candidate's band (`auto_merge` / `review`), `reject` when there are none, or `ambiguous` when candidates in two or more different entities each clear `auto_merge` — the record would merge into either, so no one entity is the answer and a person should decide.
snapshotintegerrequiredThe lake snapshot the corpus was read at, so a caller can tell whether it resolved against fresh data.
POST /v1/orgs/{org}/datasets/{ds}/resolve
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/resolve" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"record": {}, "source": "<source>"}'

Review and correct

GET/v1/orgs/{org}/datasets/{ds}/assertionsviewer+

the assertion ledger

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Query parameters
NameTypeRequiredDescription
cursorstringoptionalThe opaque `next_cursor` of the previous page; omit for the first page.
include_retractedstringoptional`true` to include retracted assertions.
limitstringoptionalMaximum items to return; an integer, clamped to the endpoint's range when out of it.

Success response: a JSON object; see the fields below.

Response fields
NameTypeRequiredDescription
itemsarray of anyrequired
next_cursorstring | nullrequired
GET /v1/orgs/{org}/datasets/{ds}/assertions
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/assertions" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/assertionssteward+

stage an always/never assertion on a pair

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
astringrequired
apply_nowbooleanoptional
bstringrequired
kindstringrequired
notestring | any | nulloptional

Success response: Staged or StagedApplied

POST /v1/orgs/{org}/datasets/{ds}/assertions
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/assertions" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"a": "<a>", "b": "<b>", "kind": "<kind>"}'
DELETE/v1/orgs/{org}/datasets/{ds}/assertions/{assertion_id}steward+

stage an assertion retraction

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
assertion_idstringrequired

Success response: Staged

Response fields
NameTypeRequiredDescription
action_idstringrequired
pending_until_next_reconcilebooleanrequiredAlways false: the correction lands on the next apply, not the next run.
statusstringrequiredAlways `staged`.
DELETE /v1/orgs/{org}/datasets/{ds}/assertions/{assertion_id}
curl -X DELETE "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/assertions/<assertion_id>" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/datasets/{ds}/assertions/contradictionsviewer+

the unsatisfiable rule sets

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired

Success response: ContradictionList

Response fields
NameTypeRequiredDescription
contradictionsarray of ContradictionItemrequired
GET /v1/orgs/{org}/datasets/{ds}/assertions/contradictions
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/assertions/contradictions" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/datasets/{ds}/labeling/nextviewer+

what to label next

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Query parameters
NameTypeRequiredDescription
limitstringoptionalMaximum items to return; an integer, clamped to the endpoint's range when out of it.
maxstringoptionalUpper bound on the probability band (0–1); a number.
minstringoptionalLower bound on the probability band (0–1); a number, not below the review floor.

Success response: LabelingQueue

Response fields
NameTypeRequiredDescription
bandLabelBandrequired
coverageLabelCoveragerequired
itemsarray of UncertainPairrequired
snapshotintegerrequired
thresholdnumberrequiredThe `auto_merge` threshold the pairs are ordered around.
GET /v1/orgs/{org}/datasets/{ds}/labeling/next
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/labeling/next" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/datasets/{ds}/labelsviewer+

the labels a tenant has recorded

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Query parameters
NameTypeRequiredDescription
limitstringoptionalMaximum items to return; an integer, clamped to the endpoint's range when out of it.
originstringoptionalOnly labels from this origin (`human`, `reviewer`, `llm`).
verdictstringoptionalOnly labels with this verdict (`match`, `no_match`).

Success response: LabelList

Response fields
NameTypeRequiredDescription
labelsarray of PairLabelrequired
GET /v1/orgs/{org}/datasets/{ds}/labels
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/labels" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/labelssteward+

record a verdict on a pair

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
model_versionstring | any | nulloptional
notestring | any | nulloptional
rec_a_keystringrequired
rec_b_keystringrequired
score_at_labelnumber | any | nulloptional
verdictstringrequired

Success response: PairLabel

Response fields
NameTypeRequiredDescription
created_atstringrequiredWhen the verdict was first recorded.
dataset_idstringrequiredThe dataset whose record pair this verdict is about — record keys are lake-local.
idstringrequiredUUIDv7, minted by the application.
labeled_bystringrequiredThe actor that recorded the verdict.
model_versionstring | nulloptionalThe model whose score prompted this label, when there was one. Null for a label recorded without a score in front of it.
notestring | nulloptionalOptional free text from the labeller.
org_idstringrequiredThe tenant whose corpus the pair belongs to; every read is scoped by it.
originstringrequiredWhere the verdict came from. `human` is an explicit labelling session; `reviewer` is implicit feedback from resolving a review item; `llm` is a model's suggestion. Kept apart so training can weight or exclude a source, and so an accuracy number can say whose labels it was measured against.
rec_a_keystringrequiredThe pair's lower record key, canonical order — the same ordering match_scores uses, so a label and a score describe the same pair.
rec_b_keystringrequiredThe pair's higher record key, canonical order.
score_at_labelnumber | nulloptionalThe match probability shown to the labeller, so a later accuracy pass can tell what the model thought at the time rather than what it thinks now.
updated_atstringrequiredWhen it was last corrected.
verdictstringrequiredWhether these two records are the same entity. Deliberately binary: a labeller who is unsure should skip rather than guess, because a guessed label trains the model on noise and is indistinguishable afterwards from a confident one.
POST /v1/orgs/{org}/datasets/{ds}/labels
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/labels" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"rec_a_key": "<rec_a_key>", "rec_b_key": "<rec_b_key>", "verdict": "<verdict>"}'
POST/v1/orgs/{org}/datasets/{ds}/mass-updatesteward+

stage golden field overrides across many entities in one window

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
apply_nowbooleanoptional
itemsarray of objectrequired

Success response: StagedBatch or StagedBatchApplied

POST /v1/orgs/{org}/datasets/{ds}/mass-update
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/mass-update" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"items": []}'
POST/v1/orgs/{org}/datasets/{ds}/mergessteward+

merge a GROUP of records from the review dialog

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
apply_nowbooleanoptional
masterstringrequired
overridesarray of objectoptional
recordsarray of stringrequired
review_idstring | any | nulloptional

Success response: StagedBatch or StagedBatchApplied

POST /v1/orgs/{org}/datasets/{ds}/merges
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/merges" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"master": "<master>", "records": []}'
GET/v1/orgs/{org}/datasets/{ds}/reviewsviewer+

the open-review queue

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Query parameters
NameTypeRequiredDescription
cursorstringoptionalThe opaque `next_cursor` of the previous page; omit for the first page.
limitstringoptionalMaximum items to return; an integer, clamped to the endpoint's range when out of it.
max_probabilitystringoptionalUpper bound on match probability (0–1); a number.
min_probabilitystringoptionalLower bound on match probability (0–1); a number.
reasonstringoptionalOnly reviews escalated for this reason.
statusstringoptionalOnly reviews in this status.

Success response: ReviewPage

Response fields
NameTypeRequiredDescription
itemsarray of ReviewItemrequired
next_cursorstring | nulloptional
snapshotintegerrequired
unscored_hiddenintegerrequiredOpen unscored escalations a probability band hid (0 with no band).
GET /v1/orgs/{org}/datasets/{ds}/reviews
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/reviews" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/datasets/{ds}/reviews/{review_id}viewer+

one review by id

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
review_idstringrequired

Success response: ReviewItem

Response fields
NameTypeRequiredDescription
confidenceinteger | nulloptionalThe display integer of `match_probability`; absent when it is null.
entity_idstring | nulloptional
first_seen_run_idstringrequired
idstringrequired
last_seen_run_idstringrequired
match_probabilitynumber | nulloptionalNull for a structural escalation, which is not a scored pair.
reasonstringrequired
rec_a_keystring | nulloptional
rec_b_keystring | nulloptional
resolved_atstring | nulloptionalNaive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339.
resolved_bystring | nulloptional
statusstringrequired
subject_typestringrequired`pair` for a record-pair review, `entity` for an entity-subject one.
waterfallanyoptional
GET /v1/orgs/{org}/datasets/{ds}/reviews/{review_id}
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/reviews/<review_id>" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/datasets/{ds}/reviews/{review_id}/merge-groupviewer+

the review merge dialog's group

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
review_idstringrequired

Success response: ReviewMergeGroup

Response fields
NameTypeRequiredDescription
itemsarray of anyrequiredRecords-by-key items (each record's values, keyed by the dataset's entity type), each stamped with the `entity_id` it belongs to.
snapshotintegerrequired
totalintegerrequiredThe union's size before the key cap truncated `items`.
GET /v1/orgs/{org}/datasets/{ds}/reviews/{review_id}/merge-group
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/reviews/<review_id>/merge-group" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/reviews/{review_id}/resolvesteward+

stage a review resolution

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
review_idstringrequired
Request body
NameTypeRequiredDescription
resolutionstringrequired

Success response: Staged

Response fields
NameTypeRequiredDescription
action_idstringrequired
pending_until_next_reconcilebooleanrequiredAlways false: the correction lands on the next apply, not the next run.
statusstringrequiredAlways `staged`.
POST /v1/orgs/{org}/datasets/{ds}/reviews/{review_id}/resolve
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/reviews/<review_id>/resolve" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"resolution": "<resolution>"}'
POST/v1/orgs/{org}/datasets/{ds}/reviews/bulk-resolvesteward+

stage many review resolutions in one window

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
apply_nowbooleanoptional
itemsarray of objectrequired

Success response: StagedBatch or StagedBatchApplied

POST /v1/orgs/{org}/datasets/{ds}/reviews/bulk-resolve
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/reviews/bulk-resolve" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"items": []}'
GET/v1/orgs/{org}/datasets/{ds}/taggingsviewer+

every tagging of one subject kind in one dataset

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Query parameters
NameTypeRequiredDescription
subject_typestringoptionalThe subject kind (`entity`, `record`, …).

Success response: TaggingList

Response fields
NameTypeRequiredDescription
taggingsarray of Taggingrequired
truncatedbooleanrequiredTrue when the cap cut the list: the caller has not seen every tagging.
GET /v1/orgs/{org}/datasets/{ds}/taggings
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/taggings" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/tags/{tag_id}/applysteward+

apply or remove a tag

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
tag_idstringrequired
Request body
NameTypeRequiredDescription
subject_idstringrequired
subject_typestringrequired

Success response: TagApplied or TagRemoved

POST /v1/orgs/{org}/datasets/{ds}/tags/{tag_id}/apply
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/tags/<tag_id>/apply" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"subject_id": "<subject_id>", "subject_type": "<subject_type>"}'
GET/v1/orgs/{org}/datasets/{ds}/tags/{tag_id}/subjectsviewer+

what carries a tag

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
tag_idstringrequired
Query parameters
NameTypeRequiredDescription
limitstringoptionalMaximum items to return; an integer, clamped to the endpoint's range when out of it.
subject_typestringoptionalThe subject kind (`entity`, `record`, …).

Success response: TagSubjects

Response fields
NameTypeRequiredDescription
subjectsarray of Taggingrequired
GET /v1/orgs/{org}/datasets/{ds}/tags/{tag_id}/subjects
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/tags/<tag_id>/subjects" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/tags/{tag_id}/unapplysteward+

remove a tag from a subject

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
tag_idstringrequired
Request body
NameTypeRequiredDescription
subject_idstringrequired
subject_typestringrequired

Success response: TagApplied or TagRemoved

POST /v1/orgs/{org}/datasets/{ds}/tags/{tag_id}/unapply
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/tags/<tag_id>/unapply" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"subject_id": "<subject_id>", "subject_type": "<subject_type>"}'
GET/v1/orgs/{org}/tagsviewer+

the tenant's tag vocabulary, or the tags on one subject

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
Query parameters
NameTypeRequiredDescription
subject_idstringoptionalWith `subject_type`: only tags applied to this subject.
subject_typestringoptionalThe subject kind (`entity`, `record`, …).

Success response: TagList

Response fields
NameTypeRequiredDescription
tagsarray of Tagrequired
GET /v1/orgs/{org}/tags
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/tags" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/tagssteward+

add a label to the vocabulary

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
Request body
NameTypeRequiredDescription
apply_min_rolestring | any | nulloptional
descriptionstring | any | nulloptional
namestringrequired

Success response: Tag

Response fields
NameTypeRequiredDescription
activebooleanrequiredWhether the tag is in use. Retiring is a soft delete: `taggings` references this row, every foreign key in this schema is NO ACTION, and a hard DELETE would therefore fail for exactly the tags that had been used — which is the bug D11 found in webhooks. Keeping the row also keeps the history legible: what a group was once marked as is part of why it was handled the way it was.
apply_min_rolestring | nulloptionalThe minimum role allowed to apply or unapply this tag. Null means the route default (steward). Finer than the route's role check because a tag can name a decision only an admin should be able to mark — the spec's per-tag permission.
created_atstringrequiredWhen the tag was created.
created_bystringrequiredThe actor that created the tag.
descriptionstring | nulloptionalWhat the tag means, for the steward who inherits it. Null when nobody wrote one.
idstringrequiredThe tag's unique id (UUIDv7, minted by the application).
kindstringrequiredWho the tag belongs to. `user` is the steward's vocabulary; `system` is reserved for tags the platform itself writes (merge, manual_merge, unmatch, link, split) — a system tag cannot be retired through the API, and its name cannot be taken by a user tag, so the two vocabularies can never collide.
namestringrequiredThe label a steward sees and types. Unique per tenant among active tags, because two tags with one name make a filter ambiguous and a bulk action unsafe.
org_idstringrequiredThe tenant that owns the tag. A tag is never shared across tenants: it names one tenant's own workflow.
updated_atstringrequiredWall-clock last-write time.
POST /v1/orgs/{org}/tags
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/tags" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "<name>"}'
DELETE/v1/orgs/{org}/tags/{tag_id}admin+

retire a tag

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
tag_idstringrequired

Success response: TagRetired

Response fields
NameTypeRequiredDescription
retiredbooleanrequired
DELETE /v1/orgs/{org}/tags/{tag_id}
curl -X DELETE "$ER_API_ORIGIN/v1/orgs/$ER_ORG/tags/<tag_id>" \
  -H "Authorization: Bearer $ER_API_KEY"

Salesforce writeback

GET/v1/orgs/{org}/datasets/{ds}/lead-conversionsviewer+

a dataset's Lead conversion proposals

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Query parameters
NameTypeRequiredDescription
statusstringoptionalOnly previews in this state.
cursorstringoptionalThe `next_cursor` of the previous page.
limitstringoptionalMaximum items, 1–200; default 50.

Success response: LeadConversionPage

Response fields
NameTypeRequiredDescription
itemsarray of LeadConversionViewrequired
next_cursorstring | nulloptionalPass as `cursor` for the next page; null on the last.
GET /v1/orgs/{org}/datasets/{ds}/lead-conversions
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/lead-conversions" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/lead-conversions/applyadmin+

convert the dataset's approved Leads in Salesforce

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired

Success response: MergesApplying

Response fields
NameTypeRequiredDescription
job_idstringrequired
statestringrequired
POST /v1/orgs/{org}/datasets/{ds}/lead-conversions/apply
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/lead-conversions/apply" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/lead-conversions/decidesteward+

approve or reject Lead conversions

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
decisionstringrequired
itemsarray of objectrequired
reasonstring | any | nulloptional

Success response: BatchDecisionOut

Response fields
NameTypeRequiredDescription
resultsarray of BatchDecisionResultrequired
POST /v1/orgs/{org}/datasets/{ds}/lead-conversions/decide
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/lead-conversions/decide" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"decision": "<decision>", "items": []}'
GET/v1/orgs/{org}/datasets/{ds}/merge-previewsviewer+

a page of merge previews

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Query parameters
NameTypeRequiredDescription
statusstringoptionalOnly previews in this state.
cursorstringoptionalThe `next_cursor` of the previous page.
limitstringoptionalMaximum items, 1–200; default 50.

Success response: MergePreviewPage

Response fields
NameTypeRequiredDescription
itemsarray of MergePreviewSummaryrequired
next_cursorstring | nulloptionalPass as `cursor` for the next page; null on the last.
GET /v1/orgs/{org}/datasets/{ds}/merge-previews
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/merge-previews" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/datasets/{ds}/merge-previews/{preview_id}viewer+

one merge preview in full, with its history

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
preview_idstringrequired

Success response: MergePreviewDetail

Response fields
NameTypeRequiredDescription
applyMergeApplyView | any | nulloptional
decided_bystring | nulloptional
decision_reasonstring | nulloptional
field_changesanyrequiredProvider field → `{before, after}` on the master.
historyarray of MergePreviewEventrequired
proposalanyrequiredThe members' synchronized preimages, the master and the policy inputs (the persisted proposal).
related_countsanyoptionalRelated-record counts per member; null while `related_counts_state` is `unavailable`.
related_counts_statestringrequired
summaryMergePreviewSummaryrequired
GET /v1/orgs/{org}/datasets/{ds}/merge-previews/{preview_id}
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/merge-previews/<preview_id>" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/merge-previews/{preview_id}/approvesteward+

approve a merge preview

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
preview_idstringrequired
Request body
NameTypeRequiredDescription
fingerprintstringrequired
reasonstring | any | nulloptional

Success response: MergePreviewSummary

Response fields
NameTypeRequiredDescription
connection_idstringrequired
created_atstringrequiredRFC 3339.
decided_bystring | nulloptionalWho decided it — a principal, or `policy:<rule id>` for an auto-approval.
entity_idstringrequired
fingerprintstringrequiredName it to approve or reject.
idstringrequired
lake_snapshotintegerrequired
master_record_keystringrequired
member_countintegerrequired
objectstringrequired
policy_revisionstringrequiredThe writeback policy revision it was built under.
scorenumber | nulloptionalMatch evidence: for each victim, its strongest scored edge to another member, then the weakest of those. Null when absent.
statusstringrequired`planned`, `approved`, `rejected` or `superseded`.
POST /v1/orgs/{org}/datasets/{ds}/merge-previews/{preview_id}/approve
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/merge-previews/<preview_id>/approve" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"fingerprint": "<fingerprint>"}'
POST/v1/orgs/{org}/datasets/{ds}/merge-previews/{preview_id}/rejectsteward+

reject a merge preview

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
preview_idstringrequired
Request body
NameTypeRequiredDescription
fingerprintstringrequired
reasonstring | any | nulloptional

Success response: MergePreviewSummary

Response fields
NameTypeRequiredDescription
connection_idstringrequired
created_atstringrequiredRFC 3339.
decided_bystring | nulloptionalWho decided it — a principal, or `policy:<rule id>` for an auto-approval.
entity_idstringrequired
fingerprintstringrequiredName it to approve or reject.
idstringrequired
lake_snapshotintegerrequired
master_record_keystringrequired
member_countintegerrequired
objectstringrequired
policy_revisionstringrequiredThe writeback policy revision it was built under.
scorenumber | nulloptionalMatch evidence: for each victim, its strongest scored edge to another member, then the weakest of those. Null when absent.
statusstringrequired`planned`, `approved`, `rejected` or `superseded`.
POST /v1/orgs/{org}/datasets/{ds}/merge-previews/{preview_id}/reject
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/merge-previews/<preview_id>/reject" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"fingerprint": "<fingerprint>"}'
GET/v1/orgs/{org}/datasets/{ds}/merge-previews/{preview_id}/restoreviewer+

an applied merge's undo, its steps and conflicts

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
preview_idstringrequired

Success response: a JSON object; see the fields below.

GET /v1/orgs/{org}/datasets/{ds}/merge-previews/{preview_id}/restore
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/merge-previews/<preview_id>/restore" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/merge-previews/{preview_id}/restoreadmin+

undo an applied merge

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
preview_idstringrequired

Success response: a JSON object; see the fields below.

POST /v1/orgs/{org}/datasets/{ds}/merge-previews/{preview_id}/restore
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/merge-previews/<preview_id>/restore" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/merge-previews/applyadmin+

apply the dataset's APPROVED merge previews to Salesforce

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired

Success response: MergesApplying

Response fields
NameTypeRequiredDescription
job_idstringrequired
statestringrequired
POST /v1/orgs/{org}/datasets/{ds}/merge-previews/apply
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/merge-previews/apply" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/merge-previews/decidesteward+

approve or reject several merge previews at once

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
decisionstringrequired
itemsarray of objectrequired
reasonstring | any | nulloptional
POST /v1/orgs/{org}/datasets/{ds}/merge-previews/decide
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/merge-previews/decide" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"decision": "<decision>", "items": []}'
POST/v1/orgs/{org}/datasets/{ds}/merge-previews/generatesteward+

build merge previews from the dataset's latest results

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired

Success response: PreviewsGenerating

Response fields
NameTypeRequiredDescription
job_idstringrequired
statestringrequired
POST /v1/orgs/{org}/datasets/{ds}/merge-previews/generate
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/merge-previews/generate" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/datasets/{ds}/upsert-previewsviewer+

a dataset's upsert previews

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Query parameters
NameTypeRequiredDescription
statusstringoptionalOnly previews in this state.
cursorstringoptionalThe `next_cursor` of the previous page.
limitstringoptionalMaximum items, 1–200; default 50.

Success response: UpsertPreviewPage

Response fields
NameTypeRequiredDescription
itemsarray of UpsertPreviewViewrequired
next_cursorstring | nulloptionalPass as `cursor` for the next page; null on the last.
GET /v1/orgs/{org}/datasets/{ds}/upsert-previews
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/upsert-previews" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/upsert-previews/applyadmin+

apply the dataset's approved upserts to Salesforce

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired

Success response: MergesApplying

Response fields
NameTypeRequiredDescription
job_idstringrequired
statestringrequired
POST /v1/orgs/{org}/datasets/{ds}/upsert-previews/apply
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/upsert-previews/apply" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/datasets/{ds}/upsert-previews/decidesteward+

approve or reject upserts

Bearer key with at least the steward role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
decisionstringrequired
itemsarray of objectrequired
reasonstring | any | nulloptional

Success response: BatchDecisionOut

Response fields
NameTypeRequiredDescription
resultsarray of BatchDecisionResultrequired
POST /v1/orgs/{org}/datasets/{ds}/upsert-previews/decide
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/upsert-previews/decide" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"decision": "<decision>", "items": []}'
GET/v1/orgs/{org}/datasets/{ds}/writeback/auto-approvalviewer+

the auto-approval rules in force

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired

Success response: AutoApprovalList

Response fields
NameTypeRequiredDescription
itemsarray of AutoApprovalViewrequired
GET /v1/orgs/{org}/datasets/{ds}/writeback/auto-approval
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/writeback/auto-approval" \
  -H "Authorization: Bearer $ER_API_KEY"
PUT/v1/orgs/{org}/datasets/{ds}/writeback/auto-approvaladmin+

set the auto-approval rule for one connection's object

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
connection_idstringrequired
enabledbooleanrequired
max_membersintegerrequired
min_scorenumberrequired
objectstringrequired

Success response: AutoApprovalView

Response fields
NameTypeRequiredDescription
connection_idstringrequired
created_atstringrequiredRFC 3339.
created_bystringrequired
enabledbooleanrequired
idstringrequiredThe revision; auto-approved previews name it as `policy:<id>`.
max_membersintegerrequired
min_scorenumberrequired
objectstringrequired
PUT /v1/orgs/{org}/datasets/{ds}/writeback/auto-approval
curl -X PUT "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/writeback/auto-approval" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"connection_id": "<connection_id>", "enabled": false, "max_members": 0, "min_score": 0, "object": "<object>"}'
GET/v1/orgs/{org}/datasets/{ds}/writeback/policiesviewer+

a dataset's active writeback policies

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired

Success response: WritebackPolicyList

Response fields
NameTypeRequiredDescription
itemsarray of WritebackPolicyViewrequired
GET /v1/orgs/{org}/datasets/{ds}/writeback/policies
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/writeback/policies" \
  -H "Authorization: Bearer $ER_API_KEY"
PUT/v1/orgs/{org}/datasets/{ds}/writeback/policiesadmin+

set the writeback policy for one connection's object

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
connection_idstringrequired
election_policystring | any | nulloptional
field_mappingmap of stringrequired
objectstringrequired
writeback_allowlistarray of stringrequired

Success response: WritebackPolicyView

Response fields
NameTypeRequiredDescription
connection_idstringrequired
created_atstringrequiredRFC 3339.
created_bystringrequired
election_policystringrequired
field_mappinganyrequired
idstringrequiredThe revision id a merge preview binds.
objectstringrequired
writeback_allowlistanyrequired
PUT /v1/orgs/{org}/datasets/{ds}/writeback/policies
curl -X PUT "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/writeback/policies" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"connection_id": "<connection_id>", "field_mapping": {}, "object": "<object>", "writeback_allowlist": []}'
GET/v1/orgs/{org}/datasets/{ds}/writeback/upsert-policiesviewer+

the upsert policies in force

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired

Success response: UpsertPolicyList

Response fields
NameTypeRequiredDescription
itemsarray of UpsertPolicyViewrequired
GET /v1/orgs/{org}/datasets/{ds}/writeback/upsert-policies
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/writeback/upsert-policies" \
  -H "Authorization: Bearer $ER_API_KEY"
PUT/v1/orgs/{org}/datasets/{ds}/writeback/upsert-policiesadmin+

set the upsert policy for one connection's object

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
dsstringrequired
Request body
NameTypeRequiredDescription
connection_idstringrequired
external_id_fieldstringrequired
field_mappingmap of stringrequired
objectstringrequired
sourcesarray of stringrequired
writeback_allowlistarray of stringrequired

Success response: UpsertPolicyView

Response fields
NameTypeRequiredDescription
connection_idstringrequired
created_atstringrequiredRFC 3339.
created_bystringrequired
external_id_fieldstringrequired
field_mappingobjectrequired
idstringrequiredThe revision an upsert preview binds.
objectstringrequired
sourcesarray of stringrequired
writeback_allowlistarray of stringrequired
PUT /v1/orgs/{org}/datasets/{ds}/writeback/upsert-policies
curl -X PUT "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/writeback/upsert-policies" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"connection_id": "<connection_id>", "external_id_field": "<external_id_field>", "field_mapping": {}, "object": "<object>", "sources": [], "writeback_allowlist": []}'

Webhooks

GET/v1/orgs/{org}/webhooksviewer+

list an org's active webhooks

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired

Success response: WebhookItem

GET /v1/orgs/{org}/webhooks
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/webhooks" \
  -H "Authorization: Bearer $ER_API_KEY"
POST/v1/orgs/{org}/webhooksadmin+

register an outbound webhook

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
Request body
NameTypeRequiredDescription
eventsarray of stringoptional
secretstring | any | nulloptional
urlstringrequired

Success response: WebhookCreated

Response fields
NameTypeRequiredDescription
activebooleanrequiredAlways true.
eventsarray of stringrequired
idstringrequired
secretstringrequiredThe HMAC-SHA256 key for `X-ER-Signature`; not returned again.
urlstringrequired
POST /v1/orgs/{org}/webhooks
curl -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/webhooks" \
  -H "Authorization: Bearer $ER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "<url>"}'
DELETE/v1/orgs/{org}/webhooks/{webhook_id}admin+

delete a webhook

Bearer key with at least the admin role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
webhook_idstringrequired

Success response: Deleted

Response fields
NameTypeRequiredDescription
deletedbooleanrequired
DELETE /v1/orgs/{org}/webhooks/{webhook_id}
curl -X DELETE "$ER_API_ORIGIN/v1/orgs/$ER_ORG/webhooks/<webhook_id>" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/webhooks/deliveriesviewer+

the delivery log

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired
Query parameters
NameTypeRequiredDescription
webhook_idstringoptional
statestringoptional
limitintegeroptional

Success response: WebhookDeliveryList

Response fields
NameTypeRequiredDescription
deliveriesarray of WebhookDeliveryrequired
GET /v1/orgs/{org}/webhooks/deliveries
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/webhooks/deliveries" \
  -H "Authorization: Bearer $ER_API_KEY"
GET/v1/orgs/{org}/webhooks/eventsviewer+

the event types this system can emit

Bearer key with at least the viewer role, scoped to the organization in the path.

Path parameters
NameTypeRequiredDescription
orgstringrequired

Success response: WebhookEventCatalog

Response fields
NameTypeRequiredDescription
eventsarray of WebhookEventItemrequired
GET /v1/orgs/{org}/webhooks/events
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/webhooks/events" \
  -H "Authorization: Bearer $ER_API_KEY"

Service and other

GET/healthzpublic

liveness

No credential required.

Success response: a JSON object; see the fields below.

Response fields
NameTypeRequiredDescription
statusanyoptional
GET /healthz
curl -X GET "$ER_API_ORIGIN/healthz"
GET/readyzpublic

readiness

No credential required.

Success response: a JSON object; see the fields below.

Response fields
NameTypeRequiredDescription
readyanyoptional
reasonanyoptional
storeanyoptional
GET /readyz
curl -X GET "$ER_API_ORIGIN/readyz"

Schemas

Every component the operations above name, generated from the server's response types and entity definitions.

AccountDuplicateGroup
AccountDuplicateGroup fields
NameTypeRequiredDescription
company_namestring | nulloptionalThe golden record's company name, when assembled.
domainstring | nulloptionalThe golden record's domain, when assembled.
entity_idstringrequiredThe resolved entity.
group_confidenceinteger | nulloptionalThe group's confidence (0–100), or null when no member edge is scored.
master_record_keystring | nulloptionalThe strongest-attached member, or null when the group is unscored.
matched_fieldsarray of stringrequiredThe comparison fields any within-group edge matched on.
member_confidencesmap of integerrequiredEach scored member's attachment confidence (0–100), by member key.
member_countintegerrequiredHow many source records resolved to it.
membersarray of stringrequiredThe member records, as `<source_system>:<source_record_id>`, ordered.
model_versionsarray of stringrequiredThe model versions whose scores link the group, deduplicated.
verifiedbooleanrequiredWhether a steward asserted or verified the group.
AccountDuplicatesPage
AccountDuplicatesPage fields
NameTypeRequiredDescription
itemsarray of AccountDuplicateGrouprequired
next_cursorstring | nulloptionalPass as `cursor` for the next page; null on the last page.
snapshotintegerrequiredThe lake snapshot every page of this walk reads; the cursor pins it.
AccountGolden
AccountGolden fields
NameTypeRequiredDescription
addr_citystring | nulloptional
addr_postalstring | nulloptional
addr_regionstring | nulloptional
addr_streetstring | nulloptional
company_namestring | nulloptional
domainstring | nulloptional
idstringrequired
metadataanyoptional
phone_e164string | nulloptional
survivorship_versionstringrequired
AcctGoldenLineage
AcctGoldenLineage fields
NameTypeRequiredDescription
attributestringrequiredThe survivable attribute decided (e.g. company_name, domain, address).
created_atstringrequiredRun-logical creation time (the assembling run's clock; the mart is rebuilt whole).
entity_idstringrequiredThe resolved account this attribute decision belongs to.
idstringrequiredContent-derived row id: sha256('acct_golden_lineage:' || entity_id || ':' || attribute).
record_keystringrequiredThe source record that won the attribute.
rulestringrequiredThe survivorship rule that selected this value.
source_record_idstringrequiredSource-native id of the winning record.
source_systemstringrequiredSource system of the winning record.
survivorship_versionstringrequiredSurvivorship policy version that produced this row.
updated_atstringrequiredRun-logical last-write time (equals created_at; the mart is rebuilt whole).
AcctGoldenRecord
AcctGoldenRecord fields
NameTypeRequiredDescription
addr_citystring | nulloptionalSurviving city of the address.
addr_postalstring | nulloptionalSurviving postal code of the address.
addr_regionstring | nulloptionalSurviving region/state of the address.
addr_streetstring | nulloptionalSurviving street of the address.
assembled_atstringrequiredAssembly time of this row (volatile).
company_namestring | nulloptionalSurviving company name.
created_atstringrequiredRun-logical creation time (the assembling run's clock; the mart is rebuilt whole).
domainstring | nulloptionalSurviving web domain.
idstringrequiredPersistent entity id (deterministic UUIDv7, minted by reconcile); the survivorship key.
metadataanyoptionalSurviving opaque per-source metadata object.
phone_e164string | nulloptionalSurviving phone number in E.164 form.
survivorship_versionstringrequiredSurvivorship policy version that produced this row.
updated_atstringrequiredRun-logical last-write time (equals created_at; the mart is rebuilt whole).
AllowanceSet
AllowanceSet fields
NameTypeRequiredDescription
namestringrequired
record_allowanceinteger | nulloptional
ApiKey
ApiKey fields
NameTypeRequiredDescription
created_atstringrequiredWhen the key was issued.
idstringrequiredThe key's unique id (UUIDv7, minted at issue).
org_idstringrequiredThe tenant the key authenticates.
revoked_atstring | nulloptionalWhen the key was revoked, if it has been.
rolestringrequiredThe role the key grants.
updated_atstringrequiredWall-clock last-write time (database default; advanced by mutations once the entity migrates).
ApiKeyList
ApiKeyList fields
NameTypeRequiredDescription
keysarray of ApiKeyrequiredMetadata only: the wire form has no `key_hash`, and the plaintext was shown once at mint time and is not stored.
AttemptRetried
AttemptRetried fields
NameTypeRequiredDescription
archivedTaskInstancerequired
retryTaskInstance | any | nulloptional
AuditEntry
AuditEntry fields
NameTypeRequiredDescription
actionstringrequired
actorstringrequired
atstringrequiredRFC 3339, microseconds.
datasetstring | nulloptional
detailanyrequired
idintegerrequired
orgstring | nulloptional
trace_idstring | nulloptional
AuditLog
AuditLog fields
NameTypeRequiredDescription
actionstringrequiredThe action name (e.g. steward.mass_update).
actorstringrequiredThe principal that performed the action (the signed-in user's email, or an API key id).
atstringrequiredWhen the audited action occurred.
created_atstringrequiredWall-clock creation time (database default; `at` remains the domain event stamp).
datasetstring | nulloptionalThe dataset the action concerned, by name, when it concerned one — context, like `org`, not a foreign key (this ledger outlives both).
detailanyrequiredStructured detail for the action.
idintegerrequiredMonotonic ledger id (bigserial); the primary key.
orgstring | nulloptionalThe tenant the action applies to, if the action is org-scoped.
trace_idstring | nulloptionalThe W3C trace id (32 lowercase hex) of the request that caused this row, when the caller sent one. The JOIN KEY to the span store: spans carry `trace_id`, so this is what turns `which rows did this session write` into `and here is every SQL statement each one ran`. Stored as the bare id rather than the full `traceparent`, because the parent span id is per-hop and would not join. NULL for an unpropagated or non-HTTP caller — a CLI, the dispatcher's own bookkeeping — which is a real and permanent case, not a gap to backfill.
updated_atstringrequiredWall-clock last-write time (equals created_at; audit rows are append-only).
AutoApprovalList
AutoApprovalList fields
NameTypeRequiredDescription
itemsarray of AutoApprovalViewrequired
AutoApprovalView
AutoApprovalView fields
NameTypeRequiredDescription
connection_idstringrequired
created_atstringrequiredRFC 3339.
created_bystringrequired
enabledbooleanrequired
idstringrequiredThe revision; auto-approved previews name it as `policy:<id>`.
max_membersintegerrequired
min_scorenumberrequired
objectstringrequired
BatchDecisionOut
BatchDecisionOut fields
NameTypeRequiredDescription
resultsarray of BatchDecisionResultrequired
BatchDecisionResult
BatchDecisionResult fields
NameTypeRequiredDescription
detailstring | nulloptionalWhy it was refused, when it was.
idstringrequired
preview_statusstring | nulloptionalThe preview's state after, when decided.
statusintegerrequiredThe HTTP status the single-item route would have answered.
BlockingEstimate
BlockingEstimate fields
NameTypeRequiredDescription
candidate_pairsintegerrequiredWhat the declared rules actually generate: the number that decides the run's cost.
largest_blocksarray of LargestBlockEstimaterequired
per_rulearray of BlockingRuleEstimaterequired
total_possible_pairsintegerrequiredEvery pair the corpus could produce — what resolution would cost with no blocking at all.
BlockingRuleEstimate
BlockingRuleEstimate fields
NameTypeRequiredDescription
blocking_rulestringrequired
cumulative_pairsintegerrequired
has_block_breakdownbooleanrequiredWhether this rule's largest blocks could be enumerated. False for a rule carrying a filter condition, which has no block breakdown at all. On the wire because the alternative is silence: with no flag, a rule that CANNOT be broken down looks exactly like one that was examined and found to have no large blocks, which reads as reassurance about a rule nobody measured.
marginal_pairsintegerrequiredPairs this rule adds that no earlier rule already generated — the number that says whether the rule is pulling its weight.
match_keyintegerrequired
CandidateKey
CandidateKey fields
NameTypeRequiredDescription
covered_rowsintegerrequiredRows where every key column is non-null — the only rows this key can block, because an equality is never true of a NULL.
created_atstringrequiredRun-logical creation time.
distinct_valuesintegerrequiredDistinct key values among the covered rows. The block count: more blocks of fewer rows each is what makes a key cheap.
entropy_bitsnumberrequiredShannon entropy of the key's value distribution, in bits. In bits so it is directly comparable with the compiler's match-weight scale, which is also in bits — one unit across both halves of the system.
expected_pairsintegerrequiredPairs an equi-join on this key generates, exactly: the sum of C(n, 2) over the value groups. For a rule used FIRST, with nothing preceding it to dedup against, this equals the marginal comparison count a trained model's own counter reports — which is what the engine's golden test asserts, so the cheap path cannot drift from the expensive one.
idstringrequiredContent-derived row id: sha256('candidate_keys:' || profile_run_id || ':' || key_columns).
key_columnsstringrequiredThe key's columns, joined by the unit-separator character (chr(31)) — one name for a single-column key, several for a composite. A delimiter rather than a list because this column is in the natural key, and DuckLake has no list equality to MERGE on; chr(31) specifically because it cannot occur in a column name.
largest_block_pairsintegerrequiredPairs contributed by the single largest block. The number that catches a key which looks affordable in total and is actually dominated by one value — the classic shape being a placeholder, where every record with a blank-but-present field lands in one enormous block.
largest_block_rowsintegerrequiredRows in that largest block.
pair_loss_from_nullsnumberrequiredThe share of ALL corpus pairs this key can never reach because one endpoint or the other is NULL: `1 - (covered_rows / rows)^2`. The square is the part that surprises people — a key on a column that is 60% populated reaches only 36% of pairs — and it is why a cheap key is so often cheap for the wrong reason. Stored beside the cost so the trade is visible rather than implied.
profile_run_idstringrequiredThe profile run that measured this key. Named for the relation it points at, per the foreign-key convention; no `references` is declared because DuckLake enforces no foreign keys (V11).
row_countintegerrequiredRows in the profiled corpus, carried so `expected_pairs` can be read as a share without a second lookup. Named row_count rather than rows because `rows` is reserved in DuckDB and a column called that cannot be selected unquoted.
updated_atstringrequiredRun-logical last-write time.
CandidateKeyItem
CandidateKeyItem fields
NameTypeRequiredDescription
covered_rowsintegerrequired
distinct_valuesintegerrequired
entropy_bitsnumberrequired
expected_pairsintegerrequired
key_columnsarray of stringrequired
largest_block_pairsintegerrequired
largest_block_rowsintegerrequired
pair_loss_from_nullsnumberrequired
row_countintegerrequired
ClearAccepted
ClearAccepted fields
NameTypeRequiredDescription
clearedarray of stringrequired
demanded_upstreamarray of stringrequired
reopenedbooleanrequired
resetintegerrequired
restartingintegerrequired
rotatedintegerrequired
ColumnProfile
ColumnProfile fields
NameTypeRequiredDescription
blank_countintegerrequiredRows where the column is present but empty once trimmed. Counted apart from NULL because ingest lands every delivered value as a JSON string, so an empty cell arrives as '' and is not NULL — a fill rate treating the two alike reports a column as populated when every value in it is blank.
cast_bigintintegerrequiredNon-null values that parse as an integer.
cast_booleanintegerrequiredNon-null values that parse as a boolean.
cast_dateintegerrequiredNon-null values that parse as a date. This is the whole of type detection here: ingest stores every delivered value as text, so the declared type says nothing about content and conformance is the only evidence of what a column actually holds.
cast_doubleintegerrequiredNon-null values that parse as a double.
cast_timestampintegerrequiredNon-null values that parse as a timestamp.
column_namestringrequiredThe profiled column, as named in the corpus stage.
created_atstringrequiredRun-logical creation time.
distinct_approxintegerrequiredHyperLogLog estimate of distinct values. Always present because it is cheap, and always approximate: measured on a fixture of 1000 genuinely distinct ids it returns 978, so it is wrong in both directions and must never settle a uniqueness question on its own.
distinct_exactinteger | nulloptionalExact distinct count, NULL when it was not requested. The expensive one (a per-column sort), and the only one a uniqueness verdict may be read from.
distinct_normalizedinteger | nulloptionalExact distinct count after lowercasing, trimming and collapsing internal whitespace; NULL when not requested. Materially below distinct_exact is the signal that a column needs standardizing before it is compared, which is otherwise invisible — the raw count looks healthy precisely because the variants are counted as distinct values.
entropy_bitsnumber | nulloptionalShannon entropy of the value distribution, in bits. Reported in bits so it is directly comparable with the compiler's match-weight scale, which is also in bits — one unit across both halves of the system. A low value means one or two values dominate, which makes the column a poor blocking key however full it is.
idstringrequiredContent-derived row id: sha256('column_profiles:' || profile_run_id || ':' || column_name).
len_avgnumber | nulloptionalMean trimmed value length.
len_maxinteger | nulloptionalLongest trimmed value length. A value at a round number here is the signature of upstream truncation.
len_mininteger | nulloptionalShortest trimmed value length. NULL for an all-NULL column, where a length has no meaning.
len_p50integer | nulloptionalApproximate median trimmed length.
len_p95integer | nulloptionalApproximate 95th-percentile trimmed length. Read against len_max it separates a long tail from a single outlier.
lex_maxstring | nulloptionalLexically largest trimmed value.
lex_minstring | nulloptionalLexically smallest trimmed value.
non_null_countintegerrequiredRows where the column is not NULL.
num_avgnumber | nulloptionalMean of the values that parse as numbers.
num_maxnumber | nulloptionalLargest value that parses as a number, NULL when none does.
num_minnumber | nulloptionalSmallest value that parses as a number, NULL when none does.
num_stdnumber | nulloptionalSample standard deviation of the values that parse as numbers. NULL for fewer than two such values, where it is undefined rather than zero.
profile_run_idstringrequiredThe profile run this column belongs to. Named for the relation it points at, per the foreign-key convention, but no `references` is declared because DuckLake enforces no foreign keys (V11) and declaring one would claim a guarantee the lake does not provide.
row_countintegerrequiredRows read for this column (the sampled count when sampling was on).
top_valuesanyoptionalThe most frequent values with their counts and shares, bounded to a small k. Bounded because this is a per-column row: an unbounded list would put the corpus inside the profile. NOTE for consumers: these are REAL VALUES — live emails and phone numbers — so they are the one field here that carries personal data and must be role-gated before display and never sent to a model.
total_row_countintegerrequiredRows in the corpus whether or not they were sampled, so a sampled figure can be scaled and labelled honestly.
updated_atstringrequiredRun-logical last-write time.
Completeness
Completeness fields
NameTypeRequiredDescription
by_attributemap of numberrequiredNon-null fraction per golden column.
overallnumberrequired
ConfigDraftCreated
ConfigDraftCreated fields
NameTypeRequiredDescription
config_hashstringrequired
orgstringrequired
statestringrequiredAlways `draft`.
versionintegerrequired
ConfigPublished
ConfigPublished fields
NameTypeRequiredDescription
advisoriesarray of stringrequiredWhat the latest profile says about the config that just went live: advice, never a refusal.
changed_blocksarray of stringrequired
jobs_enqueuedarray of stringrequiredThe rebuild jobs the tier queued, in order.
orgstringrequired
published_bystringrequired
tierstring | nulloptionalThe rebuild tier the changed blocks required.
versionintegerrequired
ConfigValidation
ConfigValidation fields
NameTypeRequiredDescription
changed_blocksarray of stringrequiredThe top-level blocks that differ from the active config.
config_hashstring | nulloptionalThe canonical document's hash, the value a run records as the config it executed under; null when the YAML does not load.
problemsarray of stringrequiredEvery reason publish would refuse it, each naming what to change.
tierstring | nulloptionalThe rebuild tier publish would queue (`A`, `B` or `C`), versus the dataset's active config; null when nothing that matters changed.
validbooleanrequiredTrue when publish would accept the document as written.
ConfigVersion
ConfigVersion fields
NameTypeRequiredDescription
config_hashstringrequiredHash of the canonicalized config.
created_atstringrequiredWhen the version was created.
created_bystringrequiredPrincipal that created the version.
dataset_idstringrequiredThe dataset this config version belongs to. Part of the natural key: rows belong to a dataset, not to the org at large.
idstringrequiredThe version row's unique id (UUIDv7, minted at draft).
org_idstringrequiredThe tenant this config version belongs to.
published_atstring | nulloptionalWhen the version was published, if it has been.
statestringrequiredWhether the version is a draft or published.
tierstring | nulloptionalOptional service tier label.
updated_atstringrequiredWall-clock last-write time (database default; advanced by mutations once the entity migrates).
versionintegerrequiredThe monotonic version number within the tenant.
yamlstringrequiredThe config document source.
ConfigVersionItem
ConfigVersionItem fields
NameTypeRequiredDescription
config_hashstringrequired
created_atstringrequired
created_bystringrequired
published_atstring | nulloptional
statestringrequired
tierstring | nulloptional
versionintegerrequired
ConfigVersionView
ConfigVersionView fields
NameTypeRequiredDescription
config_hashstringrequired
created_atstringrequired
created_bystringrequired
published_atstring | nulloptional
statestringrequired`draft`, `published` or `superseded`.
tierstring | nulloptionalThe rebuild tier the publish chose; null until published.
versionintegerrequired
yamlstringrequired
ConfusionMetrics
ConfusionMetrics fields
NameTypeRequiredDescription
accuracynumber | nulloptional
f1number | nulloptionalNull when either precision or recall is, rather than 0.
fnintegerrequired
fpintegerrequired
precisionnumber | nulloptional
recallnumber | nulloptional
tnintegerrequired
tpintegerrequired
ContradictionItem
ContradictionItem fields
NameTypeRequiredDescription
always_assertion_idsarray of stringrequiredThe `always` rules whose closure joins the pair.
componentarray of stringrequiredEvery record in that `always` closure, ascending.
never_assertion_idstringrequired
rec_a_keystringrequired
rec_b_keystringrequired
ContradictionList
ContradictionList fields
NameTypeRequiredDescription
contradictionsarray of ContradictionItemrequired
CurvePoint
CurvePoint fields
NameTypeRequiredDescription
accuracynumber | nulloptional
f1number | nulloptionalNull when either precision or recall is, rather than 0.
fnintegerrequired
fpintegerrequired
precisionnumber | nulloptional
recallnumber | nulloptional
tnintegerrequired
tpintegerrequired
thresholdnumberrequired
DataQuality
DataQuality fields
NameTypeRequiredDescription
completenessCompletenessrequired
dq_scorenumberrequiredThe mean of completeness and the complements of the three rates.
duplicate_ratenumberrequired
entitiesintegerrequired
junk_ratenumberrequired
recordsintegerrequired
snapshotintegerrequired
stale_daysintegerrequired
stale_ratenumberrequired
Dataset
Dataset fields
NameTypeRequiredDescription
active_config_versioninteger | nulloptionalThe currently published config version, if any.
config_pathstringrequiredPath to the dataset's config document.
created_atstringrequiredWhen the dataset was created.
display_namestring | nulloptionalOptional human label; the name stays the stable routing handle.
drop_rootstring | nulloptionalDelivery landing directory; one `<source>.csv` per config source.
entity_typestringrequiredThe one entity type this dataset's lake resolves. Fixed at creation: the lake's std/golden tables are per-type, so changing it would orphan the corpus. Publish refuses a config whose entity_type differs.
envanyrequiredLake connection env (catalog, catalog schema, data path, config/model/TF/lexicon paths). Handed to the engine verbatim; the derived location keys always win over operator extras.
idstringrequiredThe dataset's unique id (UUIDv7, minted at creation).
namestringrequiredThe dataset's name, unique within its org (the routing handle; URLs are name-based, same slug grammar as an org name). The migration sweep names every existing org's one dataset `default`.
org_idstringrequiredThe tenant this dataset belongs to.
s3_ingest_bucketstring | nulloptionalBucket the auto-ingest poller watches for this dataset. Null means auto-ingest is off — the feature has to be opted into, because a poller that starts reading a bucket nobody pointed at it would be ingesting data on its own initiative.
s3_ingest_prefixstring | nulloptionalKey prefix under `s3_ingest_bucket`, with one directory per config source beneath it. A column rather than a key in `env` deliberately, for the same reason as the org's: `env` is handed to the engine subprocess, while this is read by the control plane itself.
statestringrequiredDataset lifecycle state. The org's own state gates the whole tenant above this.
updated_atstringrequiredWall-clock last-write time (database default; advanced by mutations once the entity migrates).
DatasetCreated
DatasetCreated fields
NameTypeRequiredDescription
namestringrequired
statestringrequired
DatasetProvisioning
DatasetProvisioning fields
NameTypeRequiredDescription
job_idstringrequired
namestringrequired
statestringrequired
DatasetUsage
DatasetUsage fields
NameTypeRequiredDescription
namestringrequired
recordsintegerrequiredConnected records: standardized source records at `snapshot`.
snapshotinteger | nulloptionalThe lake snapshot counted; null for a dataset with no lake yet.
DatasetView
DatasetView fields
NameTypeRequiredDescription
active_config_versioninteger | nulloptional
created_atstringrequired
display_namestring | nulloptional
entity_typestringrequired
namestringrequired
statestringrequired
updated_atstringrequired
Deleted
Deleted fields
NameTypeRequiredDescription
deletedbooleanrequired
DeliveryAccepted
DeliveryAccepted fields
NameTypeRequiredDescription
delivery_idstringrequired
jobJobrequired
EmailAccepted
EntityEventItem
EntityEventItem fields
NameTypeRequiredDescription
detailsanyrequired
event_typestringrequired
idstringrequired
occurred_atstringrequiredNaive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339.
run_idstringrequired
seqintegerrequired
EntityLinkDeleted
EntityLinkDeleted fields
NameTypeRequiredDescription
deletedstringrequired
EntityMember
EntityMember fields
NameTypeRequiredDescription
assigned_atstringrequiredNaive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339.
protectedbooleanrequiredAn active `protect` overlay: the record is master for its entity and cannot be deleted or unmatch-peeled until unprotected.
record_keystringrequired
run_idstringrequired
source_record_idstringrequired
source_systemstringrequired
verifiedbooleanrequiredAn active whole-row steward verification.
EvaluationCounts
EvaluationCounts fields
NameTypeRequiredDescription
evaluableintegerrequired
labels_for_versionintegerrequired
no_scoreintegerrequired
not_a_verdictintegerrequired
GoldenDetail
GoldenDetail fields
NameTypeRequiredDescription
eventsarray of EntityEventItemrequired
goldenGoldenRowrequired
lineagearray of LineageItemrequired
membersarray of EntityMemberrequired
GoldenLineage
GoldenLineage fields
NameTypeRequiredDescription
attributestringrequiredThe survivable attribute decided (e.g. given_name, email, address).
created_atstringrequiredRun-logical creation time (the assembling run's clock; the mart is rebuilt whole).
entity_idstringrequiredThe resolved entity this attribute decision belongs to.
idstringrequiredContent-derived row id: sha256('golden_lineage:' || entity_id || ':' || attribute).
record_keystringrequiredThe source record that won the attribute.
rulestringrequiredThe survivorship rule that selected this value.
source_record_idstringrequiredSource-native id of the winning record.
source_systemstringrequiredSource system of the winning record.
survivorship_versionstringrequiredSurvivorship policy version that produced this row.
updated_atstringrequiredRun-logical last-write time (equals created_at; the mart is rebuilt whole).
GoldenRecord
GoldenRecord fields
NameTypeRequiredDescription
addr_citystring | nulloptionalSurviving city of the address.
addr_numberstring | nulloptionalSurviving street number of the address.
addr_postalstring | nulloptionalSurviving postal code of the address.
addr_regionstring | nulloptionalSurviving region/state of the address.
addr_streetstring | nulloptionalSurviving street name of the address.
addr_unitstring | nulloptionalSurviving unit/apartment of the address.
assembled_atstringrequiredAssembly time of this row (volatile; excluded from determinism comparisons).
birth_datestring | nulloptionalSurviving birth date.
created_atstringrequiredRun-logical creation time (the assembling run's clock; the mart is rebuilt whole).
emailstring | nulloptionalSurviving email address.
family_namestring | nulloptionalSurviving family name.
given_namestring | nulloptionalSurviving given name.
idstringrequiredPersistent entity id (deterministic UUIDv7, minted by reconcile); the survivorship key.
metadataanyoptionalSurviving opaque per-source metadata object.
phone_e164string | nulloptionalSurviving phone number in E.164 form.
survivorship_versionstringrequiredSurvivorship policy version that produced this row.
updated_atstringrequiredRun-logical last-write time (equals created_at; the mart is rebuilt whole).
GoldenRow
ImportReceipt
ImportReceipt fields
NameTypeRequiredDescription
changed_countintegerrequired
created_atstringrequiredNaive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339.
full_refresh_keysbooleanrequired
idstringrequired
matched_countinteger | nulloptional
new_countintegerrequired
pathstringrequired
resurrected_countintegerrequired
review_countinteger | nulloptional
run_idstringrequired
screened_atstring | nulloptionalNaive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339.
source_systemstringrequired
tombstone_countintegerrequired
unchanged_countintegerrequired
unmatched_countinteger | nulloptional
IngestBatch
IngestBatch fields
NameTypeRequiredDescription
changed_countintegerrequiredRows superseding a key with new content.
created_atstringrequiredCreation stamp (the run's logical timestamp).
full_refresh_keysbooleanrequiredWhether the delivery tombstoned omitted keys.
idstringrequiredThe delivery batch's unique id (caller-supplied per delivery).
matched_countinteger | nulloptionalScreening (E9b): delivered records that joined an existing entity — their best active score reached `thresholds.auto_merge`. NULL means the delivery was never screened, which is the honest answer for a run that scored nothing (a correction pass, or a rebuild with `skip_ingest`); 0 means it was screened and nothing matched.
new_countintegerrequiredRows landing a brand-new key.
pathstringrequiredThe delivered file's path.
resurrected_countintegerrequiredPreviously tombstoned keys that returned.
review_countinteger | nulloptionalScreening (E9b): delivered records whose best active score landed in the gray band — at or above `review_low` but below `auto_merge`. These are the ones a steward has to decide.
run_idstringrequiredThe run that wrote this row.
screened_atstring | nulloptionalWhen the delivery was screened, NULL if it was not. Separate from the counts so that `screened with everything unmatched` (counts 0/0/N) is distinguishable from `never screened` (all NULL) without reading three columns.
source_systemstringrequiredThe delivering source system.
tombstone_countintegerrequiredKeys tombstoned by a full refresh.
unchanged_countintegerrequiredRows matching the key's current content.
unmatched_countinteger | nulloptionalScreening (E9b): delivered records with no active score reaching `review_low` — genuinely new as far as the model can tell.
updated_atstringrequiredRun-logical last-write time. Receipts were written once until E9b; the screening pass now updates the row after the match stage, because the verdicts do not exist until the run has scored.
InsightPoint
InsightPoint fields
NameTypeRequiredDescription
auto_merge_pairsintegerrequired
captured_atstringrequiredchrono's display form (`YYYY-MM-DD HH:MM:SS[.f] UTC`).
duplicate_groupsintegerrequired
duplicate_ratenumber | nulloptionalDuplicate records over records; null for an empty corpus.
duplicate_recordsintegerrequired
entitiesintegerrequired
largest_groupintegerrequired
recordsintegerrequired
records_per_entitynumber | nulloptionalRecords over entities; null when there are none.
review_backlogintegerrequired
review_band_pairsintegerrequired
run_idstringrequired
InsightSeries
InsightSeries fields
NameTypeRequiredDescription
seriesarray of InsightPointrequired
snapshotintegerrequired
Job
Job fields
NameTypeRequiredDescription
attemptintegerrequiredAttempts made so far.
clear_numberinteger | nulloptionalIncremented by every clear; fences readiness verdicts composed before the clear. Read as COALESCE(clear_number, 0).
created_atstringrequiredWhen the job was enqueued.
created_bystring | nulloptionalPrincipal that created the job.
dataset_idstring | nulloptionalThe dataset this job runs against. NULL only for org-level kinds (provision) — every lake-touching job carries it, and the per-dataset writer lock keys on it once the queue is re-scoped.
error_classstring | nulloptionalWhy the job failed, as a class the UI can act on: precondition (an input is missing — expected during onboarding), transient_io (worth retrying), config (the tenant config is wrong), internal (a bug). Null until a failure.
error_detailstring | nulloptionalThe failure's human text, already chain-flattened. Kept beside error_class so a steward sees the reason without reading pod logs.
finished_atstring | nulloptionalWhen the job finished.
idstringrequiredThe job's unique id (UUIDv7, minted at enqueue).
idempotency_keystring | nulloptionalOptional dedup key, unique per org.
image_digeststring | nulloptionalImage digest the planning dispatcher ran, so a deploy mid-run is legible.
kindstringrequiredThe job kind (run_all, correct, maintain, train, ...).
max_attemptsintegerrequiredVestigial: no statement consults it. It bounded the job-level retry that went with the legacy in-process arm (#645); the live budget is task_instances.max_tries, per attempt.
not_beforestring | nulloptionalEarliest time the job may be claimed. A retry sets it to the backoff deadline.
org_idstringrequiredThe tenant this job runs for.
owner_epochstring | nulloptionalThe dispatcher process epoch that planned or adopted the run.
paramsanyrequiredKind-specific parameters.
policy_hashstring | nulloptionalsha256 over the compiled DAG's per-node policy (retries, backoff, timeout, class, segment); a divergence proceeds with the diff logged.
priorityintegerrequiredClaim priority; higher runs first.
resource_classstring | nulloptionalRequested runner resource class.
run_idstring | nulloptionalThe run this job produced, once dispatched.
schedule_idstring | nulloptionalThe schedule that enqueued the job, if any.
started_atstring | nulloptionalWhen the job started running.
statestringrequiredLifecycle state (queued, dispatching, running, succeeded, failed, canceling, canceled).
structural_fingerprintstring | nulloptionalsha256 over the compiled DAG's shape (names, versions, edges, trigger rules), written at planning; a clear or adoption refuses on mismatch (batch-orchestration-design §3.4).
trace_contextstring | nulloptionalPropagated trace context.
updated_atstringrequiredWhen the job row was last updated.
JobList
JobList fields
NameTypeRequiredDescription
jobsarray of Jobrequired
KeyIssued
KeyIssued fields
NameTypeRequiredDescription
idstringrequired
keystringrequired
rolestringrequired
KeyRevoked
KeyRevoked fields
NameTypeRequiredDescription
revokedbooleanrequired
LabelBand
LabelBand fields
NameTypeRequiredDescription
maxnumberrequired
minnumberrequired
LabelCoverage
LabelCoverage fields
NameTypeRequiredDescription
by_originLabelOriginsrequired
matchesintegerrequired
non_matchesintegerrequired
totalintegerrequired
LabelEvaluation
LabelEvaluation fields
NameTypeRequiredDescription
by_originmap of ConfusionMetricsrequiredPer label origin that has any evaluable label.
countsEvaluationCountsrequired
curvearray of CurvePointrequired
model_version_labelstringrequired
overallConfusionMetricsrequired
thresholdnumberrequired
LabelList
LabelList fields
NameTypeRequiredDescription
labelsarray of PairLabelrequired
LabelOrigins
LabelOrigins fields
NameTypeRequiredDescription
humanintegerrequired
llmintegerrequired
reviewerintegerrequired
LabelingQueue
LabelingQueue fields
NameTypeRequiredDescription
bandLabelBandrequired
coverageLabelCoveragerequired
itemsarray of UncertainPairrequired
snapshotintegerrequired
thresholdnumberrequiredThe `auto_merge` threshold the pairs are ordered around.
LargestBlockEstimate
LargestBlockEstimate fields
NameTypeRequiredDescription
key_valuesarray of stringrequired
match_keyintegerrequiredWhich rule this block belongs to, since every rule is now broken down rather than only the first.
pairsintegerrequiredThe pairs a run SCORES in this block, under this model's link type.
rowsintegerrequiredRows carrying this key value. Reported beside the pairs because the two answer different questions — how much work, and how lopsided the data — and because `pairs` is quadratic in `rows`, which is the whole reason one value can dominate a run.
LeadConversionPage
LeadConversionPage fields
NameTypeRequiredDescription
itemsarray of LeadConversionViewrequired
next_cursorstring | nulloptionalPass as `cursor` for the next page; null on the last.
LeadConversionView
LeadConversionView fields
NameTypeRequiredDescription
account_idstring | nulloptionalThe Account the Lead converted into.
apply_detailstring | nulloptional
apply_statusstring | nulloptionalThe apply, once begun: `applying`, `converted`, `converted_externally`, `failed` or `skipped_stale`.
connection_idstringrequired
contact_external_idstringrequiredThe Contact it converts into.
contact_record_keystringrequired
created_atstringrequiredRFC 3339.
decided_bystring | nulloptional
entity_idstringrequired
fingerprintstringrequiredName it to approve or reject.
idstringrequired
lead_external_idstringrequiredThe Lead's Salesforce id and record key.
lead_record_keystringrequired
statusstringrequired`planned`, `approved`, `rejected` or `superseded`.
Lexicon
Lexicon fields
NameTypeRequiredDescription
pairsarray of LexiconPairrequired
LexiconPair
LexiconPair fields
NameTypeRequiredDescription
variant_astringrequired
variant_bstringrequired
LexiconSaved
LexiconSaved fields
NameTypeRequiredDescription
apply_jobstringrequiredThe `run_all_full` job that re-standardizes with the new pairs.
pairsarray of LexiconPairrequired
LineageItem
LineageItem fields
NameTypeRequiredDescription
attributestringrequired
record_keystringrequired
rulestringrequired
source_record_idstringrequired
source_systemstringrequired
MatchPreviewView
MatchPreviewView fields
NameTypeRequiredDescription
samplearray of PreviewPairViewrequired
totalintegerrequired
would_auto_mergeintegerrequired
would_reviewintegerrequired
MatchScoresPage
MatchScoresPage fields
NameTypeRequiredDescription
itemsarray of ScoredPairrequired
next_cursorstring | nulloptionalPass as `cursor` for the next page; null on the last page.
snapshotintegerrequiredThe lake snapshot every page of this walk reads; the cursor pins it.
MatchingModel
MatchingModel fields
NameTypeRequiredDescription
activated_atstring | nulloptionalWhen this version was activated, if it ever was.
created_atstringrequiredWhen the version was created.
created_bystringrequiredPrincipal that created the version.
dataset_idstringrequiredThe dataset whose corpus this model was trained for.
entity_typestringrequiredWhich canonical schema the model scores against; a model cannot be activated for a lake of the other entity type.
idstringrequiredThe version row's unique id (UUIDv7, minted when the version is created).
model_hashstringrequiredSHA-256 of model_json, so a scored row can be tied back to the exact document that produced it.
model_jsonstringrequiredThe settings document the engine loads (comparison levels, their SQL, m/u probabilities, blocking rules). Stored as text, not jsonb, so it round-trips byte-exact — model_hash is taken over these bytes and the engine's determinism depends on them.
model_version_labelstringrequiredThe identity stamped onto every row this model scores (match_scores.model_version, runs.model_version). It is NOT the version number: it must equal the model_version the frozen term-frequency snapshot CSV is keyed by, because the TF lookup joins on (model_version, tf_snapshot_id) and a mismatch silently returns no term frequencies — changing a pair's score rather than failing. Seeded from the org's ER_MODEL_VERSION; required when uploading a model, for the same reason.
namestringrequiredThe model's name within the tenant; versions are monotonic within a name, so one tenant can keep several models (a classic rule model beside a trained one) and switch between them.
org_idstringrequiredThe tenant this model version belongs to.
provenanceanyrequiredWhere this version came from: the seeded starter file, a training run (corpus digest, args, seed), an authored upload, or the version it was derived from.
statestringrequiredDraft until activated; exactly one version of a name is active at a time, and activating the next archives the previous. There is deliberately no partial unique index enforcing that: a single UPDATE that moves both rows can transiently violate a non-deferrable unique index even when the end state is legal, so activation is instead one atomic statement that cannot produce two actives, and the active read orders by version so a hypothetical second one could never be served silently.
tf_snapshot_idstring | nulloptionalThe frozen term-frequency snapshot this model scores against, when it has one. Paired with model_version_label by the TF lookup.
updated_atstringrequiredWall-clock last-write time (database default; advanced by mutations once the entity migrates).
versionintegerrequiredThe monotonic version number within (org, name). Versions are immutable: a retrain or a weight override mints the next one rather than editing this.
MergeApplyView
MergeApplyView fields
NameTypeRequiredDescription
detailstring | nulloptionalWhy it settled as it did.
statusstringrequired`applying`, `applied`, `failed`, `skipped_stale` or `applied_externally`.
MergePlan
MergePlan fields
NameTypeRequiredDescription
emailstring | nulloptional
entity_idstringrequired
family_namestring | nulloptional
given_namestring | nulloptional
group_confidenceinteger | nulloptionalNull when the group has no within-group scored edge.
master_keystring | nulloptional
master_record_keystring | nulloptional
member_confidencesmap of integerrequired
member_countinteger | nulloptional
member_recordsarray of stringrequired
phone_e164string | nulloptional
MergePlanList
MergePlanList fields
NameTypeRequiredDescription
itemsarray of MergePlanrequired
MergePreviewDetail
MergePreviewDetail fields
NameTypeRequiredDescription
applyMergeApplyView | any | nulloptional
decided_bystring | nulloptional
decision_reasonstring | nulloptional
field_changesanyrequiredProvider field → `{before, after}` on the master.
historyarray of MergePreviewEventrequired
proposalanyrequiredThe members' synchronized preimages, the master and the policy inputs (the persisted proposal).
related_countsanyoptionalRelated-record counts per member; null while `related_counts_state` is `unavailable`.
related_counts_statestringrequired
summaryMergePreviewSummaryrequired
MergePreviewEvent
MergePreviewEvent fields
NameTypeRequiredDescription
actorstringrequired
atstringrequiredRFC 3339.
fingerprintstringrequired
from_statusstring | nulloptional
to_statusstringrequired
MergePreviewPage
MergePreviewPage fields
NameTypeRequiredDescription
itemsarray of MergePreviewSummaryrequired
next_cursorstring | nulloptionalPass as `cursor` for the next page; null on the last.
MergePreviewSummary
MergePreviewSummary fields
NameTypeRequiredDescription
connection_idstringrequired
created_atstringrequiredRFC 3339.
decided_bystring | nulloptionalWho decided it — a principal, or `policy:<rule id>` for an auto-approval.
entity_idstringrequired
fingerprintstringrequiredName it to approve or reject.
idstringrequired
lake_snapshotintegerrequired
master_record_keystringrequired
member_countintegerrequired
objectstringrequired
policy_revisionstringrequiredThe writeback policy revision it was built under.
scorenumber | nulloptionalMatch evidence: for each victim, its strongest scored edge to another member, then the weakest of those. Null when absent.
statusstringrequired`planned`, `approved`, `rejected` or `superseded`.
MergeRestoreStepView
MergeRestoreStepView fields
NameTypeRequiredDescription
kindstringrequired`never_assert`, `undelete`, `recreate` or `revert_master`.
new_idstring | nulloptionalFor `recreate`: the new Salesforce id of the recreated record.
outcomestring | nulloptional
statusstringrequired`in_flight`, `done` or `failed`.
target_idstringrequiredThe Salesforce id acted on (the record key for `never_assert`).
MergeRestoreView
MergeRestoreView fields
NameTypeRequiredDescription
conflictsarray of objectrequiredWhat was refused rather than overwritten.
detailstring | nulloptional
job_idstring | nulloptionalThe job working on it, when this request queued one.
related_records_revertedbooleanrequiredAlways false: records the merge reparented to the master stay there.
statusstringrequired`restoring`, `restored`, `partial` or `failed`.
stepsarray of MergeRestoreStepViewrequired
MergesApplying
MergesApplying fields
NameTypeRequiredDescription
job_idstringrequired
statestringrequired
MetricSnapshot
MetricSnapshot fields
NameTypeRequiredDescription
auto_merge_pairsintegerrequiredActive scores at or above the auto-merge threshold.
captured_atstringrequiredThe run's logical clock, not wall time — so a replayed fixture produces the same snapshot.
created_atstringrequiredRun-logical creation time.
duplicate_groupsintegerrequiredEntities with more than one member.
duplicate_recordsintegerrequiredRecords sitting in an entity with more than one member — the numerator of the duplicate rate. Counting GROUPS instead would call a 5-record cluster and a 2-record cluster the same amount of duplication.
entitiesintegerrequiredEntities the run resolved them into.
idstringrequiredContent-derived row id: sha256('metric_snapshots:' || run_id).
largest_groupintegerrequiredMembers in the biggest entity. A sudden jump here is the signature of an over-merge, which an average cluster size hides completely.
recordsintegerrequiredRecords in the standardized corpus.
review_backlogintegerrequiredOpen review items after the run — the work the thresholds are handing to humans.
review_band_pairsintegerrequiredActive scores in the gray band: scored, not merged. The two together say where the thresholds are actually sitting.
run_idstringrequiredThe run these metrics describe. One snapshot per run, so a re-run of the same id overwrites rather than double-counting.
updated_atstringrequiredRun-logical last-write time.
MetricSnapshotSource
MetricSnapshotSource fields
NameTypeRequiredDescription
captured_atstringrequiredThe run's logical timestamp, duplicated here so the series is readable without joining.
contributed_groupsintegerrequiredHow many duplicate groups contain at least one of this source's records. A source can account for few duplicate RECORDS while touching many groups, which is the signature of a feed that adds one bad row to everything rather than one bad batch.
created_atstringrequiredCreation stamp (the run's logical timestamp).
duplicate_recordsintegerrequiredHow many of them share an entity with at least one other record — counted by RECORD rather than by group, the same judgement metric_snapshots made: counting groups calls a five-record cluster and a pair the same amount of duplication.
idstringrequiredContent-derived row id: sha256('metric_snapshot_sources:' || run_id || ':' || source_system).
recordsintegerrequiredHow many of this source's records are in the corpus.
run_idstringrequiredThe run this attribution describes; shares its id with the metric_snapshots row.
source_systemstringrequiredThe delivering source system.
updated_atstringrequiredLast-update stamp; a re-run of the same run_id corrects rather than appends.
Metrics
Metrics fields
NameTypeRequiredDescription
duplicate_groupsintegerrequired
entitiesintegerrequired
open_reviewsintegerrequired
recordsintegerrequired
records_in_duplicate_groupsintegerrequired
snapshotintegerrequired
ModelCompiled
ModelCompiled fields
NameTypeRequiredDescription
activated_atstring | nulloptionalRFC 3339, microseconds.
comparator_algorithm_versioninteger | nulloptionalThe comparator algorithm the document was trained with; null when the stored document does not parse.
created_atstringrequiredRFC 3339, microseconds.
created_bystringrequired
entity_typestringrequired
idstringrequired
model_hashstringrequired
model_version_labelstringrequired
namestringrequired
provenanceanyrequired
statestringrequired
tf_snapshot_idstring | nulloptional
versionintegerrequired
notesarray of stringrequired
ModelDetail
ModelDetail fields
NameTypeRequiredDescription
activated_atstring | nulloptionalRFC 3339, microseconds.
comparator_algorithm_versioninteger | nulloptionalThe comparator algorithm the document was trained with; null when the stored document does not parse.
created_atstringrequiredRFC 3339, microseconds.
created_bystringrequired
entity_typestringrequired
idstringrequired
model_hashstringrequired
model_version_labelstringrequired
namestringrequired
provenanceanyrequired
statestringrequired
tf_snapshot_idstring | nulloptional
versionintegerrequired
model_jsonstringrequiredThe stored settings document, as text.
weightsanyrequiredPer comparison level: m/u and the log-odds they imply. Null when the document does not parse.
ModelEvaluation
ModelEvaluation fields
NameTypeRequiredDescription
by_originmap of ConfusionMetricsrequiredPer label origin that has any evaluable label.
countsEvaluationCountsrequired
curvearray of CurvePointrequired
model_version_labelstringrequired
overallConfusionMetricsrequired
thresholdnumberrequired
namestringrequired
statestringrequired
versionintegerrequired
ModelSummary
ModelSummary fields
NameTypeRequiredDescription
activated_atstring | nulloptionalRFC 3339, microseconds.
comparator_algorithm_versioninteger | nulloptionalThe comparator algorithm the document was trained with; null when the stored document does not parse.
created_atstringrequiredRFC 3339, microseconds.
created_bystringrequired
entity_typestringrequired
idstringrequired
model_hashstringrequired
model_version_labelstringrequired
namestringrequired
provenanceanyrequired
statestringrequired
tf_snapshot_idstring | nulloptional
versionintegerrequired
Org
Org fields
NameTypeRequiredDescription
active_config_versioninteger | nulloptionalThe currently published config version, if any.
config_pathstringrequiredPath to the tenant's config document.
created_atstringrequiredWhen the tenant was created.
drop_rootstring | nulloptionalOptional object-store root for tenant purge.
envanyrequiredLake connection env (catalog, data path, metadata schema).
idstringrequiredThe tenant's unique id (UUIDv7, minted at creation).
max_concurrent_jobsinteger | nulloptionalHow many of this org's jobs may be active at once, across its datasets (the noisy-neighbor cap). NULL inherits the server default (ER_ORG_JOB_CAP, which ships as 1 — the pre-dataset single-writer profile). The per-DATASET writer lock is separate and absolute.
namestringrequiredThe tenant's unique name (the routing handle; URLs stay name-based).
record_allowanceinteger | nulloptionalThe org's record allowance: the most connected records (standardized source records, summed over its datasets) it may hold before new deliveries are refused with 402. NULL is unlimited. The commercial unit is connected records (#518); the operator sets it per pilot.
s3_ingest_bucketstring | nulloptionalBucket the auto-ingest poller watches for this tenant. Null means auto-ingest is off, which is every existing tenant — the feature has to be opted into, because a poller that starts reading a bucket nobody pointed at it would be ingesting data on its own initiative.
s3_ingest_prefixstring | nulloptionalKey prefix under `s3_ingest_bucket`, with one directory per config source beneath it. A column rather than a key in `env` deliberately: `env` is handed to the engine subprocess, while this is read by the control plane itself, and D5 is what happens when the two stores of per-tenant settings disagree.
statestringrequiredTenant lifecycle state.
updated_atstringrequiredWall-clock last-write time (database default; advanced by mutations once the entity migrates).
OrgCreated
OrgCreated fields
NameTypeRequiredDescription
namestringrequired
starter_modelanyrequiredWhat seeding the starter model did: `seeded` plus a reason or the version.
OrgItem
OrgItem fields
NameTypeRequiredDescription
active_config_versioninteger | nulloptional
created_atstringrequired
idstringrequired
namestringrequired
statestringrequired
OrgProvisioned
OrgProvisioned fields
NameTypeRequiredDescription
admin_keystringrequired
admin_key_idstringrequired
config_versionintegerrequired
job_idstringrequired
namestringrequired
statestringrequired
tenantstring | nulloptional
OrgResources
OrgResources fields
NameTypeRequiredDescription
duckdb_memory_limitstring | nulloptional
duckdb_threadsinteger | nulloptional
OrgUsage
OrgUsage fields
NameTypeRequiredDescription
allowanceinteger | nulloptionalThe allowance; null is unlimited.
at_limitbooleanrequiredTrue once `records >= limit`: new deliveries are refused with 402.
datasetsarray of DatasetUsagerequired
limitinteger | nulloptionalWhere new deliveries start to be refused: the allowance plus its soft buffer (`ALLOWANCE_BUFFER_PERCENT`). Null when unlimited.
over_allowancebooleanrequiredTrue once `records > allowance`: the org is inside its soft buffer. Deliveries are still accepted until `limit`; this is the moment to raise the allowance, not a refusal (#1522).
recordsintegerrequired
remaininginteger | nulloptional`allowance - records`, never negative; null when unlimited.
unitstringrequiredAlways `records`: connected records, summed over every dataset.
OrgView
OrgView fields
NameTypeRequiredDescription
active_config_versioninteger | nulloptional
drop_rootstring | nulloptional
idstringrequired
namestringrequired
resourcesOrgResourcesrequired
statestringrequired
PairLabel
PairLabel fields
NameTypeRequiredDescription
created_atstringrequiredWhen the verdict was first recorded.
dataset_idstringrequiredThe dataset whose record pair this verdict is about — record keys are lake-local.
idstringrequiredUUIDv7, minted by the application.
labeled_bystringrequiredThe actor that recorded the verdict.
model_versionstring | nulloptionalThe model whose score prompted this label, when there was one. Null for a label recorded without a score in front of it.
notestring | nulloptionalOptional free text from the labeller.
org_idstringrequiredThe tenant whose corpus the pair belongs to; every read is scoped by it.
originstringrequiredWhere the verdict came from. `human` is an explicit labelling session; `reviewer` is implicit feedback from resolving a review item; `llm` is a model's suggestion. Kept apart so training can weight or exclude a source, and so an accuracy number can say whose labels it was measured against.
rec_a_keystringrequiredThe pair's lower record key, canonical order — the same ordering match_scores uses, so a label and a score describe the same pair.
rec_b_keystringrequiredThe pair's higher record key, canonical order.
score_at_labelnumber | nulloptionalThe match probability shown to the labeller, so a later accuracy pass can tell what the model thought at the time rather than what it thinks now.
updated_atstringrequiredWhen it was last corrected.
verdictstringrequiredWhether these two records are the same entity. Deliberately binary: a labeller who is unsure should skip rather than guess, because a guessed label trains the model on noise and is indistinguishable afterwards from a confident one.
PersonDuplicateGroup
PersonDuplicateGroup fields
NameTypeRequiredDescription
emailstring | nulloptionalThe golden record's email, when assembled.
entity_idstringrequiredThe resolved entity.
family_namestring | nulloptionalThe golden record's family name, when assembled.
given_namestring | nulloptionalThe golden record's given name, when assembled.
group_confidenceinteger | nulloptionalThe group's confidence (0–100), or null when no member edge is scored.
master_record_keystring | nulloptionalThe strongest-attached member, or null when the group is unscored.
matched_fieldsarray of stringrequiredThe comparison fields any within-group edge matched on.
member_confidencesmap of integerrequiredEach scored member's attachment confidence (0–100), by member key.
member_countintegerrequiredHow many source records resolved to it.
membersarray of stringrequiredThe member records, as `<source_system>:<source_record_id>`, ordered.
model_versionsarray of stringrequiredThe model versions whose scores link the group, deduplicated.
verifiedbooleanrequiredWhether a steward asserted or verified the group.
PersonDuplicatesPage
PersonDuplicatesPage fields
NameTypeRequiredDescription
itemsarray of PersonDuplicateGrouprequired
next_cursorstring | nulloptionalPass as `cursor` for the next page; null on the last page.
snapshotintegerrequiredThe lake snapshot every page of this walk reads; the cursor pins it.
PersonGolden
PersonGolden fields
NameTypeRequiredDescription
addr_citystring | nulloptional
addr_numberstring | nulloptional
addr_postalstring | nulloptional
addr_regionstring | nulloptional
addr_streetstring | nulloptional
addr_unitstring | nulloptional
birth_datestring | nulloptional
emailstring | nulloptional
family_namestring | nulloptional
given_namestring | nulloptional
idstringrequired
metadataanyoptional
phone_e164string | nulloptional
survivorship_versionstringrequired
PreviewPairView
PreviewPairView fields
NameTypeRequiredDescription
confidenceintegerrequiredThe display integer of `match_probability`.
evidenceanyrequiredThe comparison evidence; null if it was not valid JSON.
match_probabilitynumberrequired
rec_a_keystringrequired
rec_b_keystringrequired
PreviewsGenerating
PreviewsGenerating fields
NameTypeRequiredDescription
job_idstringrequired
statestringrequired
Profile
ProfileFinding
ProfileFinding fields
NameTypeRequiredDescription
codestringrequiredThe finding's registry code (P001, P002, …). Codes are append-only and a retired rule keeps its code, so a stored finding stays interpretable after the rule that made it is gone — which is the point of coding them rather than storing only prose.
column_namestringrequiredThe column the finding is about, or the empty string for a dataset-level finding (a duplicate row rate, a schema change). A sentinel rather than NULL because this column is in the natural key, and a NULL key column never matches in a MERGE's ON clause — every re-profile would insert a second copy of the same finding.
created_atstringrequiredRun-logical creation time.
detailanyoptionalThe measurements behind the message — the shares, counts and thresholds — so a consumer can chart or re-check a finding without re-reading the column profile. NULL for a finding whose message is already complete.
idstringrequiredContent-derived row id: sha256('profile_findings:' || profile_run_id || ':' || code || ':' || column_name).
messagestringrequiredThe finding in one human sentence, with its numbers already in it. Rendered rather than templated at read time because the numbers are what make it actionable, and a message assembled later could be assembled against different data than the one that triggered it.
profile_run_idstringrequiredThe profile run that produced this finding. Named for the relation it points at, per the foreign-key convention; no `references` is declared because DuckLake enforces no foreign keys (V11).
severitystringrequiredHow much the finding should interrupt: `error`, `warning` or `info`. Carried on the row rather than looked up from the registry so that a severity reclassification does not retroactively change what a past profile reported.
updated_atstringrequiredRun-logical last-write time.
ProfileNotYet
ProfileNotYet fields
NameTypeRequiredDescription
profiledbooleanrequiredAlways false.
subjectstringrequired
tierintegerrequired
ProfileReport
ProfileReport fields
NameTypeRequiredDescription
candidate_keysarray of CandidateKeyItemrequiredEmpty for a tier-1 run, which does not measure keys.
captured_atstringrequired
column_countintegerrequired
columnsarray of anyrequiredOne generated column-profile row per column. Value-bearing fields (top values, examples) are redacted below Steward.
config_hashstring | nulloptional
corpus_digeststringrequired
data_snapshotintegerrequired
duration_msintegerrequired
findingsarray of ProfileFindingrequired
ingest_batch_idstring | nulloptional
model_versionstring | nulloptional
profile_run_idstringrequired
profiledbooleanrequiredAlways true.
row_countintegerrequired
sample_proportionnumber | nulloptional
sample_seedinteger | nulloptional
sampledbooleanrequiredWhether the figures come from a sample (then `sample_proportion` says how much of the corpus it covered).
source_systemstringrequired
subjectstringrequired
tierintegerrequired
ProfileRun
ProfileRun fields
NameTypeRequiredDescription
captured_atstringrequiredThe run's logical clock, not wall time — so a replayed fixture produces the same row.
column_countintegerrequiredColumns profiled. Read with row_count it says how wide the scan was, which is the only honest predictor of what a re-profile will cost.
config_hashstring | nulloptionalThe config version in force when the profile ran, so a finding about a blocking rule can be traced to the rule set it was judged against. NULL for a profile that predates any published config — the common case for a first delivery, which is exactly when profiling is most useful.
corpus_digeststringrequiredA content digest of the rows profiled, and the actual cache key: one hash per row over all its columns, summed (so row order does not matter) and folded together with the row count. Equal digest means equal data, which is the question a cache has to answer — unlike the lake snapshot, which also moves when something unrelated is written, including this profile itself. Computed in one extra scan, which is cheap beside the distinct counts and top-k the profile already pays for.
created_atstringrequiredRun-logical creation time.
duration_msintegerrequiredWall-clock cost of the profile, kept so the decision to run a deeper tier can be made from a measurement rather than a guess.
idstringrequiredContent-derived row id: sha256('profile_runs:' || subject || ':' || source_system || ':' || corpus_digest || ':' || tier).
ingest_batch_idstring | nulloptionalFor a `raw` subject profiled automatically as a delivery lands, the delivery it describes — which lets drift be read between two consecutive batches. Provenance and ONLY provenance: this described itself as the per-delivery cache key until the auto-profile was built, and it was neither, because the key is `corpus_digest` and nothing populated this column at all. The digest is the better key anyway — two deliveries carrying identical content share it, where keying on the batch recomputes the same answer for every redelivery of an unchanged file. NULL for the standardized and golden subjects, which describe the whole corpus rather than one landing, and NULL for a profile an operator or a schedule asked for, which describes whatever is landed now rather than one batch.
model_versionstring | nulloptionalThe model whose rules a tier-2 or tier-3 profile measured, when one existed. NULL is the normal case for a new corpus and is not a defect: the candidate-key estimates are deliberately computable without a model.
row_countintegerrequiredRows the profile actually read, which is the sampled count when sampling was on. Named row_count rather than rows because `rows` is reserved in DuckDB and a column called that cannot be selected unquoted.
sample_proportionnumber | nulloptionalThe sampled share of rows, NULL when the whole corpus was read.
sample_seedinteger | nulloptionalThe salt the deterministic sample was drawn with, NULL when unsampled. Recorded because the sample is reproducible only if the seed is known, and a profile nobody can redraw cannot be compared against its successor.
sampledbooleanrequiredWhether the figures come from a sample. Stored as its own flag rather than inferred from sample_proportion, because a consumer rendering a number has to know whether it is exact before it decides how to label it.
snapshotintegerrequiredThe DuckLake snapshot version the profile was computed against — informational provenance, deliberately NOT the cache key. It cannot be: the snapshot counter is per-catalog and this profile's own write advances it, so keying on it means every profile invalidates itself and the stored result grows a duplicate on every view instead of being reused. Found by the e2e test that asserts two profiles of unchanged data are one row.
source_systemstringrequiredThe source whose delivered rows were profiled, or `*` when the subject is not source-scoped. A sentinel rather than NULL because this column is part of the natural key, and NULL never equals NULL in a MERGE's ON clause — a nullable key column would miss every match and insert a duplicate profile on each run.
subjectstringrequiredWhich stage of the corpus was profiled: `raw` (as delivered, per source), `standardized` (the canonical attributes), or `golden` (post-resolution). The same aggregates run over all three, which is why a post-resolution profile costs no new machinery. Not an accepted_values list because DuckLake enforces no CHECK constraints (V11) and declaring one would promise a guarantee no layer provides.
tierintegerrequiredProfiling depth: 1 shape (one aggregate pass), 2 entity-resolution readiness (blocking cost, skew, coverage), 3 model readiness (agreement rates, u-probability pre-flight). Kept in the key so a cheap profile is never mistaken for a deep one, and so asking for tier 3 does not read a tier 1 row and report it as complete.
updated_atstringrequiredRun-logical last-write time. A re-profile of an unchanged snapshot rewrites the row in place rather than appending, so this moves while the rest of the row does not.
Quality
QualityBuckets
QualityBuckets fields
NameTypeRequiredDescription
at_least_80integerrequired
below_50integerrequired
between_50_80integerrequired
QualityDimensions
QualityDimensions fields
NameTypeRequiredDescription
completenessnumber | nulloptional
freshnessnumber | nulloptional
validitynumber | nulloptional
QualityReport
QualityReport fields
NameTypeRequiredDescription
bucketsQualityBucketsrequired
configuredbooleanrequiredAlways true.
dimensionsQualityDimensionsrequired
max_scorenumber | nulloptional
mean_scorenumber | nulloptional
min_scorenumber | nulloptional
scoredintegerrequired
worstarray of WorstRecordrequired
QualityUnconfigured
QualityUnconfigured fields
NameTypeRequiredDescription
configuredbooleanrequiredAlways false.
scoredintegerrequiredAlways 0.
RecordQuality
RecordQuality fields
NameTypeRequiredDescription
completenessnumberrequiredWeighted fraction of the configured attributes that are populated.
created_atstringrequiredRun-logical creation time.
freshnessnumber | nulloptional1.0 within `fresh_days` of the run, decaying to 0.0 at `stale_days`. NULL when the source carries no timestamp, because unknown age is not the same as old.
idstringrequiredContent-derived row id: sha256('record_qualities:' || record_key).
record_keystringrequiredThe standardized record scored.
run_idstringrequiredThe run that scored it.
scorenumberrequired0-100, the weighted mean of the dimensions that APPLY to this record. A dimension that cannot be judged is left out of the mean rather than counted as zero.
scored_atstringrequiredThat run's logical clock.
updated_atstringrequiredRun-logical last-write time.
validitynumber | nulloptionalFraction of the PRESENT validatable fields that passed standardization. NULL when the record has none of them — a record with no email is already penalised by completeness, and scoring its validity zero would penalise the same absence twice.
RecordsByKey
RecordsByKey fields
NameTypeRequiredDescription
itemsarray of anyrequiredOne object per found record: `record_key` plus the dataset entity type's standardized columns, so the keys depend on that type.
snapshotintegerrequired
ResolveCandidate
ResolveCandidate fields
NameTypeRequiredDescription
bandstringrequiredWhich band the score falls in under the org's thresholds: `auto_merge` / `review` / `reject`.
confidenceintegerrequiredThe score as the product shows it: the 1–100 projection's display integer (`dedupe_core::confidence`), so a caller rendering this never maps the probability itself.
entity_idstring | nulloptionalThe entity that record currently belongs to, when it belongs to one. A record that has never been through reconcile has no entity yet, and saying `null` is more honest than inventing one.
evidenceanyrequiredPer-comparison evidence behind the score (the waterfall the review queue shows), keyed by each comparison's output column `<c>`: `gamma_<c>` is the comparison level the pair reached, `mw_<c>` that level's match weight (log2 Bayes factor), `mw_tf_adj_<c>` the term-frequency adjustment (only on comparisons with term frequencies), and `match_weight` the pair's total. The prefixes are a fixed contract: a model declaring others is refused at upload.
match_probabilitynumberrequired
record_keystringrequiredThe record the payload matched.
ResolveResult
ResolveResult fields
NameTypeRequiredDescription
candidatesarray of ResolveCandidaterequired
decisionstringrequiredThe single value a form or an ingestion pipeline branches on: the best candidate's band (`auto_merge` / `review`), `reject` when there are none, or `ambiguous` when candidates in two or more different entities each clear `auto_merge` — the record would merge into either, so no one entity is the answer and a person should decide.
snapshotintegerrequiredThe lake snapshot the corpus was read at, so a caller can tell whether it resolved against fresh data.
ResumeAccepted
ResumeAccepted fields
NameTypeRequiredDescription
job_idstringrequired
statestringrequired
ReviewItem
ReviewItem fields
NameTypeRequiredDescription
confidenceinteger | nulloptionalThe display integer of `match_probability`; absent when it is null.
entity_idstring | nulloptional
first_seen_run_idstringrequired
idstringrequired
last_seen_run_idstringrequired
match_probabilitynumber | nulloptionalNull for a structural escalation, which is not a scored pair.
reasonstringrequired
rec_a_keystring | nulloptional
rec_b_keystring | nulloptional
resolved_atstring | nulloptionalNaive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339.
resolved_bystring | nulloptional
statusstringrequired
subject_typestringrequired`pair` for a record-pair review, `entity` for an entity-subject one.
waterfallanyoptional
ReviewMergeGroup
ReviewMergeGroup fields
NameTypeRequiredDescription
itemsarray of anyrequiredRecords-by-key items (each record's values, keyed by the dataset's entity type), each stamped with the `entity_id` it belongs to.
snapshotintegerrequired
totalintegerrequiredThe union's size before the key cap truncated `items`.
ReviewPage
ReviewPage fields
NameTypeRequiredDescription
itemsarray of ReviewItemrequired
next_cursorstring | nulloptional
snapshotintegerrequired
unscored_hiddenintegerrequiredOpen unscored escalations a probability band hid (0 with no band).
RunEventItem
RunEventItem fields
NameTypeRequiredDescription
detailsanyoptional
entity_idstringrequired
event_typestringrequired
idstringrequired
occurred_atstringrequiredNaive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339.
run_idstringrequired
seqintegerrequiredThe run-local order; the page cursor.
RunEventPage
RunEventPage fields
NameTypeRequiredDescription
itemsarray of RunEventItemrequired
next_cursorstring | nulloptional
run_idstringrequired
snapshotintegerrequired
RunItem
RunItem fields
NameTypeRequiredDescription
auto_merged_pairsinteger | nulloptionalPairs this run scored at or above the auto-merge threshold. Absent when the dataset has no readable config, so no count is reported against the wrong threshold.
config_hashstringrequired
ended_atstring | nulloptional
idstringrequired
modestringrequired`full`, `incremental`, `correct`, …
model_versionstring | nulloptional
rebuild_reasonstring | nulloptional
snapshotinteger | nulloptionalThe lake snapshot holding this run's results: pass it as `snapshot` to a result read to read THIS run's output after a newer run has moved the lake. Null while the run is unfinished, and for runs finished before #1229, which never recorded one.
started_atstringrequiredNaive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339.
statusstringrequired
tf_snapshot_idstring | nulloptional
S3IngestCursor
S3IngestCursor fields
NameTypeRequiredDescription
created_atstringrequiredWhen this source was first auto-ingested.
dataset_idstringrequiredThe dataset the polled source lands in.
delivery_idstringrequiredThe delivery this object became, tying the cursor to the audit row and the run it enqueued.
etagstring | nulloptionalThe object's ETag when it was read. The reason this column exists: a tenant who overwrites `crm/daily.csv` with new content leaves the key identical, so a key-only cursor would never read the new rows. Nullable because a listing can omit it.
idstringrequiredUUIDv7, minted by the application.
object_keystringrequiredThe full S3 key of the object last ingested, kept whole so a tenant asking 'which file produced this run' gets the answer rather than a reconstruction.
org_idstringrequiredThe tenant whose prefix was polled; every read is scoped by it.
size_bytesintegerrequiredThe object's size at ingest, so a later shrink is visible as one.
sourcestringrequiredThe config source this object landed as — the first path segment under the tenant's prefix.
updated_atstringrequiredWhen it was last auto-ingested.
SalesforceConnectionItem
SalesforceConnectionItem fields
NameTypeRequiredDescription
activebooleanrequired
api_versionstringrequired
auth_kindstringrequired
idstringrequired
instance_urlstringrequired
namestringrequired
Schedule
Schedule fields
NameTypeRequiredDescription
created_atstringrequiredWhen the schedule was created.
cronstringrequiredThe cron expression.
dataset_idstringrequiredThe dataset this schedule enqueues for.
enabledbooleanrequiredWhether the schedule is active.
idstringrequiredThe schedule's unique id.
kindstringrequiredThe job kind the schedule enqueues.
last_enqueued_atstring | nulloptionalWhen the schedule last enqueued a job.
org_idstringrequiredThe tenant this schedule runs for.
paramsanyrequiredKind-specific parameters.
sourcestringrequiredWhat created the schedule (api, config:correction_pass, system:lake_maintain).
updated_atstringrequiredWall-clock last-write time (database default; advanced by mutations once the entity migrates).
ScheduleCreated
ScheduleCreated fields
NameTypeRequiredDescription
cronstringrequired
idstringrequired
kindstringrequired
ScheduleItem
ScheduleItem fields
NameTypeRequiredDescription
cronstringrequired
enabledbooleanrequired
idstringrequired
kindstringrequiredThe job kind it enqueues.
last_enqueued_atstring | nulloptional
sourcestringrequired`api` or `config`: a config-owned schedule is changed by publishing.
ScheduleToggled
ScheduleToggled fields
NameTypeRequiredDescription
enabledbooleanrequired
idstringrequired
ScoredPair
ScoredPair fields
NameTypeRequiredDescription
confidenceintegerrequired
evidenceanyrequiredPer-comparison evidence behind the score, keyed by each comparison's output column `<c>`: `gamma_<c>` is the comparison level the pair reached, `mw_<c>` that level's match weight (log2 Bayes factor), `mw_tf_adj_<c>` the term-frequency adjustment (only on comparisons with term frequencies), and `match_weight` the pair's total. The prefixes are a fixed contract: a model declaring others is refused at upload.
match_probabilitynumberrequired
model_versionstringrequired
rec_a_keystringrequired
rec_b_keystringrequired
run_idstringrequired
scored_atstringrequiredNaive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339.
SourceInsight
SourceInsight fields
NameTypeRequiredDescription
captured_atstringrequiredchrono's display form (`YYYY-MM-DD HH:MM:SS[.f] UTC`).
contributed_groupsintegerrequired
duplicate_ratenumber | nulloptionalNull when the source contributed no records.
duplicate_recordsintegerrequired
recordsintegerrequired
run_idstringrequired
source_systemstringrequired
SourceInsights
SourceInsights fields
NameTypeRequiredDescription
run_idstring | nulloptionalThe run reported on; null (with no sources) before any run retained one.
snapshotintegerrequired
sourcesarray of SourceInsightrequired
Staged
Staged fields
NameTypeRequiredDescription
action_idstringrequired
pending_until_next_reconcilebooleanrequiredAlways false: the correction lands on the next apply, not the next run.
statusstringrequiredAlways `staged`.
StagedApplied
StagedApplied fields
NameTypeRequiredDescription
action_idstringrequired
apply_jobstringrequired
pending_until_next_reconcilebooleanrequiredAlways false.
statusstringrequiredAlways `staged`: the job, not this request, applies it.
StagedBatch
StagedBatch fields
NameTypeRequiredDescription
action_idsarray of stringrequired
statusstringrequiredAlways `staged`.
StagedBatchApplied
StagedBatchApplied fields
NameTypeRequiredDescription
action_idsarray of stringrequired
apply_jobstringrequired
statusstringrequiredAlways `staged`.
StagedCount
StagedCount fields
NameTypeRequiredDescription
pending_countintegerrequired
StagedRecords
StagedRecords fields
NameTypeRequiredDescription
action_idstring | nulloptionalThe first of `action_ids`: the single-record callers' handle.
action_idsarray of stringrequired
countintegerrequiredHow many records the call named.
pending_until_next_reconcilebooleanrequiredAlways false: the actions land on the next apply.
statusstringrequiredAlways `staged`.
StagedRecordsApplied
StagedRecordsApplied fields
NameTypeRequiredDescription
action_idstring | nulloptional
action_idsarray of stringrequired
apply_jobstringrequired
countintegerrequired
pending_until_next_reconcilebooleanrequired
statusstringrequiredAlways `staged`: the job, not this request, applies them.
StagedStewardAction
StagedStewardAction fields
NameTypeRequiredDescription
actionanyrequiredThe action payload.
applied_atstring | nulloptionalWhen the action was applied, if it has been.
created_atstringrequiredWhen the action was staged.
created_bystringrequiredPrincipal that staged the action.
dataset_idstringrequiredThe dataset whose lake this action drains into.
errorstring | nulloptionalThe failure reason, if the action failed.
idstringrequiredThe staged action's unique id.
org_idstringrequiredThe tenant the action applies to.
statestringrequiredWhether the action is pending, applied or failed.
updated_atstringrequiredWall-clock last-write time (database default; advanced by mutations once the entity migrates).
Tag
Tag fields
NameTypeRequiredDescription
activebooleanrequiredWhether the tag is in use. Retiring is a soft delete: `taggings` references this row, every foreign key in this schema is NO ACTION, and a hard DELETE would therefore fail for exactly the tags that had been used — which is the bug D11 found in webhooks. Keeping the row also keeps the history legible: what a group was once marked as is part of why it was handled the way it was.
apply_min_rolestring | nulloptionalThe minimum role allowed to apply or unapply this tag. Null means the route default (steward). Finer than the route's role check because a tag can name a decision only an admin should be able to mark — the spec's per-tag permission.
created_atstringrequiredWhen the tag was created.
created_bystringrequiredThe actor that created the tag.
descriptionstring | nulloptionalWhat the tag means, for the steward who inherits it. Null when nobody wrote one.
idstringrequiredThe tag's unique id (UUIDv7, minted by the application).
kindstringrequiredWho the tag belongs to. `user` is the steward's vocabulary; `system` is reserved for tags the platform itself writes (merge, manual_merge, unmatch, link, split) — a system tag cannot be retired through the API, and its name cannot be taken by a user tag, so the two vocabularies can never collide.
namestringrequiredThe label a steward sees and types. Unique per tenant among active tags, because two tags with one name make a filter ambiguous and a bulk action unsafe.
org_idstringrequiredThe tenant that owns the tag. A tag is never shared across tenants: it names one tenant's own workflow.
updated_atstringrequiredWall-clock last-write time.
TagApplied
TagApplied fields
NameTypeRequiredDescription
appliedbooleanrequired
TagList
TagList fields
NameTypeRequiredDescription
tagsarray of Tagrequired
TagRemoved
TagRemoved fields
NameTypeRequiredDescription
removedbooleanrequired
TagRetired
TagRetired fields
NameTypeRequiredDescription
retiredbooleanrequired
TagSubjects
TagSubjects fields
NameTypeRequiredDescription
subjectsarray of Taggingrequired
Tagging
Tagging fields
NameTypeRequiredDescription
created_atstringrequiredWhen the tag was applied.
created_bystringrequiredThe actor that applied the tag. Kept because tagging is how work is assigned, so who claimed it matters.
dataset_idstringrequiredThe dataset whose subject this tag is applied to — subject ids are lake-local.
idstringrequiredThe tagging's unique id (UUIDv7, minted by the application).
org_idstringrequiredThe tenant. Denormalised from the tag so every read is scoped by one predicate rather than a join — the same reason every other tenant-scoped relation carries it.
subject_idstringrequiredThe entity id or review id. Deliberately NOT a foreign key: an entity lives in the lake and a review is rebuilt by every reconcile, so a database-level reference would be to a row this store does not own. A tagging whose subject has gone is harmless — it reads as absent and is cleaned up by nothing, which is the honest cost of tagging something another store owns.
subject_typestringrequiredWhat was tagged: `entity` (a resolved cluster, by its entity id) or `review` (an open review item). Two kinds rather than two tables, because a filter and a bulk action want one list of 'things tagged X' and a union of two relations would make every such read a join.
tag_idstringrequiredThe tag applied.
updated_atstringrequiredWall-clock last-write time.
TaggingList
TaggingList fields
NameTypeRequiredDescription
taggingsarray of Taggingrequired
truncatedbooleanrequiredTrue when the cap cut the list: the caller has not seen every tagging.
TaskInstance
TaskInstance fields
NameTypeRequiredDescription
archived_reasonstring | nulloptionalWhy the row stopped being live; NULL while live. retry = archive_try, cleared = a terminal row rotated by clear, restarted = a clear-while-live rotation (complete_restart). Pending rows reset by a clear are not archived (no try was consumed).
countersanyoptionalProgress counters, replaced on every heartbeat and at finish.
created_atstringrequiredRow created.
dataset_idstring | nulloptionalCopied from the job at planning (NULL for org-level jobs); the per-dataset pod lock keys on it once the executor is re-scoped.
error_classstring | nulloptionaler-errors' seven classes plus the executor's four.
error_detailstring | nulloptionalWhy this try failed, as the API reports it: the chain-flattened error (errfmt::chain), truncated to 2000 chars. Read it from GET …/jobs/{job_id}/tasks; raw pod logs are not served (they can carry record values).
escalated_fromstring | nulloptionalClass of the OOMKilled predecessor try, so a mixed-class run is legible.
exit_codeinteger | nulloptionalContainer exit code: the pod's own on finish, the watch's observation on record_evidence. Evidence for the row, never a classifier input (§6.5).
finished_atstring | nulloptionalTerminal state recorded.
heartbeat_atstring | nulloptionalLast heartbeat.
idstringrequireder_ids::natural_id('task_instances', [job_id, task_id, try_number]): a pure function of the attempt key, so the Job name is one too.
image_digeststring | nulloptionalImage digest this try ran, so a deploy mid-run is legible.
inputanyoptionalThe work order: pinned upstream references, the RunPlan, params. Written whole by mark_scheduled at every readiness verdict (never merged), by advance_segment for a fused member, and copied by the retry insert; NULL on a none row.
job_idstringrequiredThe run (jobs.id == run_id).
k8s_job_namestring | nulloptionalbatch/v1 Job name, `er-t-{20 hex of id}-l{launches}`, of the Job that ran this try; for a fused non-head member, the segment head's Job (advance_segment copies it).
kindstringrequiredWhere the body runs: a Kubernetes Job, or a dispatcher-local body under the control-task contract (§3.6).
launchesintegerrequiredInfrastructure budget consumed by this try: Job creates whose pod never ran user code, plus disruptions while running; 1 for a member advanced inside a running segment pod.
liveboolean | nulloptionalTRUE on the live try, NULL once archived (NULLs are distinct, so the partial unique index admits one live row per coordinate).
max_launchesintegerrequiredInfrastructure budget per try.
max_triesintegerrequiredCumulative try budget (Airflow max_tries): retries at planning; previous_try_number + retries after a clear. Eligible to retry while try_number <= max_tries.
next_resource_classstring | nulloptionalOperator override recorded by clear on a restarting row; complete_restart applies it to the successor.
node_namestring | nulloptionalNode the pod landed on.
not_beforestring | nulloptionalBackoff deadline for up_for_retry; a short capacity wait for scheduled.
org_idstringrequiredTenant.
outcomestring | nulloptionalSuccess flavour; no_op is exit 10.
outputanyoptionalThe serialized DurableOutput (a LakeRef or Plan), written at finish.
owner_epochstring | nulloptionalThe dispatcher process epoch (UUIDv7 minted at start) that claimed the launch; adoption rewrites it.
pod_namestring | nulloptionalPod that ran this try, from the pod's bound token on first contact; cross-checked by the watch.
pod_uidstring | nulloptionalPod UID, recorded from the token's claim; the watch confirms it.
queued_atstring | nulloptionalLaunch claimed (write-ahead, before the create).
resource_classstring | nulloptionalClass this try runs at; NULL for a control task. OOM escalation writes a larger class on the next try.
scheduled_atstring | nulloptionalReadiness fired.
segmentstring | nulloptionalFusion segment id resolved at planning; NULL for a task that runs alone.
seqintegerrequiredTopological position from assembly; display and claim order.
snapshot_endinteger | nulloptionalLake snapshot of the task's last commit: the durable reference downstream pins to.
snapshot_startinteger | nulloptionalLake snapshot before the task's first commit.
started_atstring | nulloptionalPod reported start.
statestringrequiredClosed state set (§5). restarting and canceling are the write-ahead markers for clear and cancel of a live row.
task_idstringrequiredTask::NAME, stable across renames.
teardownbooleanrequiredClaimable while the job is canceling (finish).
termination_reasonstring | nulloptionalPlatform evidence, distinct from error_class, free text: OOMKilled, Evicted, DeadlineExceeded, Unschedulable, no_pod_created, vanished, quota, sigterm, sigkill, fenced, stale_start, structural_mismatch, build_skew, control_plane_unreachable, no_terminal_record, heartbeat_timeout, dispatcher_restart, revoked, and kin.
trace_contextstring | nulloptionaltraceparent of this try's span, a child of jobs.trace_context.
trigger_rulestringrequiredCopied from the compiled graph at planning so the UI can explain propagation; the graph is the authority.
try_numberintegerrequired1-based try. A new row per try.
updated_atstringrequiredRow updated.
upstreamanyrequiredUpstream task_ids, a UI projection of the compiled edges.
TaskList
TaskList fields
NameTypeRequiredDescription
tasksarray of TaskInstancerequired
UncertainPair
UncertainPair fields
NameTypeRequiredDescription
confidenceintegerrequired
evidenceanyrequiredPer-comparison evidence behind the score, keyed by each comparison's output column `<c>`: `gamma_<c>` is the comparison level the pair reached, `mw_<c>` that level's match weight (log2 Bayes factor), `mw_tf_adj_<c>` the term-frequency adjustment (only on comparisons with term frequencies), and `match_weight` the pair's total. The prefixes are a fixed contract: a model declaring others is refused at upload.
match_probabilitynumberrequired
model_versionstringrequired
rec_a_keystringrequired
rec_b_keystringrequired
run_idstringrequired
scored_atstringrequiredNaive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339.
UnmatchApplied
UnmatchApplied fields
NameTypeRequiredDescription
action_idsarray of stringrequired
apply_jobstringrequired
entity_idstringrequired
pairsintegerrequired
statusstringrequiredAlways `applied`.
UnmatchStaged
UnmatchStaged fields
NameTypeRequiredDescription
action_idsarray of stringrequired
entity_idstringrequired
pairsintegerrequired
pending_until_next_reconcilebooleanrequiredAlways true.
statusstringrequiredAlways `staged`.
UnmergeApplied
UnmergeApplied fields
NameTypeRequiredDescription
action_idsarray of stringrequired
apply_jobstringrequired
pairsintegerrequired
statusstringrequiredAlways `applied`.
UnmergeStaged
UnmergeStaged fields
NameTypeRequiredDescription
action_idsarray of stringrequired
pairsintegerrequiredHow many never-rules were staged (one per peeled record).
pending_until_next_reconcilebooleanrequiredAlways true.
statusstringrequiredAlways `staged`.
UploadAborted
UploadAborted fields
NameTypeRequiredDescription
statestringrequired
upload_idstringrequired
UploadPart
UploadPart fields
NameTypeRequiredDescription
bytesintegerrequired
partintegerrequired
sha256stringrequiredThe part's SHA-256 as received — compare with your copy.
UploadSession
UploadSession fields
NameTypeRequiredDescription
bytesintegerrequired
expires_atstringrequiredRFC 3339. Past it every call but abort is a 410.
part_countintegerrequired
part_sizeintegerrequiredEvery part but the last is exactly this many bytes.
part_urlstringrequiredPUT each part's bytes here, replacing `{part}` with 1..=part_count.
parts_receivedarray of integerrequiredThe parts already stored, ascending: a resuming client sends the rest.
sha256stringrequired
sourcestringrequired
upload_idstringrequired
UpsertPolicyList
UpsertPolicyList fields
NameTypeRequiredDescription
itemsarray of UpsertPolicyViewrequired
UpsertPolicyView
UpsertPolicyView fields
NameTypeRequiredDescription
connection_idstringrequired
created_atstringrequiredRFC 3339.
created_bystringrequired
external_id_fieldstringrequired
field_mappingobjectrequired
idstringrequiredThe revision an upsert preview binds.
objectstringrequired
sourcesarray of stringrequired
writeback_allowlistarray of stringrequired
UpsertPreviewPage
UpsertPreviewPage fields
NameTypeRequiredDescription
itemsarray of UpsertPreviewViewrequired
next_cursorstring | nulloptionalPass as `cursor` for the next page; null on the last.
UpsertPreviewView
UpsertPreviewView fields
NameTypeRequiredDescription
apply_detailstring | nulloptional
apply_statusstring | nulloptionalThe apply, once begun: `applying`, `created`, `updated`, `failed` or `skipped_stale`.
connection_idstringrequired
created_atstringrequiredRFC 3339.
decided_bystring | nulloptional
entity_idstringrequired
external_id_fieldstringrequired
external_id_valuestringrequired
fieldsobjectrequiredProvider field → value to write.
fingerprintstringrequiredName it to approve or reject.
idstringrequired
objectstringrequired
policy_revisionstringrequiredThe upsert policy revision it was built under.
sf_record_idstring | nulloptionalThe Salesforce id written, once applied.
statusstringrequired`planned`, `approved`, `rejected` or `superseded`.
Webhook
Webhook fields
NameTypeRequiredDescription
activebooleanrequiredWhether the webhook is active.
created_atstringrequiredWhen the webhook was registered.
dataset_idstring | nulloptionalOptional dataset filter: NULL subscribes to every dataset's events.
eventsanyrequiredThe subscribed event types.
idstringrequiredThe webhook's unique id.
org_idstringrequiredThe tenant that owns the webhook.
updated_atstringrequiredWall-clock last-write time (database default; advanced by mutations once the entity migrates).
urlstringrequiredThe delivery URL.
WebhookCreated
WebhookCreated fields
NameTypeRequiredDescription
activebooleanrequiredAlways true.
eventsarray of stringrequired
idstringrequired
secretstringrequiredThe HMAC-SHA256 key for `X-ER-Signature`; not returned again.
urlstringrequired
WebhookDelivery
WebhookDelivery fields
NameTypeRequiredDescription
attemptintegerrequiredAttempts handed out. Counted when claimed, not when reported, so a drainer that dies still consumes one.
created_atstringrequiredWhen the event was recorded, which is before any delivery was attempted.
dataset_idstring | nulloptionalThe dataset the delivered event came from, when it has one (provenance).
delivered_atstring | nulloptionalWhen a 2xx was received; NULL unless state is delivered.
errorstring | nulloptionalWhy the last attempt did not deliver: a transport error, or the outbound-URL guard's refusal.
event_typestringrequiredThe catalogued event (webhook::EVENT_CATALOG), e.g. job.succeeded.
idstringrequiredUUIDv7, minted by the application.
max_attemptsintegerrequiredAttempts before giving up. Six with the backoff below spans about ten minutes.
next_attempt_atstring | nulloptionalWhen this becomes claimable. NULL means immediately; set to a backoff in the future after a retryable failure.
org_idstringrequiredThe tenant whose subscriber this is for; every read is scoped by it.
payloadanyrequiredThe exact body to POST. Stored rather than rebuilt so a retry delivers the same bytes the signature was computed over, and so the log shows what was actually sent.
response_codeinteger | nulloptionalThe subscriber's HTTP status, when the POST completed at all.
statestringrequiredpending until a drain settles it; delivered on a 2xx; failed when retries are exhausted or the destination is refused outright.
updated_atstringrequiredLast write.
webhook_idstringrequiredThe subscription being delivered to.
WebhookDeliveryList
WebhookDeliveryList fields
NameTypeRequiredDescription
deliveriesarray of WebhookDeliveryrequired
WebhookEventCatalog
WebhookEventCatalog fields
NameTypeRequiredDescription
eventsarray of WebhookEventItemrequired
WebhookEventItem
WebhookEventItem fields
NameTypeRequiredDescription
descriptionstringrequired
eventstringrequired
WebhookItem
WebhookItem fields
NameTypeRequiredDescription
activebooleanrequired
eventsanyrequiredSubscribed event names; empty subscribes to all.
idstringrequired
urlstringrequired
WorkOrder
WorkOrder fields
NameTypeRequiredDescription
connectionanyrequiredSalesforce credentials and watermark for an extract task; null otherwise.
dataset_idstring | nulloptional
drop_rootstring | nulloptional
inputanyoptional
job_idstringrequired
kindstringrequired
labelsarray of array of stringrequired`(rec_a_key, rec_b_key)` verdict pairs, for a train task.
lake_envanyrequiredThe lake connection env the task opens.
lineagearray of stringrequiredThe attempt's task chain, current first.
max_triesintegerrequired
modelsarray of objectrequiredThe tenant's active models, for scoring tasks.
org_idstringrequired
paramsanyrequired
resource_classstring | nulloptional
run_idstringrequired
segmentstring | nulloptional
statestringrequired
structural_fingerprintstring | nulloptional
task_idstringrequired
trigger_rulestringrequired
try_numberintegerrequired
WorstRecord
WorstRecord fields
NameTypeRequiredDescription
completenessnumberrequired
freshnessnumber | nulloptional
record_keystringrequired
scorenumberrequired
validitynumber | nulloptional
WritebackAuthorizationStarted
WritebackAuthorizationStarted fields
NameTypeRequiredDescription
authorize_urlstringrequiredSend the reviewer here; Salesforce returns them to `redirect_uri` with `code` and `state`.
expires_atstringrequiredRFC 3339; complete before this.
WritebackAuthorizationView
WritebackAuthorizationView fields
NameTypeRequiredDescription
allow_automaticbooleanrequired
authorized_bystringrequired
created_atstringrequiredRFC 3339.
revoked_atstring | nulloptionalRFC 3339.
revoked_reasonstring | nulloptional`consent_withdrawn`, `replaced` or `requested`.
scopesstringrequired
sf_org_idstringrequired
sf_user_idstringrequiredThe Salesforce user writeback acts as.
sf_usernamestring | nulloptional
statusstringrequired`active` or `revoked`.
WritebackPolicyList
WritebackPolicyList fields
NameTypeRequiredDescription
itemsarray of WritebackPolicyViewrequired
WritebackPolicyView
WritebackPolicyView fields
NameTypeRequiredDescription
connection_idstringrequired
created_atstringrequiredRFC 3339.
created_bystringrequired
election_policystringrequired
field_mappinganyrequired
idstringrequiredThe revision id a merge preview binds.
objectstringrequired
writeback_allowlistanyrequired