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.
- 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.
- Set it as a bearer credential. Every operation below except the health probes needs
Authorization: Bearerwith that key. A key acts only within its own organization and never above its role. - 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.
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required |
Success response: OrgView
| Name | Type | Required | Description |
|---|---|---|---|
active_config_version | integer | null | optional | |
drop_root | string | null | optional | |
id | string | required | |
name | string | required | |
resources | OrgResources | required | |
state | string | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required |
Success response: ApiKeyList
| Name | Type | Required | Description |
|---|---|---|---|
keys | array of ApiKey | required | Metadata only: the wire form has no `key_hash`, and the plaintext was shown once at mint time and is not stored. |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
role | string | required |
Success response: KeyIssued
| Name | Type | Required | Description |
|---|---|---|---|
id | string | required | |
key | string | required | |
role | string | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
key_id | string | required |
Success response: KeyRevoked
| Name | Type | Required | Description |
|---|---|---|---|
revoked | boolean | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
action | string | optional | Only entries with this action. |
actor | string | optional | Only entries by this actor. |
before_id | string | optional | Keyset cursor: only entries with a smaller id; an integer. |
format | string | optional | `csv` for a text/csv export; JSON otherwise. |
limit | string | optional | Maximum items to return; an integer, clamped to the endpoint's range when out of it. |
since | string | optional | Inclusive lower bound on the timestamp (any form `timestamptz` accepts). |
until | string | optional | Exclusive upper bound on the timestamp. |
Success response: AuditEntry
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required |
Success response: SalesforceConnectionItem
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
api_version | string | any | null | optional | |
auth_kind | string | any | null | optional | |
client_id | string | required | |
client_secret | string | required | |
instance_url | string | required | |
name | string | required |
Success response: a JSON object; see the fields below.
| Name | Type | Required | Description |
|---|---|---|---|
active | any | optional | |
api_version | any | optional | |
auth_kind | any | optional | |
id | any | optional | |
instance_url | any | optional | |
name | any | optional |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
connection_id | string | required |
Success response: Deleted
| Name | Type | Required | Description |
|---|---|---|---|
deleted | boolean | required |
curl -X DELETE "$ER_API_ORIGIN/v1/orgs/$ER_ORG/connections/<connection_id>" \
-H "Authorization: Bearer $ER_API_KEY"GET/v1/orgs/{org}/datasetsviewer+
an org's datasets
Bearer key with at least the viewer role, scoped to the organization in the path.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required |
Success response: DatasetView
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
config_path | string | any | null | optional | |
display_name | string | any | null | optional | |
drop_root | string | any | null | optional | |
entity_type | string | any | null | optional | |
env | map of string | optional | |
name | string | required | |
s3_ingest_bucket | string | any | null | optional | |
s3_ingest_prefix | string | any | null | optional |
Success response: DatasetProvisioning or DatasetCreated
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
Success response: DatasetView
| Name | Type | Required | Description |
|---|---|---|---|
active_config_version | integer | null | optional | |
created_at | string | required | |
display_name | string | null | optional | |
entity_type | string | required | |
name | string | required | |
state | string | required | |
updated_at | string | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
display_name | string | any | null | optional |
Success response: DatasetView
| Name | Type | Required | Description |
|---|---|---|---|
active_config_version | integer | null | optional | |
created_at | string | required | |
display_name | string | null | optional | |
entity_type | string | required | |
name | string | required | |
state | string | required | |
updated_at | string | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
Success response: a JSON object; see the fields below.
| Name | Type | Required | Description |
|---|---|---|---|
job_id | any | optional | |
name | any | optional | |
purge_after | any | optional | |
state | any | optional |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required |
Success response: a JSON object; see the fields below.
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
Success response: ConfigVersionView
| Name | Type | Required | Description |
|---|---|---|---|
config_hash | string | required | |
created_at | string | required | |
created_by | string | required | |
published_at | string | null | optional | |
state | string | required | `draft`, `published` or `superseded`. |
tier | string | null | optional | The rebuild tier the publish chose; null until published. |
version | integer | required | |
yaml | string | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
yaml | string | required |
Success response: ConfigValidation
| Name | Type | Required | Description |
|---|---|---|---|
changed_blocks | array of string | required | The top-level blocks that differ from the active config. |
config_hash | string | null | optional | The canonical document's hash, the value a run records as the config it executed under; null when the YAML does not load. |
problems | array of string | required | Every reason publish would refuse it, each naming what to change. |
tier | string | null | optional | The rebuild tier publish would queue (`A`, `B` or `C`), versus the dataset's active config; null when nothing that matters changed. |
valid | boolean | required | True when publish would accept the document as written. |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
Success response: ConfigVersionItem
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
yaml | string | required |
Success response: ConfigDraftCreated
| Name | Type | Required | Description |
|---|---|---|---|
config_hash | string | required | |
org | string | required | |
state | string | required | Always `draft`. |
version | integer | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required | |
version | string | required |
Success response: ConfigVersionView
| Name | Type | Required | Description |
|---|---|---|---|
config_hash | string | required | |
created_at | string | required | |
created_by | string | required | |
published_at | string | null | optional | |
state | string | required | `draft`, `published` or `superseded`. |
tier | string | null | optional | The rebuild tier the publish chose; null until published. |
version | integer | required | |
yaml | string | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required | |
version | string | required |
Success response: ConfigPublished
| Name | Type | Required | Description |
|---|---|---|---|
advisories | array of string | required | What the latest profile says about the config that just went live: advice, never a refusal. |
changed_blocks | array of string | required | |
jobs_enqueued | array of string | required | The rebuild jobs the tier queued, in order. |
org | string | required | |
published_by | string | required | |
tier | string | null | optional | The rebuild tier the changed blocks required. |
version | integer | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
Success response: a JSON object; see the fields below.
| Name | Type | Required | Description |
|---|---|---|---|
rows | any | optional |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
rows | array of object | required |
Success response: a JSON object; see the fields below.
| Name | Type | Required | Description |
|---|---|---|---|
apply_job | any | optional | |
rows | any | optional |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
Success response: Lexicon
| Name | Type | Required | Description |
|---|---|---|---|
pairs | array of LexiconPair | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
pairs | array of object | required |
Success response: LexiconSaved
| Name | Type | Required | Description |
|---|---|---|---|
apply_job | string | required | The `run_all_full` job that re-standardizes with the new pairs. |
pairs | array of LexiconPair | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
Success response: a JSON object; see the fields below.
| Name | Type | Required | Description |
|---|---|---|---|
active | any | optional | |
items | any | optional |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required | |
name | string | required | |
version | integer | required |
Success response: ModelDetail
| Name | Type | Required | Description |
|---|---|---|---|
activated_at | string | null | optional | RFC 3339, microseconds. |
comparator_algorithm_version | integer | null | optional | The comparator algorithm the document was trained with; null when the stored document does not parse. |
created_at | string | required | RFC 3339, microseconds. |
created_by | string | required | |
entity_type | string | required | |
id | string | required | |
model_hash | string | required | |
model_version_label | string | required | |
name | string | required | |
provenance | any | required | |
state | string | required | |
tf_snapshot_id | string | null | optional | |
version | integer | required | |
model_json | string | required | The stored settings document, as text. |
weights | any | required | Per comparison level: m/u and the log-odds they imply. Null when the document does not parse. |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required | |
name | string | required | |
version | integer | required |
Success response: a JSON object; see the fields below.
| Name | Type | Required | Description |
|---|---|---|---|
model_hash | any | optional | |
name | any | optional | |
state | any | optional | |
version | any | optional |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required | |
name | string | required | |
version | integer | required |
| Name | Type | Required | Description |
|---|---|---|---|
threshold | string | optional | The cut to evaluate at (0–1); the configured auto-merge threshold when omitted. |
Success response: ModelEvaluation
| Name | Type | Required | Description |
|---|---|---|---|
by_origin | map of ConfusionMetrics | required | Per label origin that has any evaluable label. |
counts | EvaluationCounts | required | |
curve | array of CurvePoint | required | |
model_version_label | string | required | |
overall | ConfusionMetrics | required | |
threshold | number | required | |
name | string | required | |
state | string | required | |
version | integer | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
Success response: ModelCompiled
| Name | Type | Required | Description |
|---|---|---|---|
activated_at | string | null | optional | RFC 3339, microseconds. |
comparator_algorithm_version | integer | null | optional | The comparator algorithm the document was trained with; null when the stored document does not parse. |
created_at | string | required | RFC 3339, microseconds. |
created_by | string | required | |
entity_type | string | required | |
id | string | required | |
model_hash | string | required | |
model_version_label | string | required | |
name | string | required | |
provenance | any | required | |
state | string | required | |
tf_snapshot_id | string | null | optional | |
version | integer | required | |
notes | array of string | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
model_json | string | required | |
model_version_label | string | required | |
name | string | any | null | optional | |
provenance | any | any | null | optional | |
tf_snapshot_id | string | any | null | optional |
Success response: ModelSummary
| Name | Type | Required | Description |
|---|---|---|---|
activated_at | string | null | optional | RFC 3339, microseconds. |
comparator_algorithm_version | integer | null | optional | The comparator algorithm the document was trained with; null when the stored document does not parse. |
created_at | string | required | RFC 3339, microseconds. |
created_by | string | required | |
entity_type | string | required | |
id | string | required | |
model_hash | string | required | |
model_version_label | string | required | |
name | string | required | |
provenance | any | required | |
state | string | required | |
tf_snapshot_id | string | null | optional | |
version | integer | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
Success response: a JSON object; see the fields below.
| Name | Type | Required | Description |
|---|---|---|---|
bucket | any | optional | |
prefix | any | optional | |
sources | any | optional |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
Success response: ScheduleItem
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
cron | string | required | |
kind | string | required | |
params | any | any | null | optional |
Success response: ScheduleCreated
| Name | Type | Required | Description |
|---|---|---|---|
cron | string | required | |
id | string | required | |
kind | string | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required | |
schedule_id | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
enabled | boolean | required |
Success response: ScheduleToggled
| Name | Type | Required | Description |
|---|---|---|---|
enabled | boolean | required | |
id | string | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required | |
schedule_id | string | required |
Success response: Deleted
| Name | Type | Required | Description |
|---|---|---|---|
deleted | boolean | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
Success response: a JSON object; see the fields below.
| Name | Type | Required | Description |
|---|---|---|---|
segments | any | optional |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
Success response: a JSON object; see the fields below.
| Name | Type | Required | Description |
|---|---|---|---|
job | any | optional |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
cursor | string | optional | The opaque `next_cursor` of the previous page; omit for the first page. |
limit | string | optional | Maximum items to return; an integer, clamped to the endpoint's range when out of it. |
source | string | optional | The source system. |
Success response: a JSON object; see the fields below.
| Name | Type | Required | Description |
|---|---|---|---|
items | array of any | required | |
next_cursor | string | null | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
source | string | optional | The source system. |
mode | string | optional | `upsert` (the default and only mode): rows add or replace by record key; nothing the file omits is deleted. |
Success response: DeliveryAccepted
| Name | Type | Required | Description |
|---|---|---|---|
delivery_id | string | required | |
job | Job | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
limit | string | optional | Maximum items to return; an integer, clamped to the endpoint's range when out of it. |
source | string | optional | The source system. |
Success response: ImportReceipt
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
Success response: RecordsByKey
| Name | Type | Required | Description |
|---|---|---|---|
items | array of any | required | One object per found record: `record_key` plus the dataset entity type's standardized columns, so the keys depend on that type. |
snapshot | integer | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
apply_now | boolean | optional | |
record_key | string | any | null | optional | |
record_keys | array of string | optional |
Success response: StagedRecords or StagedRecordsApplied
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
mode | string | any | null | optional | |
records | array of any | required | |
source | string | required |
Success response: DeliveryAccepted
| Name | Type | Required | Description |
|---|---|---|---|
delivery_id | string | required | |
job | Job | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
apply_now | boolean | optional | |
record_key | string | any | null | optional | |
record_keys | array of string | optional |
Success response: StagedRecords or StagedRecordsApplied
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
apply_now | boolean | optional | |
record_key | string | any | null | optional | |
record_keys | array of string | optional |
Success response: StagedRecords or StagedRecordsApplied
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
apply_now | boolean | optional | |
record_key | string | any | null | optional | |
record_keys | array of string | optional |
Success response: StagedRecords or StagedRecordsApplied
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
apply_now | boolean | optional | |
record_key | string | required |
Success response: UnmatchStaged or UnmatchApplied
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
apply_now | boolean | optional | |
record_key | string | any | null | optional | |
record_keys | array of string | optional |
Success response: StagedRecords or StagedRecordsApplied
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
apply_now | boolean | optional | |
record_key | string | any | null | optional | |
record_keys | array of string | optional |
Success response: StagedRecords or StagedRecordsApplied
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
apply_now | boolean | optional | |
attribute | string | any | null | optional | |
record_key | string | any | null | optional | |
record_keys | array of string | optional |
Success response: StagedRecords or StagedRecordsApplied
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
apply_now | boolean | optional | |
attribute | string | any | null | optional | |
record_key | string | any | null | optional | |
record_keys | array of string | optional |
Success response: StagedRecords or StagedRecordsApplied
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
bytes | integer | required | |
sha256 | string | required | |
source | string | required |
Success response: a JSON object; see the fields below.
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required | |
upload_id | string | required |
Success response: a JSON object; see the fields below.
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required | |
upload_id | string | required |
Success response: UploadAborted
| Name | Type | Required | Description |
|---|---|---|---|
state | string | required | |
upload_id | string | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required | |
upload_id | string | required |
Success response: DeliveryAccepted
| Name | Type | Required | Description |
|---|---|---|---|
delivery_id | string | required | |
job | Job | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required | |
upload_id | string | required | |
part | string | required |
Success response: UploadPart
| Name | Type | Required | Description |
|---|---|---|---|
bytes | integer | required | |
part | integer | required | |
sha256 | string | required | The part's SHA-256 as received — compare with your copy. |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
largest | string | optional | How many of the largest blocks to report; an integer. |
Success response: BlockingEstimate
| Name | Type | Required | Description |
|---|---|---|---|
candidate_pairs | integer | required | What the declared rules actually generate: the number that decides the run's cost. |
largest_blocks | array of LargestBlockEstimate | required | |
per_rule | array of BlockingRuleEstimate | required | |
total_possible_pairs | integer | required | Every pair the corpus could produce — what resolution would cost with no blocking at all. |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
stale_days | string | optional | A record not updated in this many days counts as stale; an integer. |
Success response: DataQuality
| Name | Type | Required | Description |
|---|---|---|---|
completeness | Completeness | required | |
dq_score | number | required | The mean of completeness and the complements of the three rates. |
duplicate_rate | number | required | |
entities | integer | required | |
junk_rate | number | required | |
records | integer | required | |
snapshot | integer | required | |
stale_days | integer | required | |
stale_rate | number | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
limit | string | optional | Maximum items to return; an integer, clamped to the endpoint's range when out of it. |
Success response: InsightSeries
| Name | Type | Required | Description |
|---|---|---|---|
series | array of InsightPoint | required | |
snapshot | integer | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
run_id | string | optional | The run to report on; the newest when omitted. |
Success response: SourceInsights
| Name | Type | Required | Description |
|---|---|---|---|
run_id | string | null | optional | The run reported on; null (with no sources) before any run retained one. |
snapshot | integer | required | |
sources | array of SourceInsight | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
limit | string | optional | Maximum items to return; an integer, clamped to the endpoint's range when out of it. |
state | string | optional | Only items in this state. |
Success response: JobList
| Name | Type | Required | Description |
|---|---|---|---|
jobs | array of Job | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
kind | string | required | |
priority | integer | optional | |
segment | string | any | null | optional |
Success response: Job
| Name | Type | Required | Description |
|---|---|---|---|
attempt | integer | required | Attempts made so far. |
clear_number | integer | null | optional | Incremented by every clear; fences readiness verdicts composed before the clear. Read as COALESCE(clear_number, 0). |
created_at | string | required | When the job was enqueued. |
created_by | string | null | optional | Principal that created the job. |
dataset_id | string | null | optional | The 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_class | string | null | optional | Why 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_detail | string | null | optional | The failure's human text, already chain-flattened. Kept beside error_class so a steward sees the reason without reading pod logs. |
finished_at | string | null | optional | When the job finished. |
id | string | required | The job's unique id (UUIDv7, minted at enqueue). |
idempotency_key | string | null | optional | Optional dedup key, unique per org. |
image_digest | string | null | optional | Image digest the planning dispatcher ran, so a deploy mid-run is legible. |
kind | string | required | The job kind (run_all, correct, maintain, train, ...). |
max_attempts | integer | required | Vestigial: 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_before | string | null | optional | Earliest time the job may be claimed. A retry sets it to the backoff deadline. |
org_id | string | required | The tenant this job runs for. |
owner_epoch | string | null | optional | The dispatcher process epoch that planned or adopted the run. |
params | any | required | Kind-specific parameters. |
policy_hash | string | null | optional | sha256 over the compiled DAG's per-node policy (retries, backoff, timeout, class, segment); a divergence proceeds with the diff logged. |
priority | integer | required | Claim priority; higher runs first. |
resource_class | string | null | optional | Requested runner resource class. |
run_id | string | null | optional | The run this job produced, once dispatched. |
schedule_id | string | null | optional | The schedule that enqueued the job, if any. |
started_at | string | null | optional | When the job started running. |
state | string | required | Lifecycle state (queued, dispatching, running, succeeded, failed, canceling, canceled). |
structural_fingerprint | string | null | optional | sha256 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_context | string | null | optional | Propagated trace context. |
updated_at | string | required | When the job row was last updated. |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required | |
job_id | string | required |
Success response: Job
| Name | Type | Required | Description |
|---|---|---|---|
attempt | integer | required | Attempts made so far. |
clear_number | integer | null | optional | Incremented by every clear; fences readiness verdicts composed before the clear. Read as COALESCE(clear_number, 0). |
created_at | string | required | When the job was enqueued. |
created_by | string | null | optional | Principal that created the job. |
dataset_id | string | null | optional | The 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_class | string | null | optional | Why 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_detail | string | null | optional | The failure's human text, already chain-flattened. Kept beside error_class so a steward sees the reason without reading pod logs. |
finished_at | string | null | optional | When the job finished. |
id | string | required | The job's unique id (UUIDv7, minted at enqueue). |
idempotency_key | string | null | optional | Optional dedup key, unique per org. |
image_digest | string | null | optional | Image digest the planning dispatcher ran, so a deploy mid-run is legible. |
kind | string | required | The job kind (run_all, correct, maintain, train, ...). |
max_attempts | integer | required | Vestigial: 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_before | string | null | optional | Earliest time the job may be claimed. A retry sets it to the backoff deadline. |
org_id | string | required | The tenant this job runs for. |
owner_epoch | string | null | optional | The dispatcher process epoch that planned or adopted the run. |
params | any | required | Kind-specific parameters. |
policy_hash | string | null | optional | sha256 over the compiled DAG's per-node policy (retries, backoff, timeout, class, segment); a divergence proceeds with the diff logged. |
priority | integer | required | Claim priority; higher runs first. |
resource_class | string | null | optional | Requested runner resource class. |
run_id | string | null | optional | The run this job produced, once dispatched. |
schedule_id | string | null | optional | The schedule that enqueued the job, if any. |
started_at | string | null | optional | When the job started running. |
state | string | required | Lifecycle state (queued, dispatching, running, succeeded, failed, canceling, canceled). |
structural_fingerprint | string | null | optional | sha256 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_context | string | null | optional | Propagated trace context. |
updated_at | string | required | When the job row was last updated. |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required | |
job_id | string | required |
Success response: Job
| Name | Type | Required | Description |
|---|---|---|---|
attempt | integer | required | Attempts made so far. |
clear_number | integer | null | optional | Incremented by every clear; fences readiness verdicts composed before the clear. Read as COALESCE(clear_number, 0). |
created_at | string | required | When the job was enqueued. |
created_by | string | null | optional | Principal that created the job. |
dataset_id | string | null | optional | The 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_class | string | null | optional | Why 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_detail | string | null | optional | The failure's human text, already chain-flattened. Kept beside error_class so a steward sees the reason without reading pod logs. |
finished_at | string | null | optional | When the job finished. |
id | string | required | The job's unique id (UUIDv7, minted at enqueue). |
idempotency_key | string | null | optional | Optional dedup key, unique per org. |
image_digest | string | null | optional | Image digest the planning dispatcher ran, so a deploy mid-run is legible. |
kind | string | required | The job kind (run_all, correct, maintain, train, ...). |
max_attempts | integer | required | Vestigial: 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_before | string | null | optional | Earliest time the job may be claimed. A retry sets it to the backoff deadline. |
org_id | string | required | The tenant this job runs for. |
owner_epoch | string | null | optional | The dispatcher process epoch that planned or adopted the run. |
params | any | required | Kind-specific parameters. |
policy_hash | string | null | optional | sha256 over the compiled DAG's per-node policy (retries, backoff, timeout, class, segment); a divergence proceeds with the diff logged. |
priority | integer | required | Claim priority; higher runs first. |
resource_class | string | null | optional | Requested runner resource class. |
run_id | string | null | optional | The run this job produced, once dispatched. |
schedule_id | string | null | optional | The schedule that enqueued the job, if any. |
started_at | string | null | optional | When the job started running. |
state | string | required | Lifecycle state (queued, dispatching, running, succeeded, failed, canceling, canceled). |
structural_fingerprint | string | null | optional | sha256 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_context | string | null | optional | Propagated trace context. |
updated_at | string | required | When the job row was last updated. |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required | |
job_id | string | required |
Success response: ResumeAccepted
| Name | Type | Required | Description |
|---|---|---|---|
job_id | string | required | |
state | string | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required | |
job_id | string | required |
Success response: TaskList
| Name | Type | Required | Description |
|---|---|---|---|
tasks | array of TaskInstance | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required | |
job_id | string | required | |
task_id | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
resource_class | string | any | null | optional | |
retries | integer | any | null | optional |
Success response: ClearAccepted
| Name | Type | Required | Description |
|---|---|---|---|
cleared | array of string | required | |
demanded_upstream | array of string | required | |
reopened | boolean | required | |
reset | integer | required | |
restarting | integer | required | |
rotated | integer | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
limit | string | optional | Maximum items to return; an integer, clamped to the endpoint's range when out of it. |
Success response: MatchPreviewView
| Name | Type | Required | Description |
|---|---|---|---|
sample | array of PreviewPairView | required | |
total | integer | required | |
would_auto_merge | integer | required | |
would_review | integer | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
Success response: Metrics
| Name | Type | Required | Description |
|---|---|---|---|
duplicate_groups | integer | required | |
entities | integer | required | |
open_reviews | integer | required | |
records | integer | required | |
records_in_duplicate_groups | integer | required | |
snapshot | integer | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
source | string | optional | The source system. |
subject | string | optional | The corpus stage profiled. |
tier | string | optional | Profile tier, 1 or 2; an integer (default 1). |
Success response: 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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
Success response: a JSON object; see the fields below.
| Name | Type | Required | Description |
|---|---|---|---|
job | any | optional |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
limit | string | optional | Maximum items to return; an integer, clamped to the endpoint's range when out of it. |
Success response: 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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
Success response: a JSON object; see the fields below.
| Name | Type | Required | Description |
|---|---|---|---|
name | any | optional | |
state | any | optional |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
Success response: RunItem
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required | |
run_id | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
cursor | string | optional | The opaque `next_cursor` of the previous page; omit for the first page. |
event_type | string | optional | Only events of this type. |
limit | string | optional | Maximum items to return; an integer, clamped to the endpoint's range when out of it. |
Success response: RunEventPage
| Name | Type | Required | Description |
|---|---|---|---|
items | array of RunEventItem | required | |
next_cursor | string | null | optional | |
run_id | string | required | |
snapshot | integer | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
Success response: StagedCount
| Name | Type | Required | Description |
|---|---|---|---|
pending_count | integer | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
Success response: a JSON object; see the fields below.
| Name | Type | Required | Description |
|---|---|---|---|
name | any | optional | |
state | any | optional |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
cursor | string | optional | The opaque `next_cursor` of the previous page; omit for the first page. |
snapshot | integer | optional | Read 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_tag | string | optional | Exclude groups carrying this tag. |
limit | string | optional | Maximum items to return; an integer, clamped to the endpoint's range when out of it. |
matched_by | string | optional | Only groups matched by this model version. |
matched_on | string | optional | Only groups whose evidence names this comparison column. |
max_confidence | string | optional | Upper bound on group confidence (0–100); an integer. |
max_members | string | optional | Upper bound on group size; an integer. |
member | string | optional | Jump to the group containing this record key. |
min_confidence | string | optional | Lower bound on group confidence (0–100); an integer. |
min_members | string | optional | Lower bound on group size; an integer. |
tag | string | optional | Only groups carrying this tag. |
verified | string | optional | `true` or `false`: only (un)verified groups. |
Success response: PersonDuplicatesPage or AccountDuplicatesPage
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/duplicates" \
-H "Authorization: Bearer $ER_API_KEY"GET/v1/orgs/{org}/datasets/{ds}/entities/{entity_id}/linksviewer+
every link touching one entity, from either side
Bearer key with at least the viewer role, scoped to the organization in the path.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required | |
entity_id | string | required |
Success response: EntityLinkList
| Name | Type | Required | Description |
|---|---|---|---|
items | array of EntityLink | required |
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/entities/<entity_id>/links" \
-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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
child_entity_id | string | required | |
kind | string | required | |
note | string | any | null | optional | |
parent_entity_id | string | required |
Success response: EntityLink
| Name | Type | Required | Description |
|---|---|---|---|
child_entity_id | string | required | The entity on the member side — the person in the household, the subsidiary. |
created_at | string | required | When the link was created. |
created_by | string | required | The actor that created the link. |
dataset_id | string | required | The dataset whose entities this link relates — entity ids are lake-local. |
id | string | required | The link's unique id (UUIDv7, minted by the application). |
kind | string | required | What 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. |
note | string | null | optional | Optional free text — why this link exists, in the words of whoever made it. |
org_id | string | required | The tenant. Every read is scoped by it. |
origin | string | required | Where 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_id | string | required | The 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_at | string | required | When it was last changed. |
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>"}'DELETE/v1/orgs/{org}/datasets/{ds}/entity-links/{link_id}steward+
remove a link
Bearer key with at least the steward role, scoped to the organization in the path.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required | |
link_id | string | required |
Success response: EntityLinkDeleted
| Name | Type | Required | Description |
|---|---|---|---|
deleted | string | required |
curl -X DELETE "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/entity-links/<link_id>" \
-H "Authorization: Bearer $ER_API_KEY"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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
format | string | required | |
kind | string | required | |
snapshot | integer | any | null | optional |
Success response: a JSON object; see the fields below.
| Name | Type | Required | Description |
|---|---|---|---|
export_id | any | optional | |
snapshot | any | optional | |
state | any | optional |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required | |
export_id | string | required |
Success response: a JSON object; see the fields below.
| Name | Type | Required | Description |
|---|---|---|---|
created_at | any | optional | |
error_class | any | optional | |
expires_at | any | optional | |
export_id | any | optional | |
finished_at | any | optional | |
format | any | optional | |
kind | any | optional | |
rows | any | optional | |
snapshot | any | optional | |
state | any | optional |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required | |
export_id | string | required |
Success response: No JSON body.
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
cursor | string | optional | The opaque `next_cursor` of the previous page; omit for the first page. |
limit | string | optional | Maximum items to return; an integer, clamped to the endpoint's range when out of it. |
q | string | optional | Free-text search over the golden record. |
snapshot | integer | optional | Read 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.
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required | |
entity_id | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
snapshot | integer | optional |
Success response: GoldenDetail
| Name | Type | Required | Description |
|---|---|---|---|
events | array of EntityEventItem | required | |
golden | GoldenRow | required | |
lineage | array of LineageItem | required | |
members | array of EntityMember | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required | |
entity_id | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
apply_now | boolean | optional | |
records | array of string | required |
Success response: UnmergeStaged or UnmergeApplied
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
band_high | string | optional | Upper bound on match probability (0–1); a number. |
band_low | string | optional | Lower bound on match probability (0–1); a number. |
cursor | string | optional | The opaque `next_cursor` of the previous page; omit for the first page. |
limit | string | optional | Maximum items to return; an integer, clamped to the endpoint's range when out of it. |
Success response: MatchScoresPage
| Name | Type | Required | Description |
|---|---|---|---|
items | array of ScoredPair | required | |
next_cursor | string | null | optional | Pass as `cursor` for the next page; null on the last page. |
snapshot | integer | required | The lake snapshot every page of this walk reads; the cursor pins it. |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
format | string | optional | `csv` for a text/csv export; JSON otherwise. |
limit | string | optional | Maximum items to return; an integer, clamped to the endpoint's range when out of it. |
policy | string | optional | The master-election policy (default `most_attributes`). |
since | string | optional | Inclusive lower bound on the timestamp (any form `timestamptz` accepts). |
Success response: MergePlanList
| Name | Type | Required | Description |
|---|---|---|---|
items | array of MergePlan | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
limit | integer | any | null | optional | |
record | any | required | |
source | string | required |
Success response: ResolveResult
| Name | Type | Required | Description |
|---|---|---|---|
candidates | array of ResolveCandidate | required | |
decision | string | required | The 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. |
snapshot | integer | required | The lake snapshot the corpus was read at, so a caller can tell whether it resolved against fresh data. |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
cursor | string | optional | The opaque `next_cursor` of the previous page; omit for the first page. |
include_retracted | string | optional | `true` to include retracted assertions. |
limit | string | optional | Maximum items to return; an integer, clamped to the endpoint's range when out of it. |
Success response: a JSON object; see the fields below.
| Name | Type | Required | Description |
|---|---|---|---|
items | array of any | required | |
next_cursor | string | null | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
a | string | required | |
apply_now | boolean | optional | |
b | string | required | |
kind | string | required | |
note | string | any | null | optional |
Success response: Staged or StagedApplied
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required | |
assertion_id | string | required |
Success response: Staged
| Name | Type | Required | Description |
|---|---|---|---|
action_id | string | required | |
pending_until_next_reconcile | boolean | required | Always false: the correction lands on the next apply, not the next run. |
status | string | required | Always `staged`. |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
Success response: ContradictionList
| Name | Type | Required | Description |
|---|---|---|---|
contradictions | array of ContradictionItem | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
limit | string | optional | Maximum items to return; an integer, clamped to the endpoint's range when out of it. |
max | string | optional | Upper bound on the probability band (0–1); a number. |
min | string | optional | Lower bound on the probability band (0–1); a number, not below the review floor. |
Success response: LabelingQueue
| Name | Type | Required | Description |
|---|---|---|---|
band | LabelBand | required | |
coverage | LabelCoverage | required | |
items | array of UncertainPair | required | |
snapshot | integer | required | |
threshold | number | required | The `auto_merge` threshold the pairs are ordered around. |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
limit | string | optional | Maximum items to return; an integer, clamped to the endpoint's range when out of it. |
origin | string | optional | Only labels from this origin (`human`, `reviewer`, `llm`). |
verdict | string | optional | Only labels with this verdict (`match`, `no_match`). |
Success response: LabelList
| Name | Type | Required | Description |
|---|---|---|---|
labels | array of PairLabel | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
model_version | string | any | null | optional | |
note | string | any | null | optional | |
rec_a_key | string | required | |
rec_b_key | string | required | |
score_at_label | number | any | null | optional | |
verdict | string | required |
Success response: PairLabel
| Name | Type | Required | Description |
|---|---|---|---|
created_at | string | required | When the verdict was first recorded. |
dataset_id | string | required | The dataset whose record pair this verdict is about — record keys are lake-local. |
id | string | required | UUIDv7, minted by the application. |
labeled_by | string | required | The actor that recorded the verdict. |
model_version | string | null | optional | The model whose score prompted this label, when there was one. Null for a label recorded without a score in front of it. |
note | string | null | optional | Optional free text from the labeller. |
org_id | string | required | The tenant whose corpus the pair belongs to; every read is scoped by it. |
origin | string | required | Where 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_key | string | required | The 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_key | string | required | The pair's higher record key, canonical order. |
score_at_label | number | null | optional | The 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_at | string | required | When it was last corrected. |
verdict | string | required | Whether 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. |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
apply_now | boolean | optional | |
items | array of object | required |
Success response: StagedBatch or StagedBatchApplied
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
apply_now | boolean | optional | |
master | string | required | |
overrides | array of object | optional | |
records | array of string | required | |
review_id | string | any | null | optional |
Success response: StagedBatch or StagedBatchApplied
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
cursor | string | optional | The opaque `next_cursor` of the previous page; omit for the first page. |
limit | string | optional | Maximum items to return; an integer, clamped to the endpoint's range when out of it. |
max_probability | string | optional | Upper bound on match probability (0–1); a number. |
min_probability | string | optional | Lower bound on match probability (0–1); a number. |
reason | string | optional | Only reviews escalated for this reason. |
status | string | optional | Only reviews in this status. |
Success response: ReviewPage
| Name | Type | Required | Description |
|---|---|---|---|
items | array of ReviewItem | required | |
next_cursor | string | null | optional | |
snapshot | integer | required | |
unscored_hidden | integer | required | Open unscored escalations a probability band hid (0 with no band). |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required | |
review_id | string | required |
Success response: ReviewItem
| Name | Type | Required | Description |
|---|---|---|---|
confidence | integer | null | optional | The display integer of `match_probability`; absent when it is null. |
entity_id | string | null | optional | |
first_seen_run_id | string | required | |
id | string | required | |
last_seen_run_id | string | required | |
match_probability | number | null | optional | Null for a structural escalation, which is not a scored pair. |
reason | string | required | |
rec_a_key | string | null | optional | |
rec_b_key | string | null | optional | |
resolved_at | string | null | optional | Naive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339. |
resolved_by | string | null | optional | |
status | string | required | |
subject_type | string | required | `pair` for a record-pair review, `entity` for an entity-subject one. |
waterfall | any | optional |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required | |
review_id | string | required |
Success response: ReviewMergeGroup
| Name | Type | Required | Description |
|---|---|---|---|
items | array of any | required | Records-by-key items (each record's values, keyed by the dataset's entity type), each stamped with the `entity_id` it belongs to. |
snapshot | integer | required | |
total | integer | required | The union's size before the key cap truncated `items`. |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required | |
review_id | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
resolution | string | required |
Success response: Staged
| Name | Type | Required | Description |
|---|---|---|---|
action_id | string | required | |
pending_until_next_reconcile | boolean | required | Always false: the correction lands on the next apply, not the next run. |
status | string | required | Always `staged`. |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
apply_now | boolean | optional | |
items | array of object | required |
Success response: StagedBatch or StagedBatchApplied
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
subject_type | string | optional | The subject kind (`entity`, `record`, …). |
Success response: TaggingList
| Name | Type | Required | Description |
|---|---|---|---|
taggings | array of Tagging | required | |
truncated | boolean | required | True when the cap cut the list: the caller has not seen every tagging. |
curl -X GET "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/taggings" \
-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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
status | string | optional | Only previews in this state. |
cursor | string | optional | The `next_cursor` of the previous page. |
limit | string | optional | Maximum items, 1–200; default 50. |
Success response: LeadConversionPage
| Name | Type | Required | Description |
|---|---|---|---|
items | array of LeadConversionView | required | |
next_cursor | string | null | optional | Pass as `cursor` for the next page; null on the last. |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
Success response: MergesApplying
| Name | Type | Required | Description |
|---|---|---|---|
job_id | string | required | |
state | string | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
decision | string | required | |
items | array of object | required | |
reason | string | any | null | optional |
Success response: BatchDecisionOut
| Name | Type | Required | Description |
|---|---|---|---|
results | array of BatchDecisionResult | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
status | string | optional | Only previews in this state. |
cursor | string | optional | The `next_cursor` of the previous page. |
limit | string | optional | Maximum items, 1–200; default 50. |
Success response: MergePreviewPage
| Name | Type | Required | Description |
|---|---|---|---|
items | array of MergePreviewSummary | required | |
next_cursor | string | null | optional | Pass as `cursor` for the next page; null on the last. |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required | |
preview_id | string | required |
Success response: MergePreviewDetail
| Name | Type | Required | Description |
|---|---|---|---|
apply | MergeApplyView | any | null | optional | |
decided_by | string | null | optional | |
decision_reason | string | null | optional | |
field_changes | any | required | Provider field → `{before, after}` on the master. |
history | array of MergePreviewEvent | required | |
proposal | any | required | The members' synchronized preimages, the master and the policy inputs (the persisted proposal). |
related_counts | any | optional | Related-record counts per member; null while `related_counts_state` is `unavailable`. |
related_counts_state | string | required | |
summary | MergePreviewSummary | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required | |
preview_id | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
fingerprint | string | required | |
reason | string | any | null | optional |
Success response: MergePreviewSummary
| Name | Type | Required | Description |
|---|---|---|---|
connection_id | string | required | |
created_at | string | required | RFC 3339. |
decided_by | string | null | optional | Who decided it — a principal, or `policy:<rule id>` for an auto-approval. |
entity_id | string | required | |
fingerprint | string | required | Name it to approve or reject. |
id | string | required | |
lake_snapshot | integer | required | |
master_record_key | string | required | |
member_count | integer | required | |
object | string | required | |
policy_revision | string | required | The writeback policy revision it was built under. |
score | number | null | optional | Match evidence: for each victim, its strongest scored edge to another member, then the weakest of those. Null when absent. |
status | string | required | `planned`, `approved`, `rejected` or `superseded`. |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required | |
preview_id | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
fingerprint | string | required | |
reason | string | any | null | optional |
Success response: MergePreviewSummary
| Name | Type | Required | Description |
|---|---|---|---|
connection_id | string | required | |
created_at | string | required | RFC 3339. |
decided_by | string | null | optional | Who decided it — a principal, or `policy:<rule id>` for an auto-approval. |
entity_id | string | required | |
fingerprint | string | required | Name it to approve or reject. |
id | string | required | |
lake_snapshot | integer | required | |
master_record_key | string | required | |
member_count | integer | required | |
object | string | required | |
policy_revision | string | required | The writeback policy revision it was built under. |
score | number | null | optional | Match evidence: for each victim, its strongest scored edge to another member, then the weakest of those. Null when absent. |
status | string | required | `planned`, `approved`, `rejected` or `superseded`. |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required | |
preview_id | string | required |
Success response: a JSON object; see the fields below.
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required | |
preview_id | string | required |
Success response: a JSON object; see the fields below.
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
Success response: MergesApplying
| Name | Type | Required | Description |
|---|---|---|---|
job_id | string | required | |
state | string | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
decision | string | required | |
items | array of object | required | |
reason | string | any | null | optional |
Success response: MergePreviewSummary or BatchDecisionOut
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
Success response: PreviewsGenerating
| Name | Type | Required | Description |
|---|---|---|---|
job_id | string | required | |
state | string | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
status | string | optional | Only previews in this state. |
cursor | string | optional | The `next_cursor` of the previous page. |
limit | string | optional | Maximum items, 1–200; default 50. |
Success response: UpsertPreviewPage
| Name | Type | Required | Description |
|---|---|---|---|
items | array of UpsertPreviewView | required | |
next_cursor | string | null | optional | Pass as `cursor` for the next page; null on the last. |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
Success response: MergesApplying
| Name | Type | Required | Description |
|---|---|---|---|
job_id | string | required | |
state | string | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
decision | string | required | |
items | array of object | required | |
reason | string | any | null | optional |
Success response: BatchDecisionOut
| Name | Type | Required | Description |
|---|---|---|---|
results | array of BatchDecisionResult | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
Success response: AutoApprovalList
| Name | Type | Required | Description |
|---|---|---|---|
items | array of AutoApprovalView | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
connection_id | string | required | |
enabled | boolean | required | |
max_members | integer | required | |
min_score | number | required | |
object | string | required |
Success response: AutoApprovalView
| Name | Type | Required | Description |
|---|---|---|---|
connection_id | string | required | |
created_at | string | required | RFC 3339. |
created_by | string | required | |
enabled | boolean | required | |
id | string | required | The revision; auto-approved previews name it as `policy:<id>`. |
max_members | integer | required | |
min_score | number | required | |
object | string | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
Success response: WritebackPolicyList
| Name | Type | Required | Description |
|---|---|---|---|
items | array of WritebackPolicyView | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
connection_id | string | required | |
election_policy | string | any | null | optional | |
field_mapping | map of string | required | |
object | string | required | |
writeback_allowlist | array of string | required |
Success response: WritebackPolicyView
| Name | Type | Required | Description |
|---|---|---|---|
connection_id | string | required | |
created_at | string | required | RFC 3339. |
created_by | string | required | |
election_policy | string | required | |
field_mapping | any | required | |
id | string | required | The revision id a merge preview binds. |
object | string | required | |
writeback_allowlist | any | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
Success response: UpsertPolicyList
| Name | Type | Required | Description |
|---|---|---|---|
items | array of UpsertPolicyView | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
ds | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
connection_id | string | required | |
external_id_field | string | required | |
field_mapping | map of string | required | |
object | string | required | |
sources | array of string | required | |
writeback_allowlist | array of string | required |
Success response: UpsertPolicyView
| Name | Type | Required | Description |
|---|---|---|---|
connection_id | string | required | |
created_at | string | required | RFC 3339. |
created_by | string | required | |
external_id_field | string | required | |
field_mapping | object | required | |
id | string | required | The revision an upsert preview binds. |
object | string | required | |
sources | array of string | required | |
writeback_allowlist | array of string | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required |
Success response: WebhookItem
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
events | array of string | optional | |
secret | string | any | null | optional | |
url | string | required |
Success response: WebhookCreated
| Name | Type | Required | Description |
|---|---|---|---|
active | boolean | required | Always true. |
events | array of string | required | |
id | string | required | |
secret | string | required | The HMAC-SHA256 key for `X-ER-Signature`; not returned again. |
url | string | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required | |
webhook_id | string | required |
Success response: Deleted
| Name | Type | Required | Description |
|---|---|---|---|
deleted | boolean | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required |
| Name | Type | Required | Description |
|---|---|---|---|
webhook_id | string | optional | |
state | string | optional | |
limit | integer | optional |
Success response: WebhookDeliveryList
| Name | Type | Required | Description |
|---|---|---|---|
deliveries | array of WebhookDelivery | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
org | string | required |
Success response: WebhookEventCatalog
| Name | Type | Required | Description |
|---|---|---|---|
events | array of WebhookEventItem | required |
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.
| Name | Type | Required | Description |
|---|---|---|---|
status | any | optional |
curl -X GET "$ER_API_ORIGIN/healthz"GET/readyzpublic
readiness
No credential required.
Success response: a JSON object; see the fields below.
| Name | Type | Required | Description |
|---|---|---|---|
ready | any | optional | |
reason | any | optional | |
store | any | optional |
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
| Name | Type | Required | Description |
|---|---|---|---|
company_name | string | null | optional | The golden record's company name, when assembled. |
domain | string | null | optional | The golden record's domain, when assembled. |
entity_id | string | required | The resolved entity. |
group_confidence | integer | null | optional | The group's confidence (0–100), or null when no member edge is scored. |
master_record_key | string | null | optional | The strongest-attached member, or null when the group is unscored. |
matched_fields | array of string | required | The comparison fields any within-group edge matched on. |
member_confidences | map of integer | required | Each scored member's attachment confidence (0–100), by member key. |
member_count | integer | required | How many source records resolved to it. |
members | array of string | required | The member records, as `<source_system>:<source_record_id>`, ordered. |
model_versions | array of string | required | The model versions whose scores link the group, deduplicated. |
verified | boolean | required | Whether a steward asserted or verified the group. |
AccountDuplicatesPage
| Name | Type | Required | Description |
|---|---|---|---|
items | array of AccountDuplicateGroup | required | |
next_cursor | string | null | optional | Pass as `cursor` for the next page; null on the last page. |
snapshot | integer | required | The lake snapshot every page of this walk reads; the cursor pins it. |
AccountGolden
| Name | Type | Required | Description |
|---|---|---|---|
addr_city | string | null | optional | |
addr_postal | string | null | optional | |
addr_region | string | null | optional | |
addr_street | string | null | optional | |
company_name | string | null | optional | |
domain | string | null | optional | |
id | string | required | |
metadata | any | optional | |
phone_e164 | string | null | optional | |
survivorship_version | string | required |
AcctGoldenLineage
| Name | Type | Required | Description |
|---|---|---|---|
attribute | string | required | The survivable attribute decided (e.g. company_name, domain, address). |
created_at | string | required | Run-logical creation time (the assembling run's clock; the mart is rebuilt whole). |
entity_id | string | required | The resolved account this attribute decision belongs to. |
id | string | required | Content-derived row id: sha256('acct_golden_lineage:' || entity_id || ':' || attribute). |
record_key | string | required | The source record that won the attribute. |
rule | string | required | The survivorship rule that selected this value. |
source_record_id | string | required | Source-native id of the winning record. |
source_system | string | required | Source system of the winning record. |
survivorship_version | string | required | Survivorship policy version that produced this row. |
updated_at | string | required | Run-logical last-write time (equals created_at; the mart is rebuilt whole). |
AcctGoldenRecord
| Name | Type | Required | Description |
|---|---|---|---|
addr_city | string | null | optional | Surviving city of the address. |
addr_postal | string | null | optional | Surviving postal code of the address. |
addr_region | string | null | optional | Surviving region/state of the address. |
addr_street | string | null | optional | Surviving street of the address. |
assembled_at | string | required | Assembly time of this row (volatile). |
company_name | string | null | optional | Surviving company name. |
created_at | string | required | Run-logical creation time (the assembling run's clock; the mart is rebuilt whole). |
domain | string | null | optional | Surviving web domain. |
id | string | required | Persistent entity id (deterministic UUIDv7, minted by reconcile); the survivorship key. |
metadata | any | optional | Surviving opaque per-source metadata object. |
phone_e164 | string | null | optional | Surviving phone number in E.164 form. |
survivorship_version | string | required | Survivorship policy version that produced this row. |
updated_at | string | required | Run-logical last-write time (equals created_at; the mart is rebuilt whole). |
AllowanceSet
| Name | Type | Required | Description |
|---|---|---|---|
name | string | required | |
record_allowance | integer | null | optional |
ApiKey
| Name | Type | Required | Description |
|---|---|---|---|
created_at | string | required | When the key was issued. |
id | string | required | The key's unique id (UUIDv7, minted at issue). |
org_id | string | required | The tenant the key authenticates. |
revoked_at | string | null | optional | When the key was revoked, if it has been. |
role | string | required | The role the key grants. |
updated_at | string | required | Wall-clock last-write time (database default; advanced by mutations once the entity migrates). |
ApiKeyList
| Name | Type | Required | Description |
|---|---|---|---|
keys | array of ApiKey | required | Metadata only: the wire form has no `key_hash`, and the plaintext was shown once at mint time and is not stored. |
AttemptRetried
| Name | Type | Required | Description |
|---|---|---|---|
archived | TaskInstance | required | |
retry | TaskInstance | any | null | optional |
AuditEntry
| Name | Type | Required | Description |
|---|---|---|---|
action | string | required | |
actor | string | required | |
at | string | required | RFC 3339, microseconds. |
dataset | string | null | optional | |
detail | any | required | |
id | integer | required | |
org | string | null | optional | |
trace_id | string | null | optional |
AuditLog
| Name | Type | Required | Description |
|---|---|---|---|
action | string | required | The action name (e.g. steward.mass_update). |
actor | string | required | The principal that performed the action (the signed-in user's email, or an API key id). |
at | string | required | When the audited action occurred. |
created_at | string | required | Wall-clock creation time (database default; `at` remains the domain event stamp). |
dataset | string | null | optional | The dataset the action concerned, by name, when it concerned one — context, like `org`, not a foreign key (this ledger outlives both). |
detail | any | required | Structured detail for the action. |
id | integer | required | Monotonic ledger id (bigserial); the primary key. |
org | string | null | optional | The tenant the action applies to, if the action is org-scoped. |
trace_id | string | null | optional | The 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_at | string | required | Wall-clock last-write time (equals created_at; audit rows are append-only). |
AutoApprovalList
| Name | Type | Required | Description |
|---|---|---|---|
items | array of AutoApprovalView | required |
AutoApprovalView
| Name | Type | Required | Description |
|---|---|---|---|
connection_id | string | required | |
created_at | string | required | RFC 3339. |
created_by | string | required | |
enabled | boolean | required | |
id | string | required | The revision; auto-approved previews name it as `policy:<id>`. |
max_members | integer | required | |
min_score | number | required | |
object | string | required |
BatchDecisionOut
| Name | Type | Required | Description |
|---|---|---|---|
results | array of BatchDecisionResult | required |
BatchDecisionResult
| Name | Type | Required | Description |
|---|---|---|---|
detail | string | null | optional | Why it was refused, when it was. |
id | string | required | |
preview_status | string | null | optional | The preview's state after, when decided. |
status | integer | required | The HTTP status the single-item route would have answered. |
BlockingEstimate
| Name | Type | Required | Description |
|---|---|---|---|
candidate_pairs | integer | required | What the declared rules actually generate: the number that decides the run's cost. |
largest_blocks | array of LargestBlockEstimate | required | |
per_rule | array of BlockingRuleEstimate | required | |
total_possible_pairs | integer | required | Every pair the corpus could produce — what resolution would cost with no blocking at all. |
BlockingRuleEstimate
| Name | Type | Required | Description |
|---|---|---|---|
blocking_rule | string | required | |
cumulative_pairs | integer | required | |
has_block_breakdown | boolean | required | Whether 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_pairs | integer | required | Pairs this rule adds that no earlier rule already generated — the number that says whether the rule is pulling its weight. |
match_key | integer | required |
CandidateKey
| Name | Type | Required | Description |
|---|---|---|---|
covered_rows | integer | required | Rows where every key column is non-null — the only rows this key can block, because an equality is never true of a NULL. |
created_at | string | required | Run-logical creation time. |
distinct_values | integer | required | Distinct key values among the covered rows. The block count: more blocks of fewer rows each is what makes a key cheap. |
entropy_bits | number | required | Shannon 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_pairs | integer | required | Pairs 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. |
id | string | required | Content-derived row id: sha256('candidate_keys:' || profile_run_id || ':' || key_columns). |
key_columns | string | required | The 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_pairs | integer | required | Pairs 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_rows | integer | required | Rows in that largest block. |
pair_loss_from_nulls | number | required | The 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_id | string | required | The 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_count | integer | required | Rows 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_at | string | required | Run-logical last-write time. |
CandidateKeyItem
| Name | Type | Required | Description |
|---|---|---|---|
covered_rows | integer | required | |
distinct_values | integer | required | |
entropy_bits | number | required | |
expected_pairs | integer | required | |
key_columns | array of string | required | |
largest_block_pairs | integer | required | |
largest_block_rows | integer | required | |
pair_loss_from_nulls | number | required | |
row_count | integer | required |
ClearAccepted
| Name | Type | Required | Description |
|---|---|---|---|
cleared | array of string | required | |
demanded_upstream | array of string | required | |
reopened | boolean | required | |
reset | integer | required | |
restarting | integer | required | |
rotated | integer | required |
ColumnProfile
| Name | Type | Required | Description |
|---|---|---|---|
blank_count | integer | required | Rows 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_bigint | integer | required | Non-null values that parse as an integer. |
cast_boolean | integer | required | Non-null values that parse as a boolean. |
cast_date | integer | required | Non-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_double | integer | required | Non-null values that parse as a double. |
cast_timestamp | integer | required | Non-null values that parse as a timestamp. |
column_name | string | required | The profiled column, as named in the corpus stage. |
created_at | string | required | Run-logical creation time. |
distinct_approx | integer | required | HyperLogLog 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_exact | integer | null | optional | Exact 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_normalized | integer | null | optional | Exact 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_bits | number | null | optional | Shannon 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. |
id | string | required | Content-derived row id: sha256('column_profiles:' || profile_run_id || ':' || column_name). |
len_avg | number | null | optional | Mean trimmed value length. |
len_max | integer | null | optional | Longest trimmed value length. A value at a round number here is the signature of upstream truncation. |
len_min | integer | null | optional | Shortest trimmed value length. NULL for an all-NULL column, where a length has no meaning. |
len_p50 | integer | null | optional | Approximate median trimmed length. |
len_p95 | integer | null | optional | Approximate 95th-percentile trimmed length. Read against len_max it separates a long tail from a single outlier. |
lex_max | string | null | optional | Lexically largest trimmed value. |
lex_min | string | null | optional | Lexically smallest trimmed value. |
non_null_count | integer | required | Rows where the column is not NULL. |
num_avg | number | null | optional | Mean of the values that parse as numbers. |
num_max | number | null | optional | Largest value that parses as a number, NULL when none does. |
num_min | number | null | optional | Smallest value that parses as a number, NULL when none does. |
num_std | number | null | optional | Sample 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_id | string | required | The 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_count | integer | required | Rows read for this column (the sampled count when sampling was on). |
top_values | any | optional | The 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_count | integer | required | Rows in the corpus whether or not they were sampled, so a sampled figure can be scaled and labelled honestly. |
updated_at | string | required | Run-logical last-write time. |
Completeness
| Name | Type | Required | Description |
|---|---|---|---|
by_attribute | map of number | required | Non-null fraction per golden column. |
overall | number | required |
ConfigDraftCreated
| Name | Type | Required | Description |
|---|---|---|---|
config_hash | string | required | |
org | string | required | |
state | string | required | Always `draft`. |
version | integer | required |
ConfigPublished
| Name | Type | Required | Description |
|---|---|---|---|
advisories | array of string | required | What the latest profile says about the config that just went live: advice, never a refusal. |
changed_blocks | array of string | required | |
jobs_enqueued | array of string | required | The rebuild jobs the tier queued, in order. |
org | string | required | |
published_by | string | required | |
tier | string | null | optional | The rebuild tier the changed blocks required. |
version | integer | required |
ConfigValidation
| Name | Type | Required | Description |
|---|---|---|---|
changed_blocks | array of string | required | The top-level blocks that differ from the active config. |
config_hash | string | null | optional | The canonical document's hash, the value a run records as the config it executed under; null when the YAML does not load. |
problems | array of string | required | Every reason publish would refuse it, each naming what to change. |
tier | string | null | optional | The rebuild tier publish would queue (`A`, `B` or `C`), versus the dataset's active config; null when nothing that matters changed. |
valid | boolean | required | True when publish would accept the document as written. |
ConfigVersion
| Name | Type | Required | Description |
|---|---|---|---|
config_hash | string | required | Hash of the canonicalized config. |
created_at | string | required | When the version was created. |
created_by | string | required | Principal that created the version. |
dataset_id | string | required | The dataset this config version belongs to. Part of the natural key: rows belong to a dataset, not to the org at large. |
id | string | required | The version row's unique id (UUIDv7, minted at draft). |
org_id | string | required | The tenant this config version belongs to. |
published_at | string | null | optional | When the version was published, if it has been. |
state | string | required | Whether the version is a draft or published. |
tier | string | null | optional | Optional service tier label. |
updated_at | string | required | Wall-clock last-write time (database default; advanced by mutations once the entity migrates). |
version | integer | required | The monotonic version number within the tenant. |
yaml | string | required | The config document source. |
ConfigVersionItem
| Name | Type | Required | Description |
|---|---|---|---|
config_hash | string | required | |
created_at | string | required | |
created_by | string | required | |
published_at | string | null | optional | |
state | string | required | |
tier | string | null | optional | |
version | integer | required |
ConfigVersionView
| Name | Type | Required | Description |
|---|---|---|---|
config_hash | string | required | |
created_at | string | required | |
created_by | string | required | |
published_at | string | null | optional | |
state | string | required | `draft`, `published` or `superseded`. |
tier | string | null | optional | The rebuild tier the publish chose; null until published. |
version | integer | required | |
yaml | string | required |
ConfusionMetrics
| Name | Type | Required | Description |
|---|---|---|---|
accuracy | number | null | optional | |
f1 | number | null | optional | Null when either precision or recall is, rather than 0. |
fn | integer | required | |
fp | integer | required | |
precision | number | null | optional | |
recall | number | null | optional | |
tn | integer | required | |
tp | integer | required |
ContradictionItem
| Name | Type | Required | Description |
|---|---|---|---|
always_assertion_ids | array of string | required | The `always` rules whose closure joins the pair. |
component | array of string | required | Every record in that `always` closure, ascending. |
never_assertion_id | string | required | |
rec_a_key | string | required | |
rec_b_key | string | required |
ContradictionList
| Name | Type | Required | Description |
|---|---|---|---|
contradictions | array of ContradictionItem | required |
CurvePoint
| Name | Type | Required | Description |
|---|---|---|---|
accuracy | number | null | optional | |
f1 | number | null | optional | Null when either precision or recall is, rather than 0. |
fn | integer | required | |
fp | integer | required | |
precision | number | null | optional | |
recall | number | null | optional | |
tn | integer | required | |
tp | integer | required | |
threshold | number | required |
DataQuality
| Name | Type | Required | Description |
|---|---|---|---|
completeness | Completeness | required | |
dq_score | number | required | The mean of completeness and the complements of the three rates. |
duplicate_rate | number | required | |
entities | integer | required | |
junk_rate | number | required | |
records | integer | required | |
snapshot | integer | required | |
stale_days | integer | required | |
stale_rate | number | required |
Dataset
| Name | Type | Required | Description |
|---|---|---|---|
active_config_version | integer | null | optional | The currently published config version, if any. |
config_path | string | required | Path to the dataset's config document. |
created_at | string | required | When the dataset was created. |
display_name | string | null | optional | Optional human label; the name stays the stable routing handle. |
drop_root | string | null | optional | Delivery landing directory; one `<source>.csv` per config source. |
entity_type | string | required | The 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. |
env | any | required | Lake 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. |
id | string | required | The dataset's unique id (UUIDv7, minted at creation). |
name | string | required | The 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_id | string | required | The tenant this dataset belongs to. |
s3_ingest_bucket | string | null | optional | Bucket 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_prefix | string | null | optional | Key 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. |
state | string | required | Dataset lifecycle state. The org's own state gates the whole tenant above this. |
updated_at | string | required | Wall-clock last-write time (database default; advanced by mutations once the entity migrates). |
DatasetCreated
| Name | Type | Required | Description |
|---|---|---|---|
name | string | required | |
state | string | required |
DatasetProvisioning
| Name | Type | Required | Description |
|---|---|---|---|
job_id | string | required | |
name | string | required | |
state | string | required |
DatasetUsage
| Name | Type | Required | Description |
|---|---|---|---|
name | string | required | |
records | integer | required | Connected records: standardized source records at `snapshot`. |
snapshot | integer | null | optional | The lake snapshot counted; null for a dataset with no lake yet. |
DatasetView
| Name | Type | Required | Description |
|---|---|---|---|
active_config_version | integer | null | optional | |
created_at | string | required | |
display_name | string | null | optional | |
entity_type | string | required | |
name | string | required | |
state | string | required | |
updated_at | string | required |
Deleted
| Name | Type | Required | Description |
|---|---|---|---|
deleted | boolean | required |
DeliveryAccepted
| Name | Type | Required | Description |
|---|---|---|---|
delivery_id | string | required | |
job | Job | required |
EmailAccepted
EntityEventItem
| Name | Type | Required | Description |
|---|---|---|---|
details | any | required | |
event_type | string | required | |
id | string | required | |
occurred_at | string | required | Naive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339. |
run_id | string | required | |
seq | integer | required |
EntityLink
| Name | Type | Required | Description |
|---|---|---|---|
child_entity_id | string | required | The entity on the member side — the person in the household, the subsidiary. |
created_at | string | required | When the link was created. |
created_by | string | required | The actor that created the link. |
dataset_id | string | required | The dataset whose entities this link relates — entity ids are lake-local. |
id | string | required | The link's unique id (UUIDv7, minted by the application). |
kind | string | required | What 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. |
note | string | null | optional | Optional free text — why this link exists, in the words of whoever made it. |
org_id | string | required | The tenant. Every read is scoped by it. |
origin | string | required | Where 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_id | string | required | The 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_at | string | required | When it was last changed. |
EntityLinkDeleted
| Name | Type | Required | Description |
|---|---|---|---|
deleted | string | required |
EntityLinkList
| Name | Type | Required | Description |
|---|---|---|---|
items | array of EntityLink | required |
EntityMember
| Name | Type | Required | Description |
|---|---|---|---|
assigned_at | string | required | Naive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339. |
protected | boolean | required | An active `protect` overlay: the record is master for its entity and cannot be deleted or unmatch-peeled until unprotected. |
record_key | string | required | |
run_id | string | required | |
source_record_id | string | required | |
source_system | string | required | |
verified | boolean | required | An active whole-row steward verification. |
EvaluationCounts
| Name | Type | Required | Description |
|---|---|---|---|
evaluable | integer | required | |
labels_for_version | integer | required | |
no_score | integer | required | |
not_a_verdict | integer | required |
GoldenDetail
| Name | Type | Required | Description |
|---|---|---|---|
events | array of EntityEventItem | required | |
golden | GoldenRow | required | |
lineage | array of LineageItem | required | |
members | array of EntityMember | required |
GoldenLineage
| Name | Type | Required | Description |
|---|---|---|---|
attribute | string | required | The survivable attribute decided (e.g. given_name, email, address). |
created_at | string | required | Run-logical creation time (the assembling run's clock; the mart is rebuilt whole). |
entity_id | string | required | The resolved entity this attribute decision belongs to. |
id | string | required | Content-derived row id: sha256('golden_lineage:' || entity_id || ':' || attribute). |
record_key | string | required | The source record that won the attribute. |
rule | string | required | The survivorship rule that selected this value. |
source_record_id | string | required | Source-native id of the winning record. |
source_system | string | required | Source system of the winning record. |
survivorship_version | string | required | Survivorship policy version that produced this row. |
updated_at | string | required | Run-logical last-write time (equals created_at; the mart is rebuilt whole). |
GoldenRecord
| Name | Type | Required | Description |
|---|---|---|---|
addr_city | string | null | optional | Surviving city of the address. |
addr_number | string | null | optional | Surviving street number of the address. |
addr_postal | string | null | optional | Surviving postal code of the address. |
addr_region | string | null | optional | Surviving region/state of the address. |
addr_street | string | null | optional | Surviving street name of the address. |
addr_unit | string | null | optional | Surviving unit/apartment of the address. |
assembled_at | string | required | Assembly time of this row (volatile; excluded from determinism comparisons). |
birth_date | string | null | optional | Surviving birth date. |
created_at | string | required | Run-logical creation time (the assembling run's clock; the mart is rebuilt whole). |
email | string | null | optional | Surviving email address. |
family_name | string | null | optional | Surviving family name. |
given_name | string | null | optional | Surviving given name. |
id | string | required | Persistent entity id (deterministic UUIDv7, minted by reconcile); the survivorship key. |
metadata | any | optional | Surviving opaque per-source metadata object. |
phone_e164 | string | null | optional | Surviving phone number in E.164 form. |
survivorship_version | string | required | Survivorship policy version that produced this row. |
updated_at | string | required | Run-logical last-write time (equals created_at; the mart is rebuilt whole). |
GoldenRow
ImportReceipt
| Name | Type | Required | Description |
|---|---|---|---|
changed_count | integer | required | |
created_at | string | required | Naive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339. |
full_refresh_keys | boolean | required | |
id | string | required | |
matched_count | integer | null | optional | |
new_count | integer | required | |
path | string | required | |
resurrected_count | integer | required | |
review_count | integer | null | optional | |
run_id | string | required | |
screened_at | string | null | optional | Naive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339. |
source_system | string | required | |
tombstone_count | integer | required | |
unchanged_count | integer | required | |
unmatched_count | integer | null | optional |
IngestBatch
| Name | Type | Required | Description |
|---|---|---|---|
changed_count | integer | required | Rows superseding a key with new content. |
created_at | string | required | Creation stamp (the run's logical timestamp). |
full_refresh_keys | boolean | required | Whether the delivery tombstoned omitted keys. |
id | string | required | The delivery batch's unique id (caller-supplied per delivery). |
matched_count | integer | null | optional | Screening (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_count | integer | required | Rows landing a brand-new key. |
path | string | required | The delivered file's path. |
resurrected_count | integer | required | Previously tombstoned keys that returned. |
review_count | integer | null | optional | Screening (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_id | string | required | The run that wrote this row. |
screened_at | string | null | optional | When 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_system | string | required | The delivering source system. |
tombstone_count | integer | required | Keys tombstoned by a full refresh. |
unchanged_count | integer | required | Rows matching the key's current content. |
unmatched_count | integer | null | optional | Screening (E9b): delivered records with no active score reaching `review_low` — genuinely new as far as the model can tell. |
updated_at | string | required | Run-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
| Name | Type | Required | Description |
|---|---|---|---|
auto_merge_pairs | integer | required | |
captured_at | string | required | chrono's display form (`YYYY-MM-DD HH:MM:SS[.f] UTC`). |
duplicate_groups | integer | required | |
duplicate_rate | number | null | optional | Duplicate records over records; null for an empty corpus. |
duplicate_records | integer | required | |
entities | integer | required | |
largest_group | integer | required | |
records | integer | required | |
records_per_entity | number | null | optional | Records over entities; null when there are none. |
review_backlog | integer | required | |
review_band_pairs | integer | required | |
run_id | string | required |
InsightSeries
| Name | Type | Required | Description |
|---|---|---|---|
series | array of InsightPoint | required | |
snapshot | integer | required |
Job
| Name | Type | Required | Description |
|---|---|---|---|
attempt | integer | required | Attempts made so far. |
clear_number | integer | null | optional | Incremented by every clear; fences readiness verdicts composed before the clear. Read as COALESCE(clear_number, 0). |
created_at | string | required | When the job was enqueued. |
created_by | string | null | optional | Principal that created the job. |
dataset_id | string | null | optional | The 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_class | string | null | optional | Why 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_detail | string | null | optional | The failure's human text, already chain-flattened. Kept beside error_class so a steward sees the reason without reading pod logs. |
finished_at | string | null | optional | When the job finished. |
id | string | required | The job's unique id (UUIDv7, minted at enqueue). |
idempotency_key | string | null | optional | Optional dedup key, unique per org. |
image_digest | string | null | optional | Image digest the planning dispatcher ran, so a deploy mid-run is legible. |
kind | string | required | The job kind (run_all, correct, maintain, train, ...). |
max_attempts | integer | required | Vestigial: 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_before | string | null | optional | Earliest time the job may be claimed. A retry sets it to the backoff deadline. |
org_id | string | required | The tenant this job runs for. |
owner_epoch | string | null | optional | The dispatcher process epoch that planned or adopted the run. |
params | any | required | Kind-specific parameters. |
policy_hash | string | null | optional | sha256 over the compiled DAG's per-node policy (retries, backoff, timeout, class, segment); a divergence proceeds with the diff logged. |
priority | integer | required | Claim priority; higher runs first. |
resource_class | string | null | optional | Requested runner resource class. |
run_id | string | null | optional | The run this job produced, once dispatched. |
schedule_id | string | null | optional | The schedule that enqueued the job, if any. |
started_at | string | null | optional | When the job started running. |
state | string | required | Lifecycle state (queued, dispatching, running, succeeded, failed, canceling, canceled). |
structural_fingerprint | string | null | optional | sha256 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_context | string | null | optional | Propagated trace context. |
updated_at | string | required | When the job row was last updated. |
JobList
| Name | Type | Required | Description |
|---|---|---|---|
jobs | array of Job | required |
KeyIssued
| Name | Type | Required | Description |
|---|---|---|---|
id | string | required | |
key | string | required | |
role | string | required |
KeyRevoked
| Name | Type | Required | Description |
|---|---|---|---|
revoked | boolean | required |
LabelBand
| Name | Type | Required | Description |
|---|---|---|---|
max | number | required | |
min | number | required |
LabelCoverage
| Name | Type | Required | Description |
|---|---|---|---|
by_origin | LabelOrigins | required | |
matches | integer | required | |
non_matches | integer | required | |
total | integer | required |
LabelEvaluation
| Name | Type | Required | Description |
|---|---|---|---|
by_origin | map of ConfusionMetrics | required | Per label origin that has any evaluable label. |
counts | EvaluationCounts | required | |
curve | array of CurvePoint | required | |
model_version_label | string | required | |
overall | ConfusionMetrics | required | |
threshold | number | required |
LabelList
| Name | Type | Required | Description |
|---|---|---|---|
labels | array of PairLabel | required |
LabelOrigins
| Name | Type | Required | Description |
|---|---|---|---|
human | integer | required | |
llm | integer | required | |
reviewer | integer | required |
LabelingQueue
| Name | Type | Required | Description |
|---|---|---|---|
band | LabelBand | required | |
coverage | LabelCoverage | required | |
items | array of UncertainPair | required | |
snapshot | integer | required | |
threshold | number | required | The `auto_merge` threshold the pairs are ordered around. |
LargestBlockEstimate
| Name | Type | Required | Description |
|---|---|---|---|
key_values | array of string | required | |
match_key | integer | required | Which rule this block belongs to, since every rule is now broken down rather than only the first. |
pairs | integer | required | The pairs a run SCORES in this block, under this model's link type. |
rows | integer | required | Rows 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
| Name | Type | Required | Description |
|---|---|---|---|
items | array of LeadConversionView | required | |
next_cursor | string | null | optional | Pass as `cursor` for the next page; null on the last. |
LeadConversionView
| Name | Type | Required | Description |
|---|---|---|---|
account_id | string | null | optional | The Account the Lead converted into. |
apply_detail | string | null | optional | |
apply_status | string | null | optional | The apply, once begun: `applying`, `converted`, `converted_externally`, `failed` or `skipped_stale`. |
connection_id | string | required | |
contact_external_id | string | required | The Contact it converts into. |
contact_record_key | string | required | |
created_at | string | required | RFC 3339. |
decided_by | string | null | optional | |
entity_id | string | required | |
fingerprint | string | required | Name it to approve or reject. |
id | string | required | |
lead_external_id | string | required | The Lead's Salesforce id and record key. |
lead_record_key | string | required | |
status | string | required | `planned`, `approved`, `rejected` or `superseded`. |
Lexicon
| Name | Type | Required | Description |
|---|---|---|---|
pairs | array of LexiconPair | required |
LexiconPair
| Name | Type | Required | Description |
|---|---|---|---|
variant_a | string | required | |
variant_b | string | required |
LexiconSaved
| Name | Type | Required | Description |
|---|---|---|---|
apply_job | string | required | The `run_all_full` job that re-standardizes with the new pairs. |
pairs | array of LexiconPair | required |
LineageItem
| Name | Type | Required | Description |
|---|---|---|---|
attribute | string | required | |
record_key | string | required | |
rule | string | required | |
source_record_id | string | required | |
source_system | string | required |
MatchPreviewView
| Name | Type | Required | Description |
|---|---|---|---|
sample | array of PreviewPairView | required | |
total | integer | required | |
would_auto_merge | integer | required | |
would_review | integer | required |
MatchScoresPage
| Name | Type | Required | Description |
|---|---|---|---|
items | array of ScoredPair | required | |
next_cursor | string | null | optional | Pass as `cursor` for the next page; null on the last page. |
snapshot | integer | required | The lake snapshot every page of this walk reads; the cursor pins it. |
MatchingModel
| Name | Type | Required | Description |
|---|---|---|---|
activated_at | string | null | optional | When this version was activated, if it ever was. |
created_at | string | required | When the version was created. |
created_by | string | required | Principal that created the version. |
dataset_id | string | required | The dataset whose corpus this model was trained for. |
entity_type | string | required | Which canonical schema the model scores against; a model cannot be activated for a lake of the other entity type. |
id | string | required | The version row's unique id (UUIDv7, minted when the version is created). |
model_hash | string | required | SHA-256 of model_json, so a scored row can be tied back to the exact document that produced it. |
model_json | string | required | The 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_label | string | required | The 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. |
name | string | required | The 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_id | string | required | The tenant this model version belongs to. |
provenance | any | required | Where 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. |
state | string | required | Draft 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_id | string | null | optional | The frozen term-frequency snapshot this model scores against, when it has one. Paired with model_version_label by the TF lookup. |
updated_at | string | required | Wall-clock last-write time (database default; advanced by mutations once the entity migrates). |
version | integer | required | The monotonic version number within (org, name). Versions are immutable: a retrain or a weight override mints the next one rather than editing this. |
MergeApplyView
| Name | Type | Required | Description |
|---|---|---|---|
detail | string | null | optional | Why it settled as it did. |
status | string | required | `applying`, `applied`, `failed`, `skipped_stale` or `applied_externally`. |
MergePlan
| Name | Type | Required | Description |
|---|---|---|---|
email | string | null | optional | |
entity_id | string | required | |
family_name | string | null | optional | |
given_name | string | null | optional | |
group_confidence | integer | null | optional | Null when the group has no within-group scored edge. |
master_key | string | null | optional | |
master_record_key | string | null | optional | |
member_confidences | map of integer | required | |
member_count | integer | null | optional | |
member_records | array of string | required | |
phone_e164 | string | null | optional |
MergePlanList
| Name | Type | Required | Description |
|---|---|---|---|
items | array of MergePlan | required |
MergePreviewDetail
| Name | Type | Required | Description |
|---|---|---|---|
apply | MergeApplyView | any | null | optional | |
decided_by | string | null | optional | |
decision_reason | string | null | optional | |
field_changes | any | required | Provider field → `{before, after}` on the master. |
history | array of MergePreviewEvent | required | |
proposal | any | required | The members' synchronized preimages, the master and the policy inputs (the persisted proposal). |
related_counts | any | optional | Related-record counts per member; null while `related_counts_state` is `unavailable`. |
related_counts_state | string | required | |
summary | MergePreviewSummary | required |
MergePreviewEvent
| Name | Type | Required | Description |
|---|---|---|---|
actor | string | required | |
at | string | required | RFC 3339. |
fingerprint | string | required | |
from_status | string | null | optional | |
to_status | string | required |
MergePreviewPage
| Name | Type | Required | Description |
|---|---|---|---|
items | array of MergePreviewSummary | required | |
next_cursor | string | null | optional | Pass as `cursor` for the next page; null on the last. |
MergePreviewSummary
| Name | Type | Required | Description |
|---|---|---|---|
connection_id | string | required | |
created_at | string | required | RFC 3339. |
decided_by | string | null | optional | Who decided it — a principal, or `policy:<rule id>` for an auto-approval. |
entity_id | string | required | |
fingerprint | string | required | Name it to approve or reject. |
id | string | required | |
lake_snapshot | integer | required | |
master_record_key | string | required | |
member_count | integer | required | |
object | string | required | |
policy_revision | string | required | The writeback policy revision it was built under. |
score | number | null | optional | Match evidence: for each victim, its strongest scored edge to another member, then the weakest of those. Null when absent. |
status | string | required | `planned`, `approved`, `rejected` or `superseded`. |
MergeRestoreStepView
| Name | Type | Required | Description |
|---|---|---|---|
kind | string | required | `never_assert`, `undelete`, `recreate` or `revert_master`. |
new_id | string | null | optional | For `recreate`: the new Salesforce id of the recreated record. |
outcome | string | null | optional | |
status | string | required | `in_flight`, `done` or `failed`. |
target_id | string | required | The Salesforce id acted on (the record key for `never_assert`). |
MergeRestoreView
| Name | Type | Required | Description |
|---|---|---|---|
conflicts | array of object | required | What was refused rather than overwritten. |
detail | string | null | optional | |
job_id | string | null | optional | The job working on it, when this request queued one. |
related_records_reverted | boolean | required | Always false: records the merge reparented to the master stay there. |
status | string | required | `restoring`, `restored`, `partial` or `failed`. |
steps | array of MergeRestoreStepView | required |
MergesApplying
| Name | Type | Required | Description |
|---|---|---|---|
job_id | string | required | |
state | string | required |
MetricSnapshot
| Name | Type | Required | Description |
|---|---|---|---|
auto_merge_pairs | integer | required | Active scores at or above the auto-merge threshold. |
captured_at | string | required | The run's logical clock, not wall time — so a replayed fixture produces the same snapshot. |
created_at | string | required | Run-logical creation time. |
duplicate_groups | integer | required | Entities with more than one member. |
duplicate_records | integer | required | Records 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. |
entities | integer | required | Entities the run resolved them into. |
id | string | required | Content-derived row id: sha256('metric_snapshots:' || run_id). |
largest_group | integer | required | Members in the biggest entity. A sudden jump here is the signature of an over-merge, which an average cluster size hides completely. |
records | integer | required | Records in the standardized corpus. |
review_backlog | integer | required | Open review items after the run — the work the thresholds are handing to humans. |
review_band_pairs | integer | required | Active scores in the gray band: scored, not merged. The two together say where the thresholds are actually sitting. |
run_id | string | required | The run these metrics describe. One snapshot per run, so a re-run of the same id overwrites rather than double-counting. |
updated_at | string | required | Run-logical last-write time. |
MetricSnapshotSource
| Name | Type | Required | Description |
|---|---|---|---|
captured_at | string | required | The run's logical timestamp, duplicated here so the series is readable without joining. |
contributed_groups | integer | required | How 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_at | string | required | Creation stamp (the run's logical timestamp). |
duplicate_records | integer | required | How 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. |
id | string | required | Content-derived row id: sha256('metric_snapshot_sources:' || run_id || ':' || source_system). |
records | integer | required | How many of this source's records are in the corpus. |
run_id | string | required | The run this attribution describes; shares its id with the metric_snapshots row. |
source_system | string | required | The delivering source system. |
updated_at | string | required | Last-update stamp; a re-run of the same run_id corrects rather than appends. |
Metrics
| Name | Type | Required | Description |
|---|---|---|---|
duplicate_groups | integer | required | |
entities | integer | required | |
open_reviews | integer | required | |
records | integer | required | |
records_in_duplicate_groups | integer | required | |
snapshot | integer | required |
ModelCompiled
| Name | Type | Required | Description |
|---|---|---|---|
activated_at | string | null | optional | RFC 3339, microseconds. |
comparator_algorithm_version | integer | null | optional | The comparator algorithm the document was trained with; null when the stored document does not parse. |
created_at | string | required | RFC 3339, microseconds. |
created_by | string | required | |
entity_type | string | required | |
id | string | required | |
model_hash | string | required | |
model_version_label | string | required | |
name | string | required | |
provenance | any | required | |
state | string | required | |
tf_snapshot_id | string | null | optional | |
version | integer | required | |
notes | array of string | required |
ModelDetail
| Name | Type | Required | Description |
|---|---|---|---|
activated_at | string | null | optional | RFC 3339, microseconds. |
comparator_algorithm_version | integer | null | optional | The comparator algorithm the document was trained with; null when the stored document does not parse. |
created_at | string | required | RFC 3339, microseconds. |
created_by | string | required | |
entity_type | string | required | |
id | string | required | |
model_hash | string | required | |
model_version_label | string | required | |
name | string | required | |
provenance | any | required | |
state | string | required | |
tf_snapshot_id | string | null | optional | |
version | integer | required | |
model_json | string | required | The stored settings document, as text. |
weights | any | required | Per comparison level: m/u and the log-odds they imply. Null when the document does not parse. |
ModelEvaluation
| Name | Type | Required | Description |
|---|---|---|---|
by_origin | map of ConfusionMetrics | required | Per label origin that has any evaluable label. |
counts | EvaluationCounts | required | |
curve | array of CurvePoint | required | |
model_version_label | string | required | |
overall | ConfusionMetrics | required | |
threshold | number | required | |
name | string | required | |
state | string | required | |
version | integer | required |
ModelSummary
| Name | Type | Required | Description |
|---|---|---|---|
activated_at | string | null | optional | RFC 3339, microseconds. |
comparator_algorithm_version | integer | null | optional | The comparator algorithm the document was trained with; null when the stored document does not parse. |
created_at | string | required | RFC 3339, microseconds. |
created_by | string | required | |
entity_type | string | required | |
id | string | required | |
model_hash | string | required | |
model_version_label | string | required | |
name | string | required | |
provenance | any | required | |
state | string | required | |
tf_snapshot_id | string | null | optional | |
version | integer | required |
Org
| Name | Type | Required | Description |
|---|---|---|---|
active_config_version | integer | null | optional | The currently published config version, if any. |
config_path | string | required | Path to the tenant's config document. |
created_at | string | required | When the tenant was created. |
drop_root | string | null | optional | Optional object-store root for tenant purge. |
env | any | required | Lake connection env (catalog, data path, metadata schema). |
id | string | required | The tenant's unique id (UUIDv7, minted at creation). |
max_concurrent_jobs | integer | null | optional | How 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. |
name | string | required | The tenant's unique name (the routing handle; URLs stay name-based). |
record_allowance | integer | null | optional | The 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_bucket | string | null | optional | Bucket 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_prefix | string | null | optional | Key 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. |
state | string | required | Tenant lifecycle state. |
updated_at | string | required | Wall-clock last-write time (database default; advanced by mutations once the entity migrates). |
OrgCreated
| Name | Type | Required | Description |
|---|---|---|---|
name | string | required | |
starter_model | any | required | What seeding the starter model did: `seeded` plus a reason or the version. |
OrgItem
| Name | Type | Required | Description |
|---|---|---|---|
active_config_version | integer | null | optional | |
created_at | string | required | |
id | string | required | |
name | string | required | |
state | string | required |
OrgProvisioned
| Name | Type | Required | Description |
|---|---|---|---|
admin_key | string | required | |
admin_key_id | string | required | |
config_version | integer | required | |
job_id | string | required | |
name | string | required | |
state | string | required | |
tenant | string | null | optional |
OrgResources
| Name | Type | Required | Description |
|---|---|---|---|
duckdb_memory_limit | string | null | optional | |
duckdb_threads | integer | null | optional |
OrgUsage
| Name | Type | Required | Description |
|---|---|---|---|
allowance | integer | null | optional | The allowance; null is unlimited. |
at_limit | boolean | required | True once `records >= limit`: new deliveries are refused with 402. |
datasets | array of DatasetUsage | required | |
limit | integer | null | optional | Where new deliveries start to be refused: the allowance plus its soft buffer (`ALLOWANCE_BUFFER_PERCENT`). Null when unlimited. |
over_allowance | boolean | required | True 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). |
records | integer | required | |
remaining | integer | null | optional | `allowance - records`, never negative; null when unlimited. |
unit | string | required | Always `records`: connected records, summed over every dataset. |
OrgView
| Name | Type | Required | Description |
|---|---|---|---|
active_config_version | integer | null | optional | |
drop_root | string | null | optional | |
id | string | required | |
name | string | required | |
resources | OrgResources | required | |
state | string | required |
PairLabel
| Name | Type | Required | Description |
|---|---|---|---|
created_at | string | required | When the verdict was first recorded. |
dataset_id | string | required | The dataset whose record pair this verdict is about — record keys are lake-local. |
id | string | required | UUIDv7, minted by the application. |
labeled_by | string | required | The actor that recorded the verdict. |
model_version | string | null | optional | The model whose score prompted this label, when there was one. Null for a label recorded without a score in front of it. |
note | string | null | optional | Optional free text from the labeller. |
org_id | string | required | The tenant whose corpus the pair belongs to; every read is scoped by it. |
origin | string | required | Where 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_key | string | required | The 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_key | string | required | The pair's higher record key, canonical order. |
score_at_label | number | null | optional | The 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_at | string | required | When it was last corrected. |
verdict | string | required | Whether 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
| Name | Type | Required | Description |
|---|---|---|---|
email | string | null | optional | The golden record's email, when assembled. |
entity_id | string | required | The resolved entity. |
family_name | string | null | optional | The golden record's family name, when assembled. |
given_name | string | null | optional | The golden record's given name, when assembled. |
group_confidence | integer | null | optional | The group's confidence (0–100), or null when no member edge is scored. |
master_record_key | string | null | optional | The strongest-attached member, or null when the group is unscored. |
matched_fields | array of string | required | The comparison fields any within-group edge matched on. |
member_confidences | map of integer | required | Each scored member's attachment confidence (0–100), by member key. |
member_count | integer | required | How many source records resolved to it. |
members | array of string | required | The member records, as `<source_system>:<source_record_id>`, ordered. |
model_versions | array of string | required | The model versions whose scores link the group, deduplicated. |
verified | boolean | required | Whether a steward asserted or verified the group. |
PersonDuplicatesPage
| Name | Type | Required | Description |
|---|---|---|---|
items | array of PersonDuplicateGroup | required | |
next_cursor | string | null | optional | Pass as `cursor` for the next page; null on the last page. |
snapshot | integer | required | The lake snapshot every page of this walk reads; the cursor pins it. |
PersonGolden
| Name | Type | Required | Description |
|---|---|---|---|
addr_city | string | null | optional | |
addr_number | string | null | optional | |
addr_postal | string | null | optional | |
addr_region | string | null | optional | |
addr_street | string | null | optional | |
addr_unit | string | null | optional | |
birth_date | string | null | optional | |
email | string | null | optional | |
family_name | string | null | optional | |
given_name | string | null | optional | |
id | string | required | |
metadata | any | optional | |
phone_e164 | string | null | optional | |
survivorship_version | string | required |
PreviewPairView
| Name | Type | Required | Description |
|---|---|---|---|
confidence | integer | required | The display integer of `match_probability`. |
evidence | any | required | The comparison evidence; null if it was not valid JSON. |
match_probability | number | required | |
rec_a_key | string | required | |
rec_b_key | string | required |
PreviewsGenerating
| Name | Type | Required | Description |
|---|---|---|---|
job_id | string | required | |
state | string | required |
Profile
ProfileFinding
| Name | Type | Required | Description |
|---|---|---|---|
code | string | required | The 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_name | string | required | The 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_at | string | required | Run-logical creation time. |
detail | any | optional | The 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. |
id | string | required | Content-derived row id: sha256('profile_findings:' || profile_run_id || ':' || code || ':' || column_name). |
message | string | required | The 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_id | string | required | The 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). |
severity | string | required | How 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_at | string | required | Run-logical last-write time. |
ProfileNotYet
| Name | Type | Required | Description |
|---|---|---|---|
profiled | boolean | required | Always false. |
subject | string | required | |
tier | integer | required |
ProfileReport
| Name | Type | Required | Description |
|---|---|---|---|
candidate_keys | array of CandidateKeyItem | required | Empty for a tier-1 run, which does not measure keys. |
captured_at | string | required | |
column_count | integer | required | |
columns | array of any | required | One generated column-profile row per column. Value-bearing fields (top values, examples) are redacted below Steward. |
config_hash | string | null | optional | |
corpus_digest | string | required | |
data_snapshot | integer | required | |
duration_ms | integer | required | |
findings | array of ProfileFinding | required | |
ingest_batch_id | string | null | optional | |
model_version | string | null | optional | |
profile_run_id | string | required | |
profiled | boolean | required | Always true. |
row_count | integer | required | |
sample_proportion | number | null | optional | |
sample_seed | integer | null | optional | |
sampled | boolean | required | Whether the figures come from a sample (then `sample_proportion` says how much of the corpus it covered). |
source_system | string | required | |
subject | string | required | |
tier | integer | required |
ProfileRun
| Name | Type | Required | Description |
|---|---|---|---|
captured_at | string | required | The run's logical clock, not wall time — so a replayed fixture produces the same row. |
column_count | integer | required | Columns 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_hash | string | null | optional | The 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_digest | string | required | A 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_at | string | required | Run-logical creation time. |
duration_ms | integer | required | Wall-clock cost of the profile, kept so the decision to run a deeper tier can be made from a measurement rather than a guess. |
id | string | required | Content-derived row id: sha256('profile_runs:' || subject || ':' || source_system || ':' || corpus_digest || ':' || tier). |
ingest_batch_id | string | null | optional | For 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_version | string | null | optional | The 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_count | integer | required | Rows 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_proportion | number | null | optional | The sampled share of rows, NULL when the whole corpus was read. |
sample_seed | integer | null | optional | The 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. |
sampled | boolean | required | Whether 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. |
snapshot | integer | required | The 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_system | string | required | The 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. |
subject | string | required | Which 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. |
tier | integer | required | Profiling 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_at | string | required | Run-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
| Name | Type | Required | Description |
|---|---|---|---|
at_least_80 | integer | required | |
below_50 | integer | required | |
between_50_80 | integer | required |
QualityDimensions
| Name | Type | Required | Description |
|---|---|---|---|
completeness | number | null | optional | |
freshness | number | null | optional | |
validity | number | null | optional |
QualityReport
| Name | Type | Required | Description |
|---|---|---|---|
buckets | QualityBuckets | required | |
configured | boolean | required | Always true. |
dimensions | QualityDimensions | required | |
max_score | number | null | optional | |
mean_score | number | null | optional | |
min_score | number | null | optional | |
scored | integer | required | |
worst | array of WorstRecord | required |
QualityUnconfigured
| Name | Type | Required | Description |
|---|---|---|---|
configured | boolean | required | Always false. |
scored | integer | required | Always 0. |
RecordQuality
| Name | Type | Required | Description |
|---|---|---|---|
completeness | number | required | Weighted fraction of the configured attributes that are populated. |
created_at | string | required | Run-logical creation time. |
freshness | number | null | optional | 1.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. |
id | string | required | Content-derived row id: sha256('record_qualities:' || record_key). |
record_key | string | required | The standardized record scored. |
run_id | string | required | The run that scored it. |
score | number | required | 0-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_at | string | required | That run's logical clock. |
updated_at | string | required | Run-logical last-write time. |
validity | number | null | optional | Fraction 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
| Name | Type | Required | Description |
|---|---|---|---|
items | array of any | required | One object per found record: `record_key` plus the dataset entity type's standardized columns, so the keys depend on that type. |
snapshot | integer | required |
ResolveCandidate
| Name | Type | Required | Description |
|---|---|---|---|
band | string | required | Which band the score falls in under the org's thresholds: `auto_merge` / `review` / `reject`. |
confidence | integer | required | The 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_id | string | null | optional | The 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. |
evidence | any | required | Per-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_probability | number | required | |
record_key | string | required | The record the payload matched. |
ResolveResult
| Name | Type | Required | Description |
|---|---|---|---|
candidates | array of ResolveCandidate | required | |
decision | string | required | The 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. |
snapshot | integer | required | The lake snapshot the corpus was read at, so a caller can tell whether it resolved against fresh data. |
ResumeAccepted
| Name | Type | Required | Description |
|---|---|---|---|
job_id | string | required | |
state | string | required |
ReviewItem
| Name | Type | Required | Description |
|---|---|---|---|
confidence | integer | null | optional | The display integer of `match_probability`; absent when it is null. |
entity_id | string | null | optional | |
first_seen_run_id | string | required | |
id | string | required | |
last_seen_run_id | string | required | |
match_probability | number | null | optional | Null for a structural escalation, which is not a scored pair. |
reason | string | required | |
rec_a_key | string | null | optional | |
rec_b_key | string | null | optional | |
resolved_at | string | null | optional | Naive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339. |
resolved_by | string | null | optional | |
status | string | required | |
subject_type | string | required | `pair` for a record-pair review, `entity` for an entity-subject one. |
waterfall | any | optional |
ReviewMergeGroup
| Name | Type | Required | Description |
|---|---|---|---|
items | array of any | required | Records-by-key items (each record's values, keyed by the dataset's entity type), each stamped with the `entity_id` it belongs to. |
snapshot | integer | required | |
total | integer | required | The union's size before the key cap truncated `items`. |
ReviewPage
| Name | Type | Required | Description |
|---|---|---|---|
items | array of ReviewItem | required | |
next_cursor | string | null | optional | |
snapshot | integer | required | |
unscored_hidden | integer | required | Open unscored escalations a probability band hid (0 with no band). |
RunEventItem
| Name | Type | Required | Description |
|---|---|---|---|
details | any | optional | |
entity_id | string | required | |
event_type | string | required | |
id | string | required | |
occurred_at | string | required | Naive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339. |
run_id | string | required | |
seq | integer | required | The run-local order; the page cursor. |
RunEventPage
| Name | Type | Required | Description |
|---|---|---|---|
items | array of RunEventItem | required | |
next_cursor | string | null | optional | |
run_id | string | required | |
snapshot | integer | required |
RunItem
| Name | Type | Required | Description |
|---|---|---|---|
auto_merged_pairs | integer | null | optional | Pairs 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_hash | string | required | |
ended_at | string | null | optional | |
id | string | required | |
mode | string | required | `full`, `incremental`, `correct`, … |
model_version | string | null | optional | |
rebuild_reason | string | null | optional | |
snapshot | integer | null | optional | The 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_at | string | required | Naive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339. |
status | string | required | |
tf_snapshot_id | string | null | optional |
S3IngestCursor
| Name | Type | Required | Description |
|---|---|---|---|
created_at | string | required | When this source was first auto-ingested. |
dataset_id | string | required | The dataset the polled source lands in. |
delivery_id | string | required | The delivery this object became, tying the cursor to the audit row and the run it enqueued. |
etag | string | null | optional | The 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. |
id | string | required | UUIDv7, minted by the application. |
object_key | string | required | The 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_id | string | required | The tenant whose prefix was polled; every read is scoped by it. |
size_bytes | integer | required | The object's size at ingest, so a later shrink is visible as one. |
source | string | required | The config source this object landed as — the first path segment under the tenant's prefix. |
updated_at | string | required | When it was last auto-ingested. |
SalesforceConnectionItem
| Name | Type | Required | Description |
|---|---|---|---|
active | boolean | required | |
api_version | string | required | |
auth_kind | string | required | |
id | string | required | |
instance_url | string | required | |
name | string | required |
Schedule
| Name | Type | Required | Description |
|---|---|---|---|
created_at | string | required | When the schedule was created. |
cron | string | required | The cron expression. |
dataset_id | string | required | The dataset this schedule enqueues for. |
enabled | boolean | required | Whether the schedule is active. |
id | string | required | The schedule's unique id. |
kind | string | required | The job kind the schedule enqueues. |
last_enqueued_at | string | null | optional | When the schedule last enqueued a job. |
org_id | string | required | The tenant this schedule runs for. |
params | any | required | Kind-specific parameters. |
source | string | required | What created the schedule (api, config:correction_pass, system:lake_maintain). |
updated_at | string | required | Wall-clock last-write time (database default; advanced by mutations once the entity migrates). |
ScheduleCreated
| Name | Type | Required | Description |
|---|---|---|---|
cron | string | required | |
id | string | required | |
kind | string | required |
ScheduleItem
| Name | Type | Required | Description |
|---|---|---|---|
cron | string | required | |
enabled | boolean | required | |
id | string | required | |
kind | string | required | The job kind it enqueues. |
last_enqueued_at | string | null | optional | |
source | string | required | `api` or `config`: a config-owned schedule is changed by publishing. |
ScheduleToggled
| Name | Type | Required | Description |
|---|---|---|---|
enabled | boolean | required | |
id | string | required |
ScoredPair
| Name | Type | Required | Description |
|---|---|---|---|
confidence | integer | required | |
evidence | any | required | Per-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_probability | number | required | |
model_version | string | required | |
rec_a_key | string | required | |
rec_b_key | string | required | |
run_id | string | required | |
scored_at | string | required | Naive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339. |
SourceInsight
| Name | Type | Required | Description |
|---|---|---|---|
captured_at | string | required | chrono's display form (`YYYY-MM-DD HH:MM:SS[.f] UTC`). |
contributed_groups | integer | required | |
duplicate_rate | number | null | optional | Null when the source contributed no records. |
duplicate_records | integer | required | |
records | integer | required | |
run_id | string | required | |
source_system | string | required |
SourceInsights
| Name | Type | Required | Description |
|---|---|---|---|
run_id | string | null | optional | The run reported on; null (with no sources) before any run retained one. |
snapshot | integer | required | |
sources | array of SourceInsight | required |
Staged
| Name | Type | Required | Description |
|---|---|---|---|
action_id | string | required | |
pending_until_next_reconcile | boolean | required | Always false: the correction lands on the next apply, not the next run. |
status | string | required | Always `staged`. |
StagedApplied
| Name | Type | Required | Description |
|---|---|---|---|
action_id | string | required | |
apply_job | string | required | |
pending_until_next_reconcile | boolean | required | Always false. |
status | string | required | Always `staged`: the job, not this request, applies it. |
StagedBatch
| Name | Type | Required | Description |
|---|---|---|---|
action_ids | array of string | required | |
status | string | required | Always `staged`. |
StagedBatchApplied
| Name | Type | Required | Description |
|---|---|---|---|
action_ids | array of string | required | |
apply_job | string | required | |
status | string | required | Always `staged`. |
StagedCount
| Name | Type | Required | Description |
|---|---|---|---|
pending_count | integer | required |
StagedRecords
| Name | Type | Required | Description |
|---|---|---|---|
action_id | string | null | optional | The first of `action_ids`: the single-record callers' handle. |
action_ids | array of string | required | |
count | integer | required | How many records the call named. |
pending_until_next_reconcile | boolean | required | Always false: the actions land on the next apply. |
status | string | required | Always `staged`. |
StagedRecordsApplied
| Name | Type | Required | Description |
|---|---|---|---|
action_id | string | null | optional | |
action_ids | array of string | required | |
apply_job | string | required | |
count | integer | required | |
pending_until_next_reconcile | boolean | required | |
status | string | required | Always `staged`: the job, not this request, applies them. |
StagedStewardAction
| Name | Type | Required | Description |
|---|---|---|---|
action | any | required | The action payload. |
applied_at | string | null | optional | When the action was applied, if it has been. |
created_at | string | required | When the action was staged. |
created_by | string | required | Principal that staged the action. |
dataset_id | string | required | The dataset whose lake this action drains into. |
error | string | null | optional | The failure reason, if the action failed. |
id | string | required | The staged action's unique id. |
org_id | string | required | The tenant the action applies to. |
state | string | required | Whether the action is pending, applied or failed. |
updated_at | string | required | Wall-clock last-write time (database default; advanced by mutations once the entity migrates). |
Tag
| Name | Type | Required | Description |
|---|---|---|---|
active | boolean | required | Whether 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_role | string | null | optional | The 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_at | string | required | When the tag was created. |
created_by | string | required | The actor that created the tag. |
description | string | null | optional | What the tag means, for the steward who inherits it. Null when nobody wrote one. |
id | string | required | The tag's unique id (UUIDv7, minted by the application). |
kind | string | required | Who 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. |
name | string | required | The 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_id | string | required | The tenant that owns the tag. A tag is never shared across tenants: it names one tenant's own workflow. |
updated_at | string | required | Wall-clock last-write time. |
TagApplied
| Name | Type | Required | Description |
|---|---|---|---|
applied | boolean | required |
TagList
| Name | Type | Required | Description |
|---|---|---|---|
tags | array of Tag | required |
TagRemoved
| Name | Type | Required | Description |
|---|---|---|---|
removed | boolean | required |
TagRetired
| Name | Type | Required | Description |
|---|---|---|---|
retired | boolean | required |
TagSubjects
| Name | Type | Required | Description |
|---|---|---|---|
subjects | array of Tagging | required |
Tagging
| Name | Type | Required | Description |
|---|---|---|---|
created_at | string | required | When the tag was applied. |
created_by | string | required | The actor that applied the tag. Kept because tagging is how work is assigned, so who claimed it matters. |
dataset_id | string | required | The dataset whose subject this tag is applied to — subject ids are lake-local. |
id | string | required | The tagging's unique id (UUIDv7, minted by the application). |
org_id | string | required | The 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_id | string | required | The 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_type | string | required | What 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_id | string | required | The tag applied. |
updated_at | string | required | Wall-clock last-write time. |
TaggingList
| Name | Type | Required | Description |
|---|---|---|---|
taggings | array of Tagging | required | |
truncated | boolean | required | True when the cap cut the list: the caller has not seen every tagging. |
TaskInstance
| Name | Type | Required | Description |
|---|---|---|---|
archived_reason | string | null | optional | Why 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). |
counters | any | optional | Progress counters, replaced on every heartbeat and at finish. |
created_at | string | required | Row created. |
dataset_id | string | null | optional | Copied 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_class | string | null | optional | er-errors' seven classes plus the executor's four. |
error_detail | string | null | optional | Why 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_from | string | null | optional | Class of the OOMKilled predecessor try, so a mixed-class run is legible. |
exit_code | integer | null | optional | Container 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_at | string | null | optional | Terminal state recorded. |
heartbeat_at | string | null | optional | Last heartbeat. |
id | string | required | er_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_digest | string | null | optional | Image digest this try ran, so a deploy mid-run is legible. |
input | any | optional | The 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_id | string | required | The run (jobs.id == run_id). |
k8s_job_name | string | null | optional | batch/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). |
kind | string | required | Where the body runs: a Kubernetes Job, or a dispatcher-local body under the control-task contract (§3.6). |
launches | integer | required | Infrastructure 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. |
live | boolean | null | optional | TRUE on the live try, NULL once archived (NULLs are distinct, so the partial unique index admits one live row per coordinate). |
max_launches | integer | required | Infrastructure budget per try. |
max_tries | integer | required | Cumulative 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_class | string | null | optional | Operator override recorded by clear on a restarting row; complete_restart applies it to the successor. |
node_name | string | null | optional | Node the pod landed on. |
not_before | string | null | optional | Backoff deadline for up_for_retry; a short capacity wait for scheduled. |
org_id | string | required | Tenant. |
outcome | string | null | optional | Success flavour; no_op is exit 10. |
output | any | optional | The serialized DurableOutput (a LakeRef or Plan), written at finish. |
owner_epoch | string | null | optional | The dispatcher process epoch (UUIDv7 minted at start) that claimed the launch; adoption rewrites it. |
pod_name | string | null | optional | Pod that ran this try, from the pod's bound token on first contact; cross-checked by the watch. |
pod_uid | string | null | optional | Pod UID, recorded from the token's claim; the watch confirms it. |
queued_at | string | null | optional | Launch claimed (write-ahead, before the create). |
resource_class | string | null | optional | Class this try runs at; NULL for a control task. OOM escalation writes a larger class on the next try. |
scheduled_at | string | null | optional | Readiness fired. |
segment | string | null | optional | Fusion segment id resolved at planning; NULL for a task that runs alone. |
seq | integer | required | Topological position from assembly; display and claim order. |
snapshot_end | integer | null | optional | Lake snapshot of the task's last commit: the durable reference downstream pins to. |
snapshot_start | integer | null | optional | Lake snapshot before the task's first commit. |
started_at | string | null | optional | Pod reported start. |
state | string | required | Closed state set (§5). restarting and canceling are the write-ahead markers for clear and cancel of a live row. |
task_id | string | required | Task::NAME, stable across renames. |
teardown | boolean | required | Claimable while the job is canceling (finish). |
termination_reason | string | null | optional | Platform 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_context | string | null | optional | traceparent of this try's span, a child of jobs.trace_context. |
trigger_rule | string | required | Copied from the compiled graph at planning so the UI can explain propagation; the graph is the authority. |
try_number | integer | required | 1-based try. A new row per try. |
updated_at | string | required | Row updated. |
upstream | any | required | Upstream task_ids, a UI projection of the compiled edges. |
TaskList
| Name | Type | Required | Description |
|---|---|---|---|
tasks | array of TaskInstance | required |
UncertainPair
| Name | Type | Required | Description |
|---|---|---|---|
confidence | integer | required | |
evidence | any | required | Per-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_probability | number | required | |
model_version | string | required | |
rec_a_key | string | required | |
rec_b_key | string | required | |
run_id | string | required | |
scored_at | string | required | Naive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339. |
UnmatchApplied
| Name | Type | Required | Description |
|---|---|---|---|
action_ids | array of string | required | |
apply_job | string | required | |
entity_id | string | required | |
pairs | integer | required | |
status | string | required | Always `applied`. |
UnmatchStaged
| Name | Type | Required | Description |
|---|---|---|---|
action_ids | array of string | required | |
entity_id | string | required | |
pairs | integer | required | |
pending_until_next_reconcile | boolean | required | Always true. |
status | string | required | Always `staged`. |
UnmergeApplied
| Name | Type | Required | Description |
|---|---|---|---|
action_ids | array of string | required | |
apply_job | string | required | |
pairs | integer | required | |
status | string | required | Always `applied`. |
UnmergeStaged
| Name | Type | Required | Description |
|---|---|---|---|
action_ids | array of string | required | |
pairs | integer | required | How many never-rules were staged (one per peeled record). |
pending_until_next_reconcile | boolean | required | Always true. |
status | string | required | Always `staged`. |
UploadAborted
| Name | Type | Required | Description |
|---|---|---|---|
state | string | required | |
upload_id | string | required |
UploadPart
| Name | Type | Required | Description |
|---|---|---|---|
bytes | integer | required | |
part | integer | required | |
sha256 | string | required | The part's SHA-256 as received — compare with your copy. |
UploadSession
| Name | Type | Required | Description |
|---|---|---|---|
bytes | integer | required | |
expires_at | string | required | RFC 3339. Past it every call but abort is a 410. |
part_count | integer | required | |
part_size | integer | required | Every part but the last is exactly this many bytes. |
part_url | string | required | PUT each part's bytes here, replacing `{part}` with 1..=part_count. |
parts_received | array of integer | required | The parts already stored, ascending: a resuming client sends the rest. |
sha256 | string | required | |
source | string | required | |
upload_id | string | required |
UpsertPolicyList
| Name | Type | Required | Description |
|---|---|---|---|
items | array of UpsertPolicyView | required |
UpsertPolicyView
| Name | Type | Required | Description |
|---|---|---|---|
connection_id | string | required | |
created_at | string | required | RFC 3339. |
created_by | string | required | |
external_id_field | string | required | |
field_mapping | object | required | |
id | string | required | The revision an upsert preview binds. |
object | string | required | |
sources | array of string | required | |
writeback_allowlist | array of string | required |
UpsertPreviewPage
| Name | Type | Required | Description |
|---|---|---|---|
items | array of UpsertPreviewView | required | |
next_cursor | string | null | optional | Pass as `cursor` for the next page; null on the last. |
UpsertPreviewView
| Name | Type | Required | Description |
|---|---|---|---|
apply_detail | string | null | optional | |
apply_status | string | null | optional | The apply, once begun: `applying`, `created`, `updated`, `failed` or `skipped_stale`. |
connection_id | string | required | |
created_at | string | required | RFC 3339. |
decided_by | string | null | optional | |
entity_id | string | required | |
external_id_field | string | required | |
external_id_value | string | required | |
fields | object | required | Provider field → value to write. |
fingerprint | string | required | Name it to approve or reject. |
id | string | required | |
object | string | required | |
policy_revision | string | required | The upsert policy revision it was built under. |
sf_record_id | string | null | optional | The Salesforce id written, once applied. |
status | string | required | `planned`, `approved`, `rejected` or `superseded`. |
Webhook
| Name | Type | Required | Description |
|---|---|---|---|
active | boolean | required | Whether the webhook is active. |
created_at | string | required | When the webhook was registered. |
dataset_id | string | null | optional | Optional dataset filter: NULL subscribes to every dataset's events. |
events | any | required | The subscribed event types. |
id | string | required | The webhook's unique id. |
org_id | string | required | The tenant that owns the webhook. |
updated_at | string | required | Wall-clock last-write time (database default; advanced by mutations once the entity migrates). |
url | string | required | The delivery URL. |
WebhookCreated
| Name | Type | Required | Description |
|---|---|---|---|
active | boolean | required | Always true. |
events | array of string | required | |
id | string | required | |
secret | string | required | The HMAC-SHA256 key for `X-ER-Signature`; not returned again. |
url | string | required |
WebhookDelivery
| Name | Type | Required | Description |
|---|---|---|---|
attempt | integer | required | Attempts handed out. Counted when claimed, not when reported, so a drainer that dies still consumes one. |
created_at | string | required | When the event was recorded, which is before any delivery was attempted. |
dataset_id | string | null | optional | The dataset the delivered event came from, when it has one (provenance). |
delivered_at | string | null | optional | When a 2xx was received; NULL unless state is delivered. |
error | string | null | optional | Why the last attempt did not deliver: a transport error, or the outbound-URL guard's refusal. |
event_type | string | required | The catalogued event (webhook::EVENT_CATALOG), e.g. job.succeeded. |
id | string | required | UUIDv7, minted by the application. |
max_attempts | integer | required | Attempts before giving up. Six with the backoff below spans about ten minutes. |
next_attempt_at | string | null | optional | When this becomes claimable. NULL means immediately; set to a backoff in the future after a retryable failure. |
org_id | string | required | The tenant whose subscriber this is for; every read is scoped by it. |
payload | any | required | The 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_code | integer | null | optional | The subscriber's HTTP status, when the POST completed at all. |
state | string | required | pending until a drain settles it; delivered on a 2xx; failed when retries are exhausted or the destination is refused outright. |
updated_at | string | required | Last write. |
webhook_id | string | required | The subscription being delivered to. |
WebhookDeliveryList
| Name | Type | Required | Description |
|---|---|---|---|
deliveries | array of WebhookDelivery | required |
WebhookEventCatalog
| Name | Type | Required | Description |
|---|---|---|---|
events | array of WebhookEventItem | required |
WebhookEventItem
| Name | Type | Required | Description |
|---|---|---|---|
description | string | required | |
event | string | required |
WebhookItem
| Name | Type | Required | Description |
|---|---|---|---|
active | boolean | required | |
events | any | required | Subscribed event names; empty subscribes to all. |
id | string | required | |
url | string | required |
WorkOrder
| Name | Type | Required | Description |
|---|---|---|---|
connection | any | required | Salesforce credentials and watermark for an extract task; null otherwise. |
dataset_id | string | null | optional | |
drop_root | string | null | optional | |
input | any | optional | |
job_id | string | required | |
kind | string | required | |
labels | array of array of string | required | `(rec_a_key, rec_b_key)` verdict pairs, for a train task. |
lake_env | any | required | The lake connection env the task opens. |
lineage | array of string | required | The attempt's task chain, current first. |
max_tries | integer | required | |
models | array of object | required | The tenant's active models, for scoring tasks. |
org_id | string | required | |
params | any | required | |
resource_class | string | null | optional | |
run_id | string | required | |
segment | string | null | optional | |
state | string | required | |
structural_fingerprint | string | null | optional | |
task_id | string | required | |
trigger_rule | string | required | |
try_number | integer | required |
WorstRecord
| Name | Type | Required | Description |
|---|---|---|---|
completeness | number | required | |
freshness | number | null | optional | |
record_key | string | required | |
score | number | required | |
validity | number | null | optional |
WritebackAuthorizationStarted
| Name | Type | Required | Description |
|---|---|---|---|
authorize_url | string | required | Send the reviewer here; Salesforce returns them to `redirect_uri` with `code` and `state`. |
expires_at | string | required | RFC 3339; complete before this. |
WritebackAuthorizationView
| Name | Type | Required | Description |
|---|---|---|---|
allow_automatic | boolean | required | |
authorized_by | string | required | |
created_at | string | required | RFC 3339. |
revoked_at | string | null | optional | RFC 3339. |
revoked_reason | string | null | optional | `consent_withdrawn`, `replaced` or `requested`. |
scopes | string | required | |
sf_org_id | string | required | |
sf_user_id | string | required | The Salesforce user writeback acts as. |
sf_username | string | null | optional | |
status | string | required | `active` or `revoked`. |
WritebackPolicyList
| Name | Type | Required | Description |
|---|---|---|---|
items | array of WritebackPolicyView | required |
WritebackPolicyView
| Name | Type | Required | Description |
|---|---|---|---|
connection_id | string | required | |
created_at | string | required | RFC 3339. |
created_by | string | required | |
election_policy | string | required | |
field_mapping | any | required | |
id | string | required | The revision id a merge preview binds. |
object | string | required | |
writeback_allowlist | any | required |