On this page

Last updated

The details behind the flow

Build with DupeZero.

Configure a dataset. Submit records. Resolve identities. Retrieve results with their evidence.

This guide documents the Rust control-plane API as it exists today. The signed-in web application calls it through a server-side backend-for-frontend. A browser session cookie is not a control-plane API credential.

The public endpoint is not open yet. The contract is published, in full, at /docs/api, and an organization admin can create keys under Settings → API keys; what is not yet available is an API origin a customer can reach from outside DupeZero. Until it opens, the web application is how you work with DupeZero, and the examples below use environment variables for the origin you will be given.

Client environment
# Use the API origin supplied for your deployment, without a trailing slash.
export ER_API_ORIGIN='https://your-api.example.com'
export ER_ORG='your-org'
export ER_DATASET='contacts'
# Set ER_API_KEY through your secret manager or local shell.
# Never put an operator token in browser code.
  1. Provision an organization and obtain a scoped key.
  2. Create or select a dataset and wait for it to become active.
  3. Configure sources, identity comparisons, review policy, and survivorship.
  4. Publish a validated configuration, then submit a source delivery.
  5. Monitor the returned job and retrieve results after success.
  6. Inspect evidence and apply corrections through reconciliation.

Watch the calls

The workflow, call by call.

The same six steps as the requests a client makes. Each response hands the next call what it needs, outlined where it is returned and where it is used. Values are illustrative and responses abbreviated; every field is in the reference below.

  1. 01 / 06

    Obtain a scoped key.

    An administrator mints an organization-scoped key. The response shows it once, and every later call sends it as a bearer token.

  2. 02 / 06

    Create the dataset.

    Give it a name and an entity type. The name becomes the path of every call that follows, and the dataset reports active once it can take records.

  3. 03 / 06

    Store a configuration.

    Post the YAML as a draft. The version number it returns is the one you publish.

  4. 04 / 06

    Publish it, then send records.

    Publish that version, then upload a source's delivery. The upload answers with the job that processes it.

  5. 05 / 06

    Follow the job, then read the results.

    Poll the job until it succeeds, then list the duplicate groups: Meridian Supply's three records are one entity.

  6. 06 / 06

    Inspect it, then correct it.

    Read the entity with its members and lineage, then record a lasting decision: these two records always match. It is staged until the next apply. How corrections apply

One organization. Multiple datasets.

An organization is the ownership and authorization boundary. It contains datasets, keys, connections, and organization-level settings. A dataset is a separate resolution workspace with its own source mappings, configuration versions, models, jobs, and results. The same upstream system can feed several datasets through their separately configured mappings.

Paths use the organization and dataset routing names: /v1/orgs/{org}/datasets/{ds}. Do not substitute a display name or assume a dataset’s entity identifiers belong to another dataset.

Dataset creation supports person and account entity types, fixed at creation. An organization admin key creates a dataset; the service provisions its storage and seeds a starter configuration as version 1. Supplying infrastructure paths and lake settings requires operator access.

Create a person dataset
curl --fail-with-body -X POST   "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets"   -H "Authorization: Bearer $ER_API_KEY"   -H 'Content-Type: application/json'   --data '{"name":"contacts","display_name":"Contacts","entity_type":"person"}'

Creation returns 202 with a job_id: poll that job, or fetch the dataset until its state is active, before publishing configuration or submitting work. A dataset still provisioning refuses publication with 409. If auto-provisioning is unavailable, have the operator configure the environment; inventing a lake path is not a client-side workaround.

Authentication and roles

Send Authorization: Bearer <credential> on control-plane requests. Organization API keys have the form erk_<key_id>_<secret>. The server derives organization scope and role from the stored key. Headers cannot promote a caller.

RoleTypical authority
viewerRead datasets, results, and evidence.
stewardSubmit deliveries and jobs; record review decisions and corrections.
adminManage configuration and organization settings; create auto-provisioned datasets.
operatorProvision infrastructure and operate cross-organization service surfaces.

The hierarchy is viewer → steward → admin → operator. Each endpoint still applies its own guard. An invalid or missing credential returns 401; insufficient authority within the organization returns 403; an organization outside the key’s scope returns 404.

List datasets
curl --fail-with-body   "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets"   -H "Authorization: Bearer $ER_API_KEY"

This endpoint returns a bare JSON array, not an items envelope. Keep keys in server-side integrations, rotate them yourself (an organization admin creates and revokes keys under Settings → API keys), and use the least role your workflow needs.

Sources, matching, and survivorship

A published dataset configuration defines the source names, mapped fields, standardization, blocking, comparisons, model behavior, and survivorship used by resolution. Uploads reference a source name already present in that active configuration. Adding a source to the marketing example does not configure a real dataset.

Read the active configuration at GET /v1/orgs/{org}/datasets/{ds}/config. Changing it is three steps, each with an admin key: validate a candidate, store it as a draft version, then publish that version. Validation stores nothing and queues nothing; it runs every check publication runs and reports all of them at once.

Validate a candidate configuration
# config.yaml is your dataset configuration.
python3 -c 'import json; print(json.dumps({"yaml": open("config.yaml").read()}))' > config-request.json
curl --fail-with-body -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'   --data-binary @config-request.json
# {"valid":false,"problems":["source `crm` maps `emial`, which is not a canonical person attribute (one of: …)"],
#  "config_hash":"…","tier":"C","changed_blocks":["sources"]}
Store and publish a draft
curl --fail-with-body -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'   --data-binary @config-request.json          # -> {"version": 2, "state": "draft", ...}
curl --fail-with-body -X POST   "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/config/versions/2/publish"   -H "Authorization: Bearer $ER_API_KEY"      # -> {"tier": "C", "jobs_enqueued": [...], ...}

What a customer configuration may contain

  • Sources. Each sources.<name> entry maps your own column names onto canonical attributes, and names the column carrying the record key (record_id_column) and the change timestamp (updated_at_column). Person datasets map given_name, family_name, email, phone, address_line, addr_city, addr_region, addr_postal and birth_date; account datasets map company_name, domain, phone, addr_street, addr_city, addr_region and addr_postal. Any other attribute is refused, each of your columns may carry one attribute, and every source needs a distinct priority_rank.
  • Matching. blocking, constraints, comparisons, comparison_groups, thresholds and models may name only standardized columns of the dataset’s entity type, and an ensemble member must have an active model version.
  • Survivorship. survivorship and survivorship_groups choose which value reaches the golden record.
  • Operator-only blocks. tenant, storage, versions, training, clustering, coherence and generator describe the deployment. An admin key may carry them unchanged but not change them; validation reports such a change and publication refuses it with 403.

The entity type is fixed when the dataset is created, so a configuration declaring the other type is refused. Arbitrary entity schemas are not supported: a dataset resolves people or accounts through the attributes above.

What publishing does, and how to roll back

Publishing classifies what changed against the dataset’s active configuration and queues the matching rebuild: a threshold or survivorship change re-clusters (tier A), a blocking, constraint or ensemble change re-scores (tier B), and a source, standardization or comparison change retrains and rebuilds (tier C, also every first publish). Versions are immutable: an edit is a new draft. Every run records the config_hash it executed under, the same value validation and the version report, so a later publish never changes what an earlier run meant. To roll back, publish an earlier version number again; it is classified and rebuilt like any other publish.

A saved draft is not the active configuration, and a refused publication needs a configuration correction, not a blind retry. Matching decides which records belong together. Survivorship decides which field values appear on the resulting golden record. Keep these decisions separate.

Submit a source delivery

The file-ingestion endpoint accepts a multipart field named file and a required source query parameter. The source must exist in the active dataset configuration. The dataset must be active and have a configured delivery location.

Upload a CSV delivery
curl --fail-with-body -X POST   "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/imports?source=crm"   -H "Authorization: Bearer $ER_API_KEY"   -F '[email protected];type=text/csv'

The server stages an immutable delivery and enqueues its consumer. A successful upload returns HTTP 202 with delivery_id and a job object. Record both. Accepted means queued, not resolved.

Upload response shape (abbreviated)
{
  "delivery_id": "<delivery identifier>",
  "job": { "id": "<job identifier>", "state": "queued", "...": "additional job fields" }
}
Push JSON records
curl --fail-with-body -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'   -H 'Idempotency-Key: crm-export-2026-11-26'   --data '{"source":"crm","records":[{"crm_id":"C1","first_name":"Ada"}]}'

Files larger than one request

A file above the import cap goes through a resumable upload. Open it with the file’s exact size and SHA-256; the response gives part_size, part_count and a part_url. PUT each part’s raw bytes (every part but the last is exactly part_size), in any order, resending any that fail. After an interruption, GET the upload: parts_received lists what you need not send again. Completing checks every part is present and the assembled file matches the declared size and digest, then returns the same 202 receipt an import does; completing again returns that receipt rather than a second delivery.

Resumable upload
size=$(wc -c < big.csv); sha=$(shasum -a 256 big.csv | cut -d' ' -f1)
curl --fail-with-body -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/uploads"   -H "Authorization: Bearer $ER_API_KEY" -H 'Content-Type: application/json'   --data "{"source":"crm","bytes":$size,"sha256":"$sha"}"
# -> {"upload_id":"…","part_size":67108864,"part_count":3,"part_url":"/v1/…/parts/{part}",…}
split -b 67108864 -d -a 5 big.csv part-
n=1; for f in part-*; do
  curl --fail-with-body -X PUT "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/uploads/$UPLOAD/parts/$n"     -H "Authorization: Bearer $ER_API_KEY" -H 'Content-Type: application/octet-stream'     --data-binary @"$f"; n=$((n+1))
done
curl --fail-with-body -X POST "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/uploads/$UPLOAD/complete"   -H "Authorization: Bearer $ER_API_KEY"   # -> 202 {"delivery_id": …, "job": {…}}

A part is at most 64 MiB (and never more than the import cap), an upload at most 10,000 parts. A wrong-size part is refused with 422; a missing part or a digest mismatch makes completion a 422 that names the problem and keeps the parts, so resend the part that differs and complete again — each part’s response carries its SHA-256 for comparison. An upload expires 24 hours after it opens (410 from then on) and its parts are then removed; DELETE abandons one sooner. Uploads are scoped to their dataset: another dataset’s upload id is a 404.

Retrying safely

Send an Idempotency-Key header on every delivery — 1 to 255 visible ASCII characters, scoped to the dataset and source. If a request times out, resend it with the same key and the same bytes: you receive the original 202 receipt, the same delivery_id and job, with Idempotent-Replayed: true, and no second run is queued. Reusing a key for different bytes returns 409 naming the delivery that owns it; new data needs a new key. Without a key every request is a new delivery.

What a delivery changes

Deliveries upsert: each row adds or replaces the record with its source record key, and nothing a delivery omits is deleted, so an interrupted or partial upload can never remove data. mode=upsert may be stated explicitly; mode=full_refresh is refused with 422 rather than silently ignored. Remove records explicitly with POST …/records/delete.

From receipt to result

StateHow you see it
accepted202 with delivery_id and job: the bytes are stored immutably and the run is queued. The run reads exactly these bytes, under the source mapping published when they were accepted.
rejected422 before anything is stored: an undeclared column, a missing source, an empty push, a bad key or mode.
queued / running / failed / succeededGET …/jobs/{job_id}; a failed job carries error_class and error_detail, and its run_id once a run started.
result availableThe job succeeded; read duplicates, golden records and lineage. The delivery also appears in GET …/imports.

Limits: a JSON push carries at most 10,000 records; a file import is capped by the deployment’s configured import size and returns 413 above it — use a resumable upload for anything larger. Files are CSV with a header row naming the source’s mapped columns; JSON records are objects keyed by the same column names. Other failures: inactive dataset 409, unavailable delivery storage 503 (retry with backoff and the same key).

Run and monitor

An upload already returns the job consuming its delivery. Poll that job rather than automatically enqueueing a second full run. For separately requested processing, the job endpoint accepts kind, optional priority, and an optional configured segment name.

Request a resolution run
curl --fail-with-body -X POST   "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/jobs"   -H "Authorization: Bearer $ER_API_KEY"   -H 'Content-Type: application/json'   --data '{"kind":"run_all_full"}'
Read job status
curl --fail-with-body   "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/jobs/$ER_JOB_ID"   -H "Authorization: Bearer $ER_API_KEY"

Track queued, running, succeeded, failed, and canceled states. A successful submission is HTTP 202; the eventual job outcome is separate. Inspect task details for failed work. Resume, cancel, and task-clear operations have distinct effects; check their reference entries instead of recreating jobs indiscriminately.

Use a bounded polling interval with backoff in your client. A segment is a name from published configuration, not SQL supplied by the request. Unknown segments are rejected at submission.

Retrieve results and evidence

Three moments are distinct. A delivery is accepted when you hold its 202 receipt; resolution is complete when that receipt’s job succeeds; and the results below are then the product — duplicate groups, golden records, lineage and exports. Writing results back into your own systems is a separate step: for Salesforce, merges, upserts and Lead conversions are previewed, approved and applied through their own operations and journal, never as a side effect of a run.

The golden-record list is an Apache Arrow IPC stream, not JSON. Read application/vnd.apache.arrow.stream with an Arrow-capable client. The response headers carry x-er-snapshot and, when another page exists, x-er-next-cursor.

Download a golden-record page
curl --fail-with-body --get   "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/golden-records"   -H "Authorization: Bearer $ER_API_KEY"   --data-urlencode 'limit=100'   --dump-header result-headers.txt   --output records.arrow

For the next page, send the returned opaque value as the cursor query parameter. Keep query filters such as q consistent across that traversal. The cursor pins the snapshot; do not decode, edit, or construct it. An invalid cursor returns 422. Historical snapshots may become unavailable after retention and maintenance.

GET …/golden-records/{entity_id} returns JSON detail with members, lineage, and events. Its optional snapshot parameter requests a historical version. Do not parse a list response as if it were a detail response.

Other collections vary: some return bare arrays, some wrap rows under a named key, and some return pagination metadata. Each reference entry includes the generated envelope where available. There is no universal collection wrapper.

Review, correct, reconcile

Use match evidence to understand a proposed grouping before deciding. Review policy determines which matches can proceed automatically and which need a person. AI-assisted review is a recommendation workflow; it does not remove the need to understand the configured approval policy.

Assertions record that records must match or must remain separate. Unmerge splits selected members out of an entity. These changes may be staged until reconciliation applies them; an accepted correction is not the same thing as a refreshed golden record.

Request an unmerge
curl --fail-with-body -X POST   "$ER_API_ORIGIN/v1/orgs/$ER_ORG/datasets/$ER_DATASET/golden-records/$ER_ENTITY_ID/unmerge"   -H "Authorization: Bearer $ER_API_KEY"   -H 'Content-Type: application/json'   --data '{"records":["<member-record-key>"],"apply_now":true}'

The core review workflow

Everything a reviewer does in the app is available to an integration with a steward key; an admin defines tags. The subset most customers need:

DecisionOperation
See what needs a personGET …/reviews (filter by status, reason, probability band), GET …/reviews/{id}
Approve or reject a proposed matchPOST …/reviews/bulk-resolve with match, no_match or dismiss per review, and apply_now to reconcile at once
Take a record out of its group for goodPOST …/records/unmatch — it can never re-attach to those members
Split, or force, a groupingPOST …/golden-records/{id}/unmerge, POST …/merges, POST …/assertions
Label entities and reviewsPOST /v1/orgs/{org}/tags, POST …/tags/{id}/apply, GET …/taggings
See what changedGET …/runs, GET …/runs/{run_id}/entity-events, GET …/golden-records/{id} for lineage

A decision with apply_now returns an apply_job; read results once that job succeeds. Approving a match here changes resolution results only — merging the records in an external system is provider writeback.

Inspect the returned state and any queued job before reading the final result. A correction preserves the decision history and changes reconciliation; it does not retrain the probability model. Conflicting assertions require resolution, not silent precedence. The contradiction inspection operation exposes those conflicts.

Connect the systems you use

Source transport, dataset mapping, and destination delivery are separate concerns. Salesforce-specific connections and writeback live alongside shared ingestion and result contracts. File deliveries, object storage, and custom clients should reuse those shared contracts where supported.

Custom integrations: the landing-page example shows Google Sheets, SFTP, Shopify, HubSpot and ZoomInfo as custom integrations, scoped and built with you. None is a ready connector. Read access, permitted write operations, field mappings, and account entitlements are established per customer before a read or write path is promised.

Webhook registration and delivery operations appear in the reference. Confirm configured signing, event selection, and delivery behavior before relying on notifications. Reconciliation inside DupeZero does not by itself imply a successful write to an external system; track the destination operation independently.

Errors, retries, and compatibility

Control-plane handler errors generally use a JSON detail field. Request extraction and infrastructure failures may differ; always inspect HTTP status and content type before decoding a response.

Authorization error
HTTP/1.1 403 Forbidden
Content-Type: application/json

{"detail":"requires admin role"}
StatusClient action
401Check the credential; do not retry the same invalid key.
403Use the required role for this operation.
404Check scope and identifiers; a cross-org request is deliberately indistinguishable from absence.
409Inspect current resource state before resubmitting; on a delivery, a key reused for different bytes.
402The organization reached its record allowance; deliveries resume once it is raised.
413Reduce the delivery size to the configured cap.
422Correct the request, configuration, or cursor.
501 / 503Check deployment capabilities and service readiness; distinguish missing setup from transient unavailability.
5xx / network errorFor safe reads, use bounded backoff. For writes, verify the outcome before retrying.

Deliveries accept an Idempotency-Key (see Submit a source delivery), so a timed-out upload or push can be resent unchanged. Other writes have no key: repeating a job submission can create another job, so persist returned identifiers and inspect the outcome before issuing a replacement.

The OpenAPI document declares every public operation and its error statuses, and a release that would break the deployed contract is refused. Even so, pin your client to the deployed version and test the complete workflow against that environment. No live-request console runs from this public page.

Usage and pricing

The Home slider represents records in an example run. It is not a rate card, throughput promise, or invoice calculator. Adding sources redistributes that total; it does not imply a per-source charge.

Pricing is based only on the total records you connect, added together across every system, in tiers set out on the pricing page. It does not depend on the number of systems, connectors, orgs or users, or on how many runs you do. Every dataset in an organization counts, test data included.

How usage is measured

The unit is connected records: the standardized source records your datasets hold, summed across every dataset at each one’s latest snapshot. A record delivered twice, retried with the same Idempotency-Key, or re-delivered with changes is still one record. A failed or canceled run lands nothing and adds nothing; a run that succeeds counts what it landed. Read it at GET /v1/orgs/{org}/usage (any role), which reports the total, each dataset’s share, the allowance and what remains.

Each organization has a record allowance from its plan, with a soft buffer of 10% above it. Past the allowance, deliveries are still accepted and the usage read reports over_allowance and the limit where refusals start. Once the total reaches that limit, new deliveries — JSON pushes, file imports and uploads — are refused with 402 and a detail naming the total, the allowance and the limit. Nothing else stops: reads, reviews, corrections and exports continue, and data already accepted keeps resolving. Raising the allowance restores deliveries at once.

The web application’s usage panel meters AI calls and token units; those counts are not a billing ledger. Bring-your-own model keys can also incur provider charges outside DupeZero. Runtime depends on comparisons, candidate generation and configuration, not on record volume alone, but it does not change the price.

Reference

Every declared operation.

This inventory is generated from the control plane’s route manifest and response-envelope contract. It describes the current implementation, including operator-only routes. It is not a promise that every operation is enabled for your deployment.

Request schemas below describe JSON body structure where it has been declared. A missing schema does not mean an endpoint accepts an empty body. Query parameters and non-JSON payloads are described in the workflow guides for ingestion and result retrieval. Response descriptors identify the envelope, not a complete response schema.

Dataset operations

118 operations. Expand an entry for its path parameters, declared request shape, and response envelope.

DELETE/v1/orgs/{org}/datasets/{ds}admin

delete a dataset

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
DELETE/v1/orgs/{org}/datasets/{ds}/assertions/{assertion_id}steward

stage an assertion retraction

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds, assertion_id

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
DELETE/v1/orgs/{org}/datasets/{ds}/schedules/{schedule_id}admin

delete a schedule

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org, ds, schedule_id

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
DELETE/v1/orgs/{org}/datasets/{ds}/uploads/{upload_id}steward

abandon an upload and delete its parts

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds, upload_id

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
GET/v1/orgs/{org}/datasets/{ds}viewer

one dataset's detail

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}
{
  "envelope": "scalar"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/assertionsviewer

the assertion ledger

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/assertions
{
  "envelope": "page",
  "key": "items"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/assertions:contradictionsviewer

the unsatisfiable rule sets

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/assertions:contradictions
{
  "envelope": "wrapped",
  "key": "contradictions"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/blocking-estimateviewer

what a run would cost before it runs

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/blocking-estimate
{
  "envelope": "scalar"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/configviewer

the org's active (published) config

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/config
{
  "envelope": "scalar"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/config/versionsviewer

list an org's config versions, newest first

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/config/versions
{
  "envelope": "bare"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/config/versions/{version}viewer

one config version with its `yaml`

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds, version

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/config/versions/{version}
{
  "envelope": "scalar"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/data-qualityviewer

data-quality scores over the org's lake

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/data-quality
{
  "envelope": "scalar"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/duplicatesviewer

duplicate groups (entities with >=2 members)

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/duplicates
{
  "envelope": "record",
  "keys": [
    "items",
    "snapshot",
    "next_cursor"
  ]
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/exports/{export_id}viewer

one export's state, row count and expiry

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds, export_id

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/exports/{export_id}
{
  "envelope": "record",
  "keys": [
    "export_id",
    "state",
    "kind",
    "format",
    "snapshot",
    "rows",
    "error_class",
    "created_at",
    "finished_at",
    "expires_at"
  ]
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/exports/{export_id}/downloadviewer

download a finished export's artifact

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds, export_id

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/exports/{export_id}/download
{
  "envelope": "file"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/golden-recordsviewer

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

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/golden-records
{
  "envelope": "arrow",
  "cursor_in": "headers"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/golden-records/{entity_id}viewer

one resolved entity with members/lineage/events

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds, entity_id

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/golden-records/{entity_id}
{
  "envelope": "scalar"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/ignore-wordsviewer

the org's ignore-words dictionary

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/ignore-words
{
  "envelope": "wrapped",
  "key": "rows"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/importsviewer

ingest-batch receipts

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/imports
{
  "envelope": "page",
  "key": "items"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/imports/recentviewer

the most recent ingest-batch receipts

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/imports/recent
{
  "envelope": "bare"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/insightsviewer

the resolution metrics over time

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/insights
{
  "envelope": "record",
  "keys": [
    "snapshot",
    "series"
  ]
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/insights/sourcesviewer

one run's per-source duplicate attribution

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/insights/sources
{
  "envelope": "record",
  "keys": [
    "snapshot",
    "run_id",
    "sources"
  ]
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/jobsviewer

list an org's jobs, newest first

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/jobs
{
  "envelope": "wrapped",
  "key": "jobs"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/jobs/{job_id}viewer

one job by id

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds, job_id

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/jobs/{job_id}
{
  "envelope": "bare"
}
Link to this operation
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

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds, job_id

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/jobs/{job_id}/tasks
{
  "envelope": "wrapped",
  "key": "tasks"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/labeling/nextviewer

what to label next

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/labeling/next
{
  "envelope": "record",
  "keys": [
    "items",
    "snapshot",
    "threshold",
    "band",
    "coverage"
  ]
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/labelsviewer

the labels a tenant has recorded

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/labels
{
  "envelope": "wrapped",
  "key": "labels"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/lead-conversionsviewer

a dataset's Lead conversion proposals

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/lead-conversions
{
  "envelope": "record",
  "keys": [
    "items",
    "next_cursor"
  ]
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/lexiconviewer

the org's nickname lexicon

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/lexicon
{
  "envelope": "wrapped",
  "key": "pairs"
}
Link to this operation
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`)

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/match-preview
{
  "envelope": "scalar"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/match-scoresviewer

active pairwise match scores

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/match-scores
{
  "envelope": "record",
  "keys": [
    "items",
    "snapshot",
    "next_cursor"
  ]
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/merge-plansviewer

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

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/merge-plans
{
  "envelope": "wrapped",
  "key": "items"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/merge-previewsviewer

a page of merge previews

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/merge-previews
{
  "envelope": "record",
  "keys": [
    "items",
    "next_cursor"
  ]
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/merge-previews/{preview_id}viewer

one merge preview in full, with its history

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds, preview_id

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/merge-previews/{preview_id}
{
  "envelope": "record",
  "keys": [
    "summary",
    "proposal",
    "field_changes",
    "related_counts",
    "related_counts_state",
    "decided_by",
    "decision_reason",
    "history",
    "apply"
  ]
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/merge-previews/{preview_id}/restoreviewer

an applied merge's undo, its steps and conflicts

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds, preview_id

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/merge-previews/{preview_id}/restore
{
  "envelope": "scalar"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/metricsviewer

dashboard counters over the org's lake

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/metrics
{
  "envelope": "scalar"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/modelsviewer

the tenant's model versions

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/models
{
  "envelope": "record",
  "keys": [
    "items",
    "active"
  ]
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/models/{name}/versions/{version}viewer

one model version with its document and weights

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds, name, version

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/models/{name}/versions/{version}
{
  "envelope": "scalar"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/models/{name}/versions/{version}/evaluationviewer

how a model version scored against its own labels

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds, name, version

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/models/{name}/versions/{version}/evaluation
{
  "envelope": "scalar"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/profileviewer

a corpus stage's profile

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/profile
{
  "envelope": "scalar"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/qualityviewer

the corpus's data-quality picture

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/quality
{
  "envelope": "scalar"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/recordsviewer

standardized source records by `record_key`

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/records
{
  "envelope": "record",
  "keys": [
    "items",
    "snapshot"
  ]
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/reviewsviewer

the open-review queue

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/reviews
{
  "envelope": "record",
  "keys": [
    "items",
    "snapshot",
    "next_cursor",
    "unscored_hidden"
  ]
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/reviews/{review_id}viewer

one review by id

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds, review_id

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/reviews/{review_id}
{
  "envelope": "scalar"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/reviews/{review_id}/merge-groupviewer

the review merge dialog's group

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds, review_id

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/reviews/{review_id}/merge-group
{
  "envelope": "record",
  "keys": [
    "items",
    "total",
    "snapshot"
  ]
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/runsviewer

the 20 most recent runs

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/runs
{
  "envelope": "bare"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/runs/{run_id}/entity-eventsviewer

one run's entity events

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds, run_id

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/runs/{run_id}/entity-events
{
  "envelope": "record",
  "keys": [
    "items",
    "run_id",
    "snapshot",
    "next_cursor"
  ]
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/s3-ingestviewer

this tenant's auto-ingest state

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/s3-ingest
{
  "envelope": "record",
  "keys": [
    "bucket",
    "prefix",
    "sources"
  ]
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/schedulesviewer

list an org's schedules

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/schedules
{
  "envelope": "bare"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/segmentsviewer

the segments the active config declares

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/segments
{
  "envelope": "wrapped",
  "key": "segments"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/stagedviewer

how many steward actions await the next reconcile

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/staged
{
  "envelope": "wrapped",
  "key": "pending_count"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/taggingsviewer

every tagging of one subject kind in one dataset

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/taggings
{
  "envelope": "record",
  "keys": [
    "taggings",
    "truncated"
  ]
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/tags/{tag_id}/subjectsviewer

what carries a tag

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds, tag_id

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/tags/{tag_id}/subjects
{
  "envelope": "wrapped",
  "key": "subjects"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/uploads/{upload_id}steward

an upload's state

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds, upload_id

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/uploads/{upload_id}
{
  "envelope": "scalar"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/upsert-previewsviewer

a dataset's upsert previews

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/upsert-previews
{
  "envelope": "record",
  "keys": [
    "items",
    "next_cursor"
  ]
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/writeback/auto-approvalviewer

the auto-approval rules in force

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/writeback/auto-approval
{
  "envelope": "wrapped",
  "key": "items"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/writeback/policiesviewer

a dataset's active writeback policies

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/writeback/policies
{
  "envelope": "wrapped",
  "key": "items"
}
Link to this operation
GET/v1/orgs/{org}/datasets/{ds}/writeback/upsert-policiesviewer

the upsert policies in force

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets/{ds}/writeback/upsert-policies
{
  "envelope": "wrapped",
  "key": "items"
}
Link to this operation
PATCH/v1/orgs/{org}/datasets/{ds}admin

update a dataset's display fields

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · PATCH /v1/orgs/{org}/datasets/{ds}
{
  "type": "object",
  "properties": {
    "display_name": {
      "type": "string"
    }
  },
  "required": [],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
PATCH/v1/orgs/{org}/datasets/{ds}/schedules/{schedule_id}admin

enable/disable a schedule

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org, ds, schedule_id
Request schema · PATCH /v1/orgs/{org}/datasets/{ds}/schedules/{schedule_id}
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    }
  },
  "required": [
    "enabled"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/assertionssteward

stage an always/never assertion on a pair

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · POST /v1/orgs/{org}/datasets/{ds}/assertions
{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string"
    },
    "a": {
      "type": "string"
    },
    "b": {
      "type": "string"
    },
    "note": {
      "type": "string"
    },
    "apply_now": {
      "type": "boolean"
    }
  },
  "required": [
    "kind",
    "a",
    "b"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/config/validateadmin

validate a candidate config against a dataset without storing it

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · POST /v1/orgs/{org}/datasets/{ds}/config/validate
{
  "type": "object",
  "properties": {
    "yaml": {
      "type": "string"
    }
  },
  "required": [
    "yaml"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/config/versionsadmin

create a draft config version

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · POST /v1/orgs/{org}/datasets/{ds}/config/versions
{
  "type": "object",
  "properties": {
    "yaml": {
      "type": "string"
    }
  },
  "required": [
    "yaml"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/config/versions/{version}/publishadmin

publish a draft config version

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org, ds, version

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/entity-linkssteward

link two entities WITHOUT merging them

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · POST /v1/orgs/{org}/datasets/{ds}/entity-links
{
  "type": "object",
  "properties": {
    "parent_entity_id": {
      "type": "string"
    },
    "child_entity_id": {
      "type": "string"
    },
    "kind": {
      "type": "string"
    },
    "note": {
      "type": "string"
    }
  },
  "required": [
    "parent_entity_id",
    "child_entity_id",
    "kind"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
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

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · POST /v1/orgs/{org}/datasets/{ds}/exports
{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string"
    },
    "format": {
      "type": "string"
    },
    "snapshot": {
      "type": "integer"
    }
  },
  "required": [
    "kind",
    "format"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/extractsteward

pull an sObject from Salesforce into this dataset

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · POST /v1/orgs/{org}/datasets/{ds}/extract
{
  "type": "object"
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/golden-records/{entity_id}/unmergesteward

split members out of a resolved entity

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds, entity_id
Request schema · POST /v1/orgs/{org}/datasets/{ds}/golden-records/{entity_id}/unmerge
{
  "type": "object",
  "properties": {
    "records": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "apply_now": {
      "type": "boolean"
    }
  },
  "required": [
    "records"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/importssteward

upload one source's delivery

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/jobssteward

enqueue a job for an org

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · POST /v1/orgs/{org}/datasets/{ds}/jobs
{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string"
    },
    "priority": {
      "type": "integer"
    },
    "segment": {
      "type": "string"
    }
  },
  "required": [
    "kind"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/jobs/{job_id}/cancelsteward

cancel a job

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds, job_id

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/jobs/{job_id}/resumesteward

requeue a failed/canceled job

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds, job_id

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
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

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds, job_id, task_id
Request schema · POST /v1/orgs/{org}/datasets/{ds}/jobs/{job_id}/tasks/{task_id}/clear
{
  "type": "object",
  "properties": {
    "retries": {
      "type": "integer"
    },
    "resource_class": {
      "type": "string"
    }
  },
  "required": [],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/labelssteward

record a verdict on a pair

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · POST /v1/orgs/{org}/datasets/{ds}/labels
{
  "type": "object",
  "properties": {
    "rec_a_key": {
      "type": "string"
    },
    "rec_b_key": {
      "type": "string"
    },
    "verdict": {
      "type": "string"
    },
    "note": {
      "type": "string"
    },
    "model_version": {
      "type": "string"
    },
    "score_at_label": {
      "type": "number"
    }
  },
  "required": [
    "rec_a_key",
    "rec_b_key",
    "verdict"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/lead-conversions/applyadmin

convert the dataset's approved Leads in Salesforce

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/lead-conversions/decidesteward

approve or reject Lead conversions

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · POST /v1/orgs/{org}/datasets/{ds}/lead-conversions/decide
{
  "type": "object",
  "properties": {
    "decision": {
      "type": "string"
    },
    "reason": {
      "type": "string"
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "fingerprint": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "fingerprint"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "decision",
    "items"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/mass-updatesteward

stage golden field overrides across many entities in one window

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · POST /v1/orgs/{org}/datasets/{ds}/mass-update
{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "entity_id": {
            "type": "string"
          },
          "attribute": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "clear": {
            "type": "boolean"
          }
        },
        "required": [
          "entity_id",
          "attribute"
        ],
        "additionalProperties": false
      }
    },
    "apply_now": {
      "type": "boolean"
    }
  },
  "required": [
    "items"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/merge-previews/applyadmin

apply the dataset's APPROVED merge previews to Salesforce

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/merge-previews/decidesteward

approve or reject several merge previews at once

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · POST /v1/orgs/{org}/datasets/{ds}/merge-previews/decide
{
  "type": "object",
  "properties": {
    "decision": {
      "type": "string"
    },
    "reason": {
      "type": "string"
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "fingerprint": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "fingerprint"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "decision",
    "items"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/merge-previews/generatesteward

build merge previews from the dataset's latest results

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/merge-previews/{preview_id}/approvesteward

approve a merge preview

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds, preview_id
Request schema · POST /v1/orgs/{org}/datasets/{ds}/merge-previews/{preview_id}/approve
{
  "type": "object",
  "properties": {
    "fingerprint": {
      "type": "string"
    },
    "reason": {
      "type": "string"
    }
  },
  "required": [
    "fingerprint"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/merge-previews/{preview_id}/rejectsteward

reject a merge preview

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds, preview_id
Request schema · POST /v1/orgs/{org}/datasets/{ds}/merge-previews/{preview_id}/reject
{
  "type": "object",
  "properties": {
    "fingerprint": {
      "type": "string"
    },
    "reason": {
      "type": "string"
    }
  },
  "required": [
    "fingerprint"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/merge-previews/{preview_id}/restoreadmin

undo an applied merge

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org, ds, preview_id

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/mergessteward

merge a GROUP of records from the review dialog

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · POST /v1/orgs/{org}/datasets/{ds}/merges
{
  "type": "object",
  "properties": {
    "records": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "master": {
      "type": "string"
    },
    "overrides": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "attribute": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "clear": {
            "type": "boolean"
          }
        },
        "required": [
          "attribute"
        ],
        "additionalProperties": false
      }
    },
    "review_id": {
      "type": "string"
    },
    "apply_now": {
      "type": "boolean"
    }
  },
  "required": [
    "records",
    "master"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/models/versionsadmin

mint a new model version

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · POST /v1/orgs/{org}/datasets/{ds}/models/versions
{
  "type": "object",
  "properties": {
    "model_json": {
      "type": "string"
    },
    "model_version_label": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "tf_snapshot_id": {
      "type": "string"
    },
    "provenance": {}
  },
  "required": [
    "model_json",
    "model_version_label"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/models/{name}/versions/{version}/activateadmin

activate a model version

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org, ds, name, version

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/models:compileadmin

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

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/profilesteward

profile a corpus stage

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · POST /v1/orgs/{org}/datasets/{ds}/profile
{
  "type": "object"
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/records/deletesteward

delete a record (spec 2.9)

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · POST /v1/orgs/{org}/datasets/{ds}/records/delete
{
  "type": "object",
  "properties": {
    "record_key": {
      "type": "string"
    },
    "record_keys": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "apply_now": {
      "type": "boolean"
    }
  },
  "required": [],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/records/protectsteward

pin a record master for its entity

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · POST /v1/orgs/{org}/datasets/{ds}/records/protect
{
  "type": "object",
  "properties": {
    "record_key": {
      "type": "string"
    },
    "record_keys": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "apply_now": {
      "type": "boolean"
    }
  },
  "required": [],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/records/suppresssteward

exclude a record from golden assembly

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · POST /v1/orgs/{org}/datasets/{ds}/records/suppress
{
  "type": "object",
  "properties": {
    "record_key": {
      "type": "string"
    },
    "record_keys": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "apply_now": {
      "type": "boolean"
    }
  },
  "required": [],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/records/undeletesteward

retract a record deletion

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · POST /v1/orgs/{org}/datasets/{ds}/records/undelete
{
  "type": "object",
  "properties": {
    "record_key": {
      "type": "string"
    },
    "record_keys": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "apply_now": {
      "type": "boolean"
    }
  },
  "required": [],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/records/unmatchsteward

unmatch a record from its current group

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · POST /v1/orgs/{org}/datasets/{ds}/records/unmatch
{
  "type": "object",
  "properties": {
    "record_key": {
      "type": "string"
    },
    "apply_now": {
      "type": "boolean"
    }
  },
  "required": [
    "record_key"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/records/unprotectsteward

retract a record protection

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · POST /v1/orgs/{org}/datasets/{ds}/records/unprotect
{
  "type": "object",
  "properties": {
    "record_key": {
      "type": "string"
    },
    "record_keys": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "apply_now": {
      "type": "boolean"
    }
  },
  "required": [],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/records/unsuppresssteward

retract a record suppression

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · POST /v1/orgs/{org}/datasets/{ds}/records/unsuppress
{
  "type": "object",
  "properties": {
    "record_key": {
      "type": "string"
    },
    "record_keys": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "apply_now": {
      "type": "boolean"
    }
  },
  "required": [],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/records/unverifysteward

retract a verification

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · POST /v1/orgs/{org}/datasets/{ds}/records/unverify
{
  "type": "object",
  "properties": {
    "record_key": {
      "type": "string"
    },
    "record_keys": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "apply_now": {
      "type": "boolean"
    },
    "attribute": {
      "type": "string"
    }
  },
  "required": [],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/records/verifysteward

verify records or one cell of them (spec 2.9)

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · POST /v1/orgs/{org}/datasets/{ds}/records/verify
{
  "type": "object",
  "properties": {
    "record_key": {
      "type": "string"
    },
    "record_keys": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "apply_now": {
      "type": "boolean"
    },
    "attribute": {
      "type": "string"
    }
  },
  "required": [],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/records:ingeststeward

push records as JSON

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · POST /v1/orgs/{org}/datasets/{ds}/records:ingest
{
  "type": "object",
  "properties": {
    "source": {
      "type": "string"
    },
    "mode": {
      "type": "string"
    },
    "records": {
      "type": "array",
      "items": {}
    }
  },
  "required": [
    "source",
    "records"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/resolveviewer

resolve an UNSAVED record against the corpus

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/resumeadmin

resume a suspended dataset

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/reviews/bulk-resolvesteward

stage many review resolutions in one window

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · POST /v1/orgs/{org}/datasets/{ds}/reviews/bulk-resolve
{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "review_id": {
            "type": "string"
          },
          "resolution": {
            "type": "string"
          }
        },
        "required": [
          "review_id",
          "resolution"
        ],
        "additionalProperties": false
      }
    },
    "apply_now": {
      "type": "boolean"
    }
  },
  "required": [
    "items"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/reviews/{review_id}/resolvesteward

stage a review resolution

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds, review_id
Request schema · POST /v1/orgs/{org}/datasets/{ds}/reviews/{review_id}/resolve
{
  "type": "object",
  "properties": {
    "resolution": {
      "type": "string"
    }
  },
  "required": [
    "resolution"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/schedulesadmin

create an API-sourced schedule

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · POST /v1/orgs/{org}/datasets/{ds}/schedules
{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string"
    },
    "cron": {
      "type": "string"
    },
    "params": {}
  },
  "required": [
    "kind",
    "cron"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/suspendadmin

suspend an active dataset

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/tags/{tag_id}/applysteward

apply or remove a tag

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds, tag_id
Request schema · POST /v1/orgs/{org}/datasets/{ds}/tags/{tag_id}/apply
{
  "type": "object",
  "properties": {
    "subject_type": {
      "type": "string"
    },
    "subject_id": {
      "type": "string"
    }
  },
  "required": [
    "subject_type",
    "subject_id"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/tags/{tag_id}/unapplysteward

remove a tag from a subject

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds, tag_id
Request schema · POST /v1/orgs/{org}/datasets/{ds}/tags/{tag_id}/unapply
{
  "type": "object",
  "properties": {
    "subject_type": {
      "type": "string"
    },
    "subject_id": {
      "type": "string"
    }
  },
  "required": [
    "subject_type",
    "subject_id"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/uploadssteward

open a resumable upload

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · POST /v1/orgs/{org}/datasets/{ds}/uploads
{
  "type": "object",
  "properties": {
    "source": {
      "type": "string"
    },
    "bytes": {
      "type": "integer"
    },
    "sha256": {
      "type": "string"
    }
  },
  "required": [
    "source",
    "bytes",
    "sha256"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/uploads/{upload_id}/completesteward

finish an upload

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds, upload_id

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/upsert-previews/applyadmin

apply the dataset's approved upserts to Salesforce

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org, ds

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasets/{ds}/upsert-previews/decidesteward

approve or reject upserts

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · POST /v1/orgs/{org}/datasets/{ds}/upsert-previews/decide
{
  "type": "object",
  "properties": {
    "decision": {
      "type": "string"
    },
    "reason": {
      "type": "string"
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "fingerprint": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "fingerprint"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "decision",
    "items"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
PUT/v1/orgs/{org}/datasets/{ds}/ignore-wordssteward

replace the org's ignore-words dictionary

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · PUT /v1/orgs/{org}/datasets/{ds}/ignore-words
{
  "type": "object",
  "properties": {
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "word": {
            "type": "string"
          },
          "dictionary": {
            "type": "string"
          }
        },
        "required": [
          "word",
          "dictionary"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "rows"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
PUT/v1/orgs/{org}/datasets/{ds}/lexiconsteward

replace the org's nickname lexicon

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · PUT /v1/orgs/{org}/datasets/{ds}/lexicon
{
  "type": "object",
  "properties": {
    "pairs": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "variant_a": {
            "type": "string"
          },
          "variant_b": {
            "type": "string"
          }
        },
        "required": [
          "variant_a",
          "variant_b"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "pairs"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
PUT/v1/orgs/{org}/datasets/{ds}/uploads/{upload_id}/parts/{part}steward

store one part

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org, ds, upload_id, part

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
PUT/v1/orgs/{org}/datasets/{ds}/writeback/auto-approvaladmin

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

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · PUT /v1/orgs/{org}/datasets/{ds}/writeback/auto-approval
{
  "type": "object",
  "properties": {
    "connection_id": {
      "type": "string"
    },
    "object": {
      "type": "string"
    },
    "enabled": {
      "type": "boolean"
    },
    "min_score": {
      "type": "number"
    },
    "max_members": {
      "type": "integer"
    }
  },
  "required": [
    "connection_id",
    "object",
    "enabled",
    "min_score",
    "max_members"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
PUT/v1/orgs/{org}/datasets/{ds}/writeback/policiesadmin

set the writeback policy for one connection's object

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · PUT /v1/orgs/{org}/datasets/{ds}/writeback/policies
{
  "type": "object",
  "properties": {
    "connection_id": {
      "type": "string"
    },
    "object": {
      "type": "string"
    },
    "election_policy": {
      "type": "string"
    },
    "writeback_allowlist": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "field_mapping": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    }
  },
  "required": [
    "connection_id",
    "object",
    "writeback_allowlist",
    "field_mapping"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
PUT/v1/orgs/{org}/datasets/{ds}/writeback/upsert-policiesadmin

set the upsert policy for one connection's object

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org, ds
Request schema · PUT /v1/orgs/{org}/datasets/{ds}/writeback/upsert-policies
{
  "type": "object",
  "properties": {
    "connection_id": {
      "type": "string"
    },
    "object": {
      "type": "string"
    },
    "external_id_field": {
      "type": "string"
    },
    "field_mapping": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "writeback_allowlist": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "connection_id",
    "object",
    "external_id_field",
    "field_mapping",
    "writeback_allowlist",
    "sources"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation

Organization operations

23 operations. Expand an entry for its path parameters, declared request shape, and response envelope.

DELETE/v1/orgs/{org}/api-keys/{key_id}admin

revoke an API key, org-scoped and idempotent

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org, key_id

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
DELETE/v1/orgs/{org}/connections/{connection_id}admin

retire a Salesforce connection

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org, connection_id

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
DELETE/v1/orgs/{org}/connections/{connection_id}/writeback-authorizationadmin

revoke a connection's delegated writeback authorization

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org, connection_id

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
DELETE/v1/orgs/{org}/tags/{tag_id}admin

retire a tag

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org, tag_id

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
DELETE/v1/orgs/{org}/webhooks/{webhook_id}admin

delete a webhook

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org, webhook_id

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
GET/v1/orgs/{org}viewer

an org's detail

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}
{
  "envelope": "record",
  "keys": [
    "id",
    "name",
    "state",
    "active_config_version",
    "drop_root",
    "resources"
  ]
}
Link to this operation
GET/v1/orgs/{org}/api-keysadmin

list the org's API keys

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/api-keys
{
  "envelope": "wrapped",
  "key": "keys"
}
Link to this operation
GET/v1/orgs/{org}/auditadmin

an org's audit feed

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/audit
{
  "envelope": "bare"
}
Link to this operation
GET/v1/orgs/{org}/connectionsviewer

list an org's active Salesforce connections

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/connections
{
  "envelope": "bare"
}
Link to this operation
GET/v1/orgs/{org}/connections/{connection_id}/writeback-authorizationviewer

a connection's delegated writeback authorization, without tokens

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org, connection_id

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/connections/{connection_id}/writeback-authorization
{
  "envelope": "scalar"
}
Link to this operation
GET/v1/orgs/{org}/datasetsviewer

an org's datasets

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/datasets
{
  "envelope": "bare"
}
Link to this operation
GET/v1/orgs/{org}/tagsviewer

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

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/tags
{
  "envelope": "wrapped",
  "key": "tags"
}
Link to this operation
GET/v1/orgs/{org}/usageviewer

the org's usage against its allowance

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/usage
{
  "envelope": "scalar"
}
Link to this operation
GET/v1/orgs/{org}/webhooksviewer

list an org's active webhooks

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/webhooks
{
  "envelope": "bare"
}
Link to this operation
GET/v1/orgs/{org}/webhooks/deliveriesviewer

the delivery log

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/webhooks/deliveries
{
  "envelope": "wrapped",
  "key": "deliveries"
}
Link to this operation
GET/v1/orgs/{org}/webhooks/eventsviewer

the event types this system can emit

Authentication / minimum role
Bearer credential with viewer authority. Organization routes also enforce organization scope.
Path parameters
org

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs/{org}/webhooks/events
{
  "envelope": "wrapped",
  "key": "events"
}
Link to this operation
POST/v1/orgs/{org}/api-keysadmin

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

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org
Request schema · POST /v1/orgs/{org}/api-keys
{
  "type": "object",
  "properties": {
    "role": {
      "type": "string"
    }
  },
  "required": [
    "role"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/connectionsadmin

register a Salesforce connection

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org
Request schema · POST /v1/orgs/{org}/connections
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "instance_url": {
      "type": "string"
    },
    "client_id": {
      "type": "string"
    },
    "client_secret": {
      "type": "string"
    },
    "auth_kind": {
      "type": "string"
    },
    "api_version": {
      "type": "string"
    }
  },
  "required": [
    "name",
    "instance_url",
    "client_id",
    "client_secret"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/connections/{connection_id}/writeback-authorizationadmin

start delegating Salesforce writeback to a reviewing user

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org, connection_id
Request schema · POST /v1/orgs/{org}/connections/{connection_id}/writeback-authorization
{
  "type": "object",
  "properties": {
    "redirect_uri": {
      "type": "string"
    },
    "allow_automatic": {
      "type": "boolean"
    }
  },
  "required": [
    "redirect_uri"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/connections/{connection_id}/writeback-authorization/completeadmin

finish a delegated authorization

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org, connection_id
Request schema · POST /v1/orgs/{org}/connections/{connection_id}/writeback-authorization/complete
{
  "type": "object",
  "properties": {
    "state": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "state",
    "code"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/datasetsadmin

create a dataset

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org
Request schema · POST /v1/orgs/{org}/datasets
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "display_name": {
      "type": "string"
    },
    "entity_type": {
      "type": "string"
    },
    "config_path": {
      "type": "string"
    },
    "env": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "drop_root": {
      "type": "string"
    },
    "s3_ingest_bucket": {
      "type": "string"
    },
    "s3_ingest_prefix": {
      "type": "string"
    }
  },
  "required": [
    "name"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/tagssteward

add a label to the vocabulary

Authentication / minimum role
Bearer credential with steward authority. Organization routes also enforce organization scope.
Path parameters
org
Request schema · POST /v1/orgs/{org}/tags
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "apply_min_role": {
      "type": "string"
    }
  },
  "required": [
    "name"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/webhooksadmin

register an outbound webhook

Authentication / minimum role
Bearer credential with admin authority. Organization routes also enforce organization scope.
Path parameters
org
Request schema · POST /v1/orgs/{org}/webhooks
{
  "type": "object",
  "properties": {
    "url": {
      "type": "string"
    },
    "events": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "secret": {
      "type": "string"
    }
  },
  "required": [
    "url"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation

Operator and service operations

12 operations. Expand an entry for its path parameters, declared request shape, and response envelope.

DELETE/v1/orgs/{org}operator

purge an org

Authentication / minimum role
Bearer credential with operator authority. Organization routes also enforce organization scope.
Path parameters
org

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
GET/healthzpublic

liveness

Authentication / minimum role
No bearer credential required.
Path parameters
None

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /healthz
{
  "envelope": "wrapped",
  "key": "status"
}
Link to this operation
GET/readyzpublic

readiness

Authentication / minimum role
No bearer credential required.
Path parameters
None

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /readyz
{
  "envelope": "record",
  "keys": [
    "ready",
    "store",
    "reason"
  ]
}
Link to this operation
GET/v1/auditoperator

the cross-tenant audit feed

Authentication / minimum role
Bearer credential with operator authority. Organization routes also enforce organization scope.
Path parameters
None

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/audit
{
  "envelope": "bare"
}
Link to this operation
GET/v1/jobsoperator

the cross-org queue view

Authentication / minimum role
Bearer credential with operator authority. Organization routes also enforce organization scope.
Path parameters
None

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/jobs
{
  "envelope": "bare"
}
Link to this operation
GET/v1/orgsoperator

list all orgs

Authentication / minimum role
Bearer credential with operator authority. Organization routes also enforce organization scope.
Path parameters
None

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

Response envelope · GET /v1/orgs
{
  "envelope": "bare"
}
Link to this operation
PATCH/v1/orgs/{org}/allowanceoperator

set or clear an org's record allowance

Authentication / minimum role
Bearer credential with operator authority. Organization routes also enforce organization scope.
Path parameters
org
Request schema · PATCH /v1/orgs/{org}/allowance
{
  "type": "object",
  "properties": {
    "record_allowance": {
      "type": "integer"
    }
  },
  "required": [],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
PATCH/v1/orgs/{org}/resourcesoperator

set an org's DuckDB parallelism knobs

Authentication / minimum role
Bearer credential with operator authority. Organization routes also enforce organization scope.
Path parameters
org
Request schema · PATCH /v1/orgs/{org}/resources
{
  "type": "object",
  "properties": {
    "duckdb_threads": {
      "type": "integer"
    },
    "duckdb_memory_limit": {
      "type": "string"
    }
  },
  "required": [],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/emailoperator

send one transactional email

Authentication / minimum role
Bearer credential with operator authority. Organization routes also enforce organization scope.
Path parameters
None
Request schema · POST /v1/email
{
  "type": "object"
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgsoperator

create an org

Authentication / minimum role
Bearer credential with operator authority. Organization routes also enforce organization scope.
Path parameters
None
Request schema · POST /v1/orgs
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "config_path": {
      "type": "string"
    },
    "env": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "drop_root": {
      "type": "string"
    },
    "s3_ingest_bucket": {
      "type": "string"
    },
    "s3_ingest_prefix": {
      "type": "string"
    }
  },
  "required": [
    "name"
  ],
  "additionalProperties": false
}

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/resumeoperator

resume a suspended org

Authentication / minimum role
Bearer credential with operator authority. Organization routes also enforce organization scope.
Path parameters
org

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation
POST/v1/orgs/{org}/suspendoperator

suspend an active org

Authentication / minimum role
Bearer credential with operator authority. Organization routes also enforce organization scope.
Path parameters
org

No JSON body schema is declared. Check the workflow guide for multipart uploads and operation-specific requirements.

A response descriptor is not yet generated for this operation. Do not infer its payload from another endpoint.

Link to this operation

Schema reference

The public OpenAPI 3.1.0 document declares 143 operations with their schemas and error statuses; the API reference renders it operation by operation, and it is served at /api/openapi for a client generator. The reference above is derived separately, from the routed implementation.

These schemas describe registered wire types. A response envelope may wrap one or more records; it is not interchangeable with the record’s schema.

AccountDuplicateGroup
AccountDuplicateGroup schema
{
  "type": "object",
  "description": "One duplicate group in an **account** dataset; the preview is the golden\ncompany name and domain rather than a person's name and email (#1234).",
  "required": [
    "entity_id",
    "member_count",
    "members",
    "member_confidences",
    "model_versions",
    "matched_fields",
    "verified"
  ],
  "properties": {
    "company_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "The golden record's company name, when assembled."
    },
    "domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "The golden record's domain, when assembled."
    },
    "entity_id": {
      "type": "string",
      "description": "The resolved entity."
    },
    "group_confidence": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "The group's confidence (0–100), or null when no member edge is scored."
    },
    "master_record_key": {
      "type": [
        "string",
        "null"
      ],
      "description": "The strongest-attached member, or null when the group is unscored."
    },
    "matched_fields": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The comparison fields any within-group edge matched on."
    },
    "member_confidences": {
      "type": "object",
      "description": "Each scored member's attachment confidence (0–100), by member key.",
      "additionalProperties": {
        "type": "integer",
        "format": "int64"
      },
      "propertyNames": {
        "type": "string"
      }
    },
    "member_count": {
      "type": "integer",
      "format": "int64",
      "description": "How many source records resolved to it."
    },
    "members": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The member records, as `<source_system>:<source_record_id>`, ordered."
    },
    "model_versions": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The model versions whose scores link the group, deduplicated."
    },
    "verified": {
      "type": "boolean",
      "description": "Whether a steward asserted or verified the group."
    }
  }
}
AccountDuplicatesPage
AccountDuplicatesPage schema
{
  "type": "object",
  "description": "A page of an account dataset's duplicate groups, at a pinned snapshot.",
  "required": [
    "items",
    "snapshot"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AccountDuplicateGroup"
      }
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pass as `cursor` for the next page; null on the last page."
    },
    "snapshot": {
      "type": "integer",
      "format": "int64",
      "description": "The lake snapshot every page of this walk reads; the cursor pins it."
    }
  }
}
AccountGolden
AccountGolden schema
{
  "type": "object",
  "description": "An account entity's golden record, as of the pinned snapshot.",
  "required": [
    "id",
    "survivorship_version"
  ],
  "properties": {
    "addr_city": {
      "type": [
        "string",
        "null"
      ]
    },
    "addr_postal": {
      "type": [
        "string",
        "null"
      ]
    },
    "addr_region": {
      "type": [
        "string",
        "null"
      ]
    },
    "addr_street": {
      "type": [
        "string",
        "null"
      ]
    },
    "company_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "domain": {
      "type": [
        "string",
        "null"
      ]
    },
    "id": {
      "type": "string"
    },
    "metadata": {},
    "phone_e164": {
      "type": [
        "string",
        "null"
      ]
    },
    "survivorship_version": {
      "type": "string"
    }
  }
}
AcctGoldenLineage
AcctGoldenLineage schema
{
  "type": "object",
  "description": "Per-attribute survivorship provenance for a resolved account: which record each surviving value came from.",
  "required": [
    "id",
    "entity_id",
    "attribute",
    "record_key",
    "source_system",
    "source_record_id",
    "rule",
    "survivorship_version",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "attribute": {
      "type": "string",
      "description": "The survivable attribute decided (e.g. company_name, domain, address)."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Run-logical creation time (the assembling run's clock; the mart is rebuilt whole)."
    },
    "entity_id": {
      "type": "string",
      "description": "The resolved account this attribute decision belongs to."
    },
    "id": {
      "type": "string",
      "description": "Content-derived row id: sha256('acct_golden_lineage:' || entity_id || ':' || attribute)."
    },
    "record_key": {
      "type": "string",
      "description": "The source record that won the attribute."
    },
    "rule": {
      "type": "string",
      "description": "The survivorship rule that selected this value."
    },
    "source_record_id": {
      "type": "string",
      "description": "Source-native id of the winning record."
    },
    "source_system": {
      "type": "string",
      "description": "Source system of the winning record."
    },
    "survivorship_version": {
      "type": "string",
      "description": "Survivorship policy version that produced this row."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Run-logical last-write time (equals created_at; the mart is rebuilt whole)."
    }
  }
}
AcctGoldenRecord
AcctGoldenRecord schema
{
  "type": "object",
  "description": "One resolved account/organization: the surviving value per attribute, at a snapshot.",
  "required": [
    "id",
    "survivorship_version",
    "assembled_at",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "addr_city": {
      "type": [
        "string",
        "null"
      ],
      "description": "Surviving city of the address."
    },
    "addr_postal": {
      "type": [
        "string",
        "null"
      ],
      "description": "Surviving postal code of the address."
    },
    "addr_region": {
      "type": [
        "string",
        "null"
      ],
      "description": "Surviving region/state of the address."
    },
    "addr_street": {
      "type": [
        "string",
        "null"
      ],
      "description": "Surviving street of the address."
    },
    "assembled_at": {
      "type": "string",
      "format": "date-time",
      "description": "Assembly time of this row (volatile)."
    },
    "company_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Surviving company name."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Run-logical creation time (the assembling run's clock; the mart is rebuilt whole)."
    },
    "domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "Surviving web domain."
    },
    "id": {
      "type": "string",
      "description": "Persistent entity id (deterministic UUIDv7, minted by reconcile); the survivorship key."
    },
    "metadata": {
      "description": "Surviving opaque per-source metadata object."
    },
    "phone_e164": {
      "type": [
        "string",
        "null"
      ],
      "description": "Surviving phone number in E.164 form."
    },
    "survivorship_version": {
      "type": "string",
      "description": "Survivorship policy version that produced this row."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Run-logical last-write time (equals created_at; the mart is rebuilt whole)."
    }
  }
}
AllowanceSet
AllowanceSet schema
{
  "type": "object",
  "description": "`PATCH /v1/orgs/{org}/allowance`: the allowance now in force.",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "record_allowance": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64"
    }
  }
}
ApiKey
ApiKey schema
{
  "type": "object",
  "description": "An org-scoped API key: its role and the at-rest hash of the secret.",
  "required": [
    "id",
    "org_id",
    "role",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the key was issued."
    },
    "id": {
      "type": "string",
      "description": "The key's unique id (UUIDv7, minted at issue)."
    },
    "org_id": {
      "type": "string",
      "description": "The tenant the key authenticates."
    },
    "revoked_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the key was revoked, if it has been."
    },
    "role": {
      "type": "string",
      "description": "The role the key grants."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Wall-clock last-write time (database default; advanced by mutations once the entity migrates)."
    }
  }
}
ApiKeyList
ApiKeyList schema
{
  "type": "object",
  "description": "The org's API keys, newest first, revoked ones included.",
  "required": [
    "keys"
  ],
  "properties": {
    "keys": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ApiKey"
      },
      "description": "Metadata only: the wire form has no `key_hash`, and the plaintext was\nshown once at mint time and is not stored."
    }
  }
}
AttemptRetried
AttemptRetried schema
{
  "type": "object",
  "description": "A failed attempt's settlement: the archived try and, when the task still\nhas tries left, the queued successor.",
  "required": [
    "archived"
  ],
  "properties": {
    "archived": {
      "$ref": "#/components/schemas/TaskInstance"
    },
    "retry": {
      "oneOf": [
        {
          "$ref": "#/components/schemas/TaskInstance"
        },
        {
          "type": "null"
        }
      ]
    }
  }
}
AuditEntry
AuditEntry schema
{
  "type": "object",
  "description": "The audit ledger, newest first (`auth.py` `audit_rows`); `before_id` is the\nkeyset cursor. Optional `org` / `action` filters.\n\nReturns `trace_id`, which is the whole point of writing it: the column is the\nJOIN KEY to the span store, and a join key no reader can reach is a column\nthat only looks like attribution. `read/page.sql` has always projected it and\nthe generated `AuditLog` schema has always declared it — this projection was\nthe one layer that dropped it, so the OpenAPI document promised a field the\nAPI did not send.\n\nNull for a row no traced request caused, which is permanent for the\ndispatcher's own bookkeeping and a CLI. See `er_obs::identity`.\n\n# Errors\nPropagates the query error.\nOne audit-ledger entry as the audit feeds serve it.",
  "required": [
    "id",
    "at",
    "actor",
    "action",
    "detail"
  ],
  "properties": {
    "action": {
      "type": "string"
    },
    "actor": {
      "type": "string"
    },
    "at": {
      "type": "string",
      "description": "RFC 3339, microseconds."
    },
    "dataset": {
      "type": [
        "string",
        "null"
      ]
    },
    "detail": {},
    "id": {
      "type": "integer",
      "format": "int64"
    },
    "org": {
      "type": [
        "string",
        "null"
      ]
    },
    "trace_id": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}
AuditLog
AuditLog schema
{
  "type": "object",
  "description": "The append-only audit ledger: one row per authenticated mutation (actor, action, optional org scope, and structured detail). Append-only constrains writes, not lifetime: rows past the deployment retention window (ER_AUDIT_RETENTION_DAYS, floor 400 days per the infra D-RETENTION decision) are retired by the dispatcher's retention sweep through delete/purge_expired.",
  "required": [
    "id",
    "at",
    "actor",
    "action",
    "detail",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "action": {
      "type": "string",
      "description": "The action name (e.g. steward.mass_update)."
    },
    "actor": {
      "type": "string",
      "description": "The principal that performed the action (the signed-in user's email, or an API key id)."
    },
    "at": {
      "type": "string",
      "format": "date-time",
      "description": "When the audited action occurred."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Wall-clock creation time (database default; `at` remains the domain event stamp)."
    },
    "dataset": {
      "type": [
        "string",
        "null"
      ],
      "description": "The dataset the action concerned, by name, when it concerned one — context, like `org`, not a foreign key (this ledger outlives both)."
    },
    "detail": {
      "description": "Structured detail for the action."
    },
    "id": {
      "type": "integer",
      "format": "int64",
      "description": "Monotonic ledger id (bigserial); the primary key."
    },
    "org": {
      "type": [
        "string",
        "null"
      ],
      "description": "The tenant the action applies to, if the action is org-scoped."
    },
    "trace_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "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": {
      "type": "string",
      "format": "date-time",
      "description": "Wall-clock last-write time (equals created_at; audit rows are append-only)."
    }
  }
}
AutoApprovalList
AutoApprovalList schema
{
  "type": "object",
  "description": "The rules in force.",
  "required": [
    "items"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AutoApprovalView"
      }
    }
  }
}
AutoApprovalView
AutoApprovalView schema
{
  "type": "object",
  "description": "An auto-approval rule revision.",
  "required": [
    "id",
    "connection_id",
    "object",
    "enabled",
    "min_score",
    "max_members",
    "created_by",
    "created_at"
  ],
  "properties": {
    "connection_id": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "description": "RFC 3339."
    },
    "created_by": {
      "type": "string"
    },
    "enabled": {
      "type": "boolean"
    },
    "id": {
      "type": "string",
      "description": "The revision; auto-approved previews name it as `policy:<id>`."
    },
    "max_members": {
      "type": "integer",
      "format": "int64"
    },
    "min_score": {
      "type": "number",
      "format": "double"
    },
    "object": {
      "type": "string"
    }
  }
}
BatchDecisionOut
BatchDecisionOut schema
{
  "type": "object",
  "description": "The outcome of a batch decision, item by item.",
  "required": [
    "results"
  ],
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/BatchDecisionResult"
      }
    }
  }
}
BatchDecisionResult
BatchDecisionResult schema
{
  "type": "object",
  "description": "One item of a batch decision.",
  "required": [
    "id",
    "status"
  ],
  "properties": {
    "detail": {
      "type": [
        "string",
        "null"
      ],
      "description": "Why it was refused, when it was."
    },
    "id": {
      "type": "string"
    },
    "preview_status": {
      "type": [
        "string",
        "null"
      ],
      "description": "The preview's state after, when decided."
    },
    "status": {
      "type": "integer",
      "format": "int32",
      "description": "The HTTP status the single-item route would have answered.",
      "minimum": 0
    }
  }
}
BlockingEstimate
BlockingEstimate schema
{
  "type": "object",
  "description": "What a run would cost, before running it.",
  "required": [
    "total_possible_pairs",
    "candidate_pairs",
    "per_rule",
    "largest_blocks"
  ],
  "properties": {
    "candidate_pairs": {
      "type": "integer",
      "format": "int64",
      "description": "What the declared rules actually generate: the number that decides the\nrun's cost."
    },
    "largest_blocks": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/LargestBlockEstimate"
      }
    },
    "per_rule": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/BlockingRuleEstimate"
      }
    },
    "total_possible_pairs": {
      "type": "integer",
      "format": "int64",
      "description": "Every pair the corpus could produce — what resolution would cost with no\nblocking at all."
    }
  }
}
BlockingRuleEstimate
BlockingRuleEstimate schema
{
  "type": "object",
  "description": "One blocking rule's contribution to the candidate set.",
  "required": [
    "blocking_rule",
    "match_key",
    "marginal_pairs",
    "cumulative_pairs",
    "has_block_breakdown"
  ],
  "properties": {
    "blocking_rule": {
      "type": "string"
    },
    "cumulative_pairs": {
      "type": "integer",
      "format": "int64"
    },
    "has_block_breakdown": {
      "type": "boolean",
      "description": "Whether this rule's largest blocks could be enumerated. False for a rule\ncarrying a filter condition, which has no block breakdown at all.\n\nOn the wire because the alternative is silence: with no flag, a rule\nthat CANNOT be broken down looks exactly like one that was examined and\nfound to have no large blocks, which reads as reassurance about a rule\nnobody measured."
    },
    "marginal_pairs": {
      "type": "integer",
      "format": "int64",
      "description": "Pairs this rule adds that no earlier rule already generated — the number\nthat says whether the rule is pulling its weight."
    },
    "match_key": {
      "type": "integer",
      "format": "int64"
    }
  }
}
CandidateKey
CandidateKey schema
{
  "type": "object",
  "description": "What an equi-join on one column would cost as a blocking key, measured against the corpus rather than inferred from a model. Blocking decides the entire cost of a run, and it is chosen before anything is trained — so the question has to be answerable with no model at all, which is why these numbers come from a GROUP BY over the data and not from a settings document.",
  "required": [
    "id",
    "profile_run_id",
    "key_columns",
    "row_count",
    "covered_rows",
    "distinct_values",
    "expected_pairs",
    "largest_block_pairs",
    "largest_block_rows",
    "entropy_bits",
    "pair_loss_from_nulls",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "covered_rows": {
      "type": "integer",
      "format": "int64",
      "description": "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": {
      "type": "string",
      "format": "date-time",
      "description": "Run-logical creation time."
    },
    "distinct_values": {
      "type": "integer",
      "format": "int64",
      "description": "Distinct key values among the covered rows. The block count: more blocks of fewer rows each is what makes a key cheap."
    },
    "entropy_bits": {
      "type": "number",
      "format": "double",
      "description": "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": {
      "type": "integer",
      "format": "int64",
      "description": "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": {
      "type": "string",
      "description": "Content-derived row id: sha256('candidate_keys:' || profile_run_id || ':' || key_columns)."
    },
    "key_columns": {
      "type": "string",
      "description": "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": {
      "type": "integer",
      "format": "int64",
      "description": "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": {
      "type": "integer",
      "format": "int64",
      "description": "Rows in that largest block."
    },
    "pair_loss_from_nulls": {
      "type": "number",
      "format": "double",
      "description": "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": {
      "type": "string",
      "description": "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": {
      "type": "integer",
      "format": "int64",
      "description": "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": {
      "type": "string",
      "format": "date-time",
      "description": "Run-logical last-write time."
    }
  }
}
CandidateKeyItem
CandidateKeyItem schema
{
  "type": "object",
  "description": "One measured candidate blocking key, cheapest first.",
  "required": [
    "key_columns",
    "row_count",
    "covered_rows",
    "distinct_values",
    "expected_pairs",
    "largest_block_pairs",
    "largest_block_rows",
    "entropy_bits",
    "pair_loss_from_nulls"
  ],
  "properties": {
    "covered_rows": {
      "type": "integer",
      "format": "int64"
    },
    "distinct_values": {
      "type": "integer",
      "format": "int64"
    },
    "entropy_bits": {
      "type": "number",
      "format": "double"
    },
    "expected_pairs": {
      "type": "integer",
      "format": "int64"
    },
    "key_columns": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "largest_block_pairs": {
      "type": "integer",
      "format": "int64"
    },
    "largest_block_rows": {
      "type": "integer",
      "format": "int64"
    },
    "pair_loss_from_nulls": {
      "type": "number",
      "format": "double"
    },
    "row_count": {
      "type": "integer",
      "format": "int64"
    }
  }
}
ClearAccepted
ClearAccepted schema
{
  "type": "object",
  "description": "A task clear and what each of its arms did: the body of\n`POST …/jobs/{job_id}/tasks/{task_id}/clear`. Fields are in the order the\n`json!` object this replaced emitted them, which serde_json sorts.",
  "required": [
    "cleared",
    "demanded_upstream",
    "reopened",
    "reset",
    "restarting",
    "rotated"
  ],
  "properties": {
    "cleared": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "demanded_upstream": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "reopened": {
      "type": "boolean"
    },
    "reset": {
      "type": "integer",
      "minimum": 0
    },
    "restarting": {
      "type": "integer",
      "minimum": 0
    },
    "rotated": {
      "type": "integer",
      "minimum": 0
    }
  }
}
ColumnProfile
ColumnProfile schema
{
  "type": "object",
  "description": "One column's shape within one profile run: how full it is, how many distinct values it holds, how long its values are, what types they parse as, and its most frequent values. One row per column rather than per value, because the lake schema language cannot express a partition (there is no partition_by field) and a per-value table would grow with the corpus instead of with the schema.",
  "required": [
    "id",
    "profile_run_id",
    "column_name",
    "row_count",
    "total_row_count",
    "non_null_count",
    "blank_count",
    "distinct_approx",
    "cast_bigint",
    "cast_double",
    "cast_date",
    "cast_timestamp",
    "cast_boolean",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "blank_count": {
      "type": "integer",
      "format": "int64",
      "description": "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": {
      "type": "integer",
      "format": "int64",
      "description": "Non-null values that parse as an integer."
    },
    "cast_boolean": {
      "type": "integer",
      "format": "int64",
      "description": "Non-null values that parse as a boolean."
    },
    "cast_date": {
      "type": "integer",
      "format": "int64",
      "description": "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": {
      "type": "integer",
      "format": "int64",
      "description": "Non-null values that parse as a double."
    },
    "cast_timestamp": {
      "type": "integer",
      "format": "int64",
      "description": "Non-null values that parse as a timestamp."
    },
    "column_name": {
      "type": "string",
      "description": "The profiled column, as named in the corpus stage."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Run-logical creation time."
    },
    "distinct_approx": {
      "type": "integer",
      "format": "int64",
      "description": "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": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "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": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "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": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "description": "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": {
      "type": "string",
      "description": "Content-derived row id: sha256('column_profiles:' || profile_run_id || ':' || column_name)."
    },
    "len_avg": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "description": "Mean trimmed value length."
    },
    "len_max": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "Longest trimmed value length. A value at a round number here is the signature of upstream truncation."
    },
    "len_min": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "Shortest trimmed value length. NULL for an all-NULL column, where a length has no meaning."
    },
    "len_p50": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "Approximate median trimmed length."
    },
    "len_p95": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "Approximate 95th-percentile trimmed length. Read against len_max it separates a long tail from a single outlier."
    },
    "lex_max": {
      "type": [
        "string",
        "null"
      ],
      "description": "Lexically largest trimmed value."
    },
    "lex_min": {
      "type": [
        "string",
        "null"
      ],
      "description": "Lexically smallest trimmed value."
    },
    "non_null_count": {
      "type": "integer",
      "format": "int64",
      "description": "Rows where the column is not NULL."
    },
    "num_avg": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "description": "Mean of the values that parse as numbers."
    },
    "num_max": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "description": "Largest value that parses as a number, NULL when none does."
    },
    "num_min": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "description": "Smallest value that parses as a number, NULL when none does."
    },
    "num_std": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "description": "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": {
      "type": "string",
      "description": "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": {
      "type": "integer",
      "format": "int64",
      "description": "Rows read for this column (the sampled count when sampling was on)."
    },
    "top_values": {
      "description": "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": {
      "type": "integer",
      "format": "int64",
      "description": "Rows in the corpus whether or not they were sampled, so a sampled figure can be scaled and labelled honestly."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Run-logical last-write time."
    }
  }
}
Completeness
Completeness schema
{
  "type": "object",
  "description": "Golden-record completeness: overall and per survivable column.",
  "required": [
    "overall",
    "by_attribute"
  ],
  "properties": {
    "by_attribute": {
      "type": "object",
      "description": "Non-null fraction per golden column.",
      "additionalProperties": {
        "type": "number",
        "format": "double"
      },
      "propertyNames": {
        "type": "string"
      }
    },
    "overall": {
      "type": "number",
      "format": "double"
    }
  }
}
ConfigDraftCreated
ConfigDraftCreated schema
{
  "type": "object",
  "description": "`POST …/config/versions`: the draft just stored.",
  "required": [
    "org",
    "version",
    "config_hash",
    "state"
  ],
  "properties": {
    "config_hash": {
      "type": "string"
    },
    "org": {
      "type": "string"
    },
    "state": {
      "type": "string",
      "description": "Always `draft`."
    },
    "version": {
      "type": "integer",
      "format": "int64"
    }
  }
}
ConfigPublished
ConfigPublished schema
{
  "type": "object",
  "description": "`POST …/config/versions/{version}/publish`: what the publish changed and\nqueued.",
  "required": [
    "org",
    "version",
    "changed_blocks",
    "jobs_enqueued",
    "published_by",
    "advisories"
  ],
  "properties": {
    "advisories": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "What the latest profile says about the config that just went live:\nadvice, never a refusal."
    },
    "changed_blocks": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "jobs_enqueued": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The rebuild jobs the tier queued, in order."
    },
    "org": {
      "type": "string"
    },
    "published_by": {
      "type": "string"
    },
    "tier": {
      "type": [
        "string",
        "null"
      ],
      "description": "The rebuild tier the changed blocks required."
    },
    "version": {
      "type": "integer",
      "format": "int64"
    }
  }
}
ConfigValidation
ConfigValidation schema
{
  "type": "object",
  "description": "`POST …/config/validate`: what publishing this document would do, decided\nwithout storing or publishing anything.",
  "required": [
    "valid",
    "problems",
    "changed_blocks"
  ],
  "properties": {
    "changed_blocks": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The top-level blocks that differ from the active config."
    },
    "config_hash": {
      "type": [
        "string",
        "null"
      ],
      "description": "The canonical document's hash, the value a run records as the config\nit executed under; null when the YAML does not load."
    },
    "problems": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Every reason publish would refuse it, each naming what to change."
    },
    "tier": {
      "type": [
        "string",
        "null"
      ],
      "description": "The rebuild tier publish would queue (`A`, `B` or `C`), versus the\ndataset's active config; null when nothing that matters changed."
    },
    "valid": {
      "type": "boolean",
      "description": "True when publish would accept the document as written."
    }
  }
}
ConfigVersion
ConfigVersion schema
{
  "type": "object",
  "description": "A versioned config document for a tenant: its YAML, hash and publish state.",
  "required": [
    "id",
    "org_id",
    "dataset_id",
    "version",
    "yaml",
    "config_hash",
    "state",
    "created_by",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "config_hash": {
      "type": "string",
      "description": "Hash of the canonicalized config."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the version was created."
    },
    "created_by": {
      "type": "string",
      "description": "Principal that created the version."
    },
    "dataset_id": {
      "type": "string",
      "description": "The dataset this config version belongs to. Part of the natural key: rows belong to a dataset, not to the org at large."
    },
    "id": {
      "type": "string",
      "description": "The version row's unique id (UUIDv7, minted at draft)."
    },
    "org_id": {
      "type": "string",
      "description": "The tenant this config version belongs to."
    },
    "published_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the version was published, if it has been."
    },
    "state": {
      "type": "string",
      "description": "Whether the version is a draft or published."
    },
    "tier": {
      "type": [
        "string",
        "null"
      ],
      "description": "Optional service tier label."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Wall-clock last-write time (database default; advanced by mutations once the entity migrates)."
    },
    "version": {
      "type": "integer",
      "format": "int64",
      "description": "The monotonic version number within the tenant."
    },
    "yaml": {
      "type": "string",
      "description": "The config document source."
    }
  }
}
ConfigVersionItem
ConfigVersionItem schema
{
  "type": "object",
  "description": "One config version in the history list: the view without its YAML.",
  "required": [
    "version",
    "config_hash",
    "state",
    "created_by",
    "created_at"
  ],
  "properties": {
    "config_hash": {
      "type": "string"
    },
    "created_at": {
      "type": "string"
    },
    "created_by": {
      "type": "string"
    },
    "published_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "state": {
      "type": "string"
    },
    "tier": {
      "type": [
        "string",
        "null"
      ]
    },
    "version": {
      "type": "integer",
      "format": "int64"
    }
  }
}
ConfigVersionView
ConfigVersionView schema
{
  "type": "object",
  "description": "JSON of a full config-version detail.\nOne config version with its YAML body.",
  "required": [
    "version",
    "yaml",
    "config_hash",
    "state",
    "created_by",
    "created_at"
  ],
  "properties": {
    "config_hash": {
      "type": "string"
    },
    "created_at": {
      "type": "string"
    },
    "created_by": {
      "type": "string"
    },
    "published_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "state": {
      "type": "string",
      "description": "`draft`, `published` or `superseded`."
    },
    "tier": {
      "type": [
        "string",
        "null"
      ],
      "description": "The rebuild tier the publish chose; null until published."
    },
    "version": {
      "type": "integer",
      "format": "int64"
    },
    "yaml": {
      "type": "string"
    }
  }
}
ConfusionMetrics
ConfusionMetrics schema
{
  "type": "object",
  "description": "Precision, recall, F1 and accuracy from a confusion matrix, or `Null` for any\nratio whose denominator is zero.\n\nNull rather than `0.0`, which is O7a's rule and matters more here than on a\ndashboard tile: a precision of 0.0 says \"the model got every positive wrong\",\nwhile a null says \"it made no positive predictions on this label set\". Those\nare opposite conclusions and a steward acts differently on each.\nA confusion matrix and its rates; a rate is null when its denominator is 0.",
  "required": [
    "tp",
    "fp",
    "fn",
    "tn"
  ],
  "properties": {
    "accuracy": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "f1": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "description": "Null when either precision or recall is, rather than 0."
    },
    "fn": {
      "type": "integer",
      "format": "int64",
      "minimum": 0
    },
    "fp": {
      "type": "integer",
      "format": "int64",
      "minimum": 0
    },
    "precision": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "recall": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "tn": {
      "type": "integer",
      "format": "int64",
      "minimum": 0
    },
    "tp": {
      "type": "integer",
      "format": "int64",
      "minimum": 0
    }
  }
}
ContradictionItem
ContradictionItem schema
{
  "type": "object",
  "description": "One CONTRADICTION-1 finding: a `never` pair forced together by `always`\nrules, so the next reconcile cannot honour both.",
  "required": [
    "rec_a_key",
    "rec_b_key",
    "never_assertion_id",
    "always_assertion_ids",
    "component"
  ],
  "properties": {
    "always_assertion_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The `always` rules whose closure joins the pair."
    },
    "component": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Every record in that `always` closure, ascending."
    },
    "never_assertion_id": {
      "type": "string"
    },
    "rec_a_key": {
      "type": "string"
    },
    "rec_b_key": {
      "type": "string"
    }
  }
}
ContradictionList
ContradictionList schema
{
  "type": "object",
  "description": "`GET …/assertions/contradictions`: every active contradiction.",
  "required": [
    "contradictions"
  ],
  "properties": {
    "contradictions": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ContradictionItem"
      }
    }
  }
}
CurvePoint
CurvePoint schema
{
  "allOf": [
    {
      "$ref": "#/components/schemas/ConfusionMetrics"
    },
    {
      "type": "object",
      "required": [
        "threshold"
      ],
      "properties": {
        "threshold": {
          "type": "number",
          "format": "double"
        }
      }
    }
  ],
  "description": "One step of the precision/recall trade-off curve."
}
DataQuality
DataQuality schema
{
  "type": "object",
  "description": "`GET …/data-quality`: the composite score and its four inputs.",
  "required": [
    "dq_score",
    "completeness",
    "junk_rate",
    "stale_rate",
    "duplicate_rate",
    "records",
    "entities",
    "stale_days",
    "snapshot"
  ],
  "properties": {
    "completeness": {
      "$ref": "#/components/schemas/Completeness"
    },
    "dq_score": {
      "type": "number",
      "format": "double",
      "description": "The mean of completeness and the complements of the three rates."
    },
    "duplicate_rate": {
      "type": "number",
      "format": "double"
    },
    "entities": {
      "type": "integer",
      "format": "int64"
    },
    "junk_rate": {
      "type": "number",
      "format": "double"
    },
    "records": {
      "type": "integer",
      "format": "int64"
    },
    "snapshot": {
      "type": "integer",
      "format": "int64"
    },
    "stale_days": {
      "type": "integer",
      "format": "int64"
    },
    "stale_rate": {
      "type": "number",
      "format": "double"
    }
  }
}
Dataset
Dataset schema
{
  "type": "object",
  "description": "One of a tenant's resolution domains: its own lake location, config pointer, entity type and lifecycle state. The lake env points at a DuckLake catalog of its own (a METADATA_SCHEMA inside the org's metadata database, or a file catalog locally), so two datasets never share tables.",
  "required": [
    "id",
    "org_id",
    "name",
    "entity_type",
    "config_path",
    "env",
    "state",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "active_config_version": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "The currently published config version, if any."
    },
    "config_path": {
      "type": "string",
      "description": "Path to the dataset's config document."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the dataset was created."
    },
    "display_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Optional human label; the name stays the stable routing handle."
    },
    "drop_root": {
      "type": [
        "string",
        "null"
      ],
      "description": "Delivery landing directory; one `<source>.csv` per config source."
    },
    "entity_type": {
      "type": "string",
      "description": "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": {
      "description": "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": {
      "type": "string",
      "description": "The dataset's unique id (UUIDv7, minted at creation)."
    },
    "name": {
      "type": "string",
      "description": "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": {
      "type": "string",
      "description": "The tenant this dataset belongs to."
    },
    "s3_ingest_bucket": {
      "type": [
        "string",
        "null"
      ],
      "description": "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": {
      "type": [
        "string",
        "null"
      ],
      "description": "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": {
      "type": "string",
      "description": "Dataset lifecycle state. The org's own state gates the whole tenant above this."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Wall-clock last-write time (database default; advanced by mutations once the entity migrates)."
    }
  }
}
DatasetCreated
DatasetCreated schema
{
  "type": "object",
  "description": "A dataset created directly: `POST /v1/orgs/{org}/datasets` (201).",
  "required": [
    "name",
    "state"
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "state": {
      "type": "string"
    }
  }
}
DatasetProvisioning
DatasetProvisioning schema
{
  "type": "object",
  "description": "A dataset accepted for provisioning: `POST /v1/orgs/{org}/datasets` (202).",
  "required": [
    "name",
    "state",
    "job_id"
  ],
  "properties": {
    "job_id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "state": {
      "type": "string"
    }
  }
}
DatasetUsage
DatasetUsage schema
{
  "type": "object",
  "description": "One dataset's share of an org's usage.",
  "required": [
    "name",
    "records"
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "records": {
      "type": "integer",
      "format": "int64",
      "description": "Connected records: standardized source records at `snapshot`."
    },
    "snapshot": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "The lake snapshot counted; null for a dataset with no lake yet."
    }
  }
}
DatasetView
DatasetView schema
{
  "type": "object",
  "description": "One dataset: the body of `GET`/`PATCH /v1/orgs/{org}/datasets/{ds}` and an\nitem of `GET /v1/orgs/{org}/datasets`.",
  "required": [
    "name",
    "entity_type",
    "state",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "active_config_version": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64"
    },
    "created_at": {
      "type": "string"
    },
    "display_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "entity_type": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "state": {
      "type": "string"
    },
    "updated_at": {
      "type": "string"
    }
  }
}
Deleted
Deleted schema
{
  "type": "object",
  "description": "A delete's outcome: false when there was nothing (of this org's) to delete.",
  "required": [
    "deleted"
  ],
  "properties": {
    "deleted": {
      "type": "boolean"
    }
  }
}
DeliveryAccepted
DeliveryAccepted schema
{
  "type": "object",
  "description": "`202` from a source delivery: the published delivery and the run queued\nto consume it.",
  "required": [
    "delivery_id",
    "job"
  ],
  "properties": {
    "delivery_id": {
      "type": "string"
    },
    "job": {
      "$ref": "#/components/schemas/Job"
    }
  }
}
EmailAccepted
EmailAccepted schema
{
  "type": "object",
  "description": "`202` from `POST /v1/email`: queued for delivery. Deliberately empty."
}
EntityEventItem
EntityEventItem schema
{
  "type": "object",
  "description": "One event in an entity's history.",
  "required": [
    "id",
    "seq",
    "run_id",
    "event_type",
    "details",
    "occurred_at"
  ],
  "properties": {
    "details": {},
    "event_type": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "occurred_at": {
      "type": "string",
      "description": "Naive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339."
    },
    "run_id": {
      "type": "string"
    },
    "seq": {
      "type": "integer",
      "format": "int64"
    }
  }
}
EntityLink
EntityLink schema
{
  "type": "object",
  "description": "A relationship between two resolved entities that is NOT a merge: a household, a corporate hierarchy, a 'these are related but distinct' note. The product has one answer to 'these two records belong together' — merge them — and that answer is wrong for a husband and wife at one address, or a subsidiary and its parent. Merging them loses the distinction and no later run can recover it; refusing to record anything loses the relationship. A link records it without collapsing either side.",
  "required": [
    "id",
    "org_id",
    "dataset_id",
    "parent_entity_id",
    "child_entity_id",
    "kind",
    "origin",
    "created_by",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "child_entity_id": {
      "type": "string",
      "description": "The entity on the member side — the person in the household, the subsidiary."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the link was created."
    },
    "created_by": {
      "type": "string",
      "description": "The actor that created the link."
    },
    "dataset_id": {
      "type": "string",
      "description": "The dataset whose entities this link relates — entity ids are lake-local."
    },
    "id": {
      "type": "string",
      "description": "The link's unique id (UUIDv7, minted by the application)."
    },
    "kind": {
      "type": "string",
      "description": "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": {
      "type": [
        "string",
        "null"
      ],
      "description": "Optional free text — why this link exists, in the words of whoever made it."
    },
    "org_id": {
      "type": "string",
      "description": "The tenant. Every read is scoped by it."
    },
    "origin": {
      "type": "string",
      "description": "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": {
      "type": "string",
      "description": "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": {
      "type": "string",
      "format": "date-time",
      "description": "When it was last changed."
    }
  }
}
EntityLinkDeleted
EntityLinkDeleted schema
{
  "type": "object",
  "description": "`DELETE …/entity-links/{link_id}`: the id of the link removed.",
  "required": [
    "deleted"
  ],
  "properties": {
    "deleted": {
      "type": "string"
    }
  }
}
EntityLinkList
EntityLinkList schema
{
  "type": "object",
  "description": "`GET …/entities/{entity_id}/links`: the entity's links, either direction.",
  "required": [
    "items"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/EntityLink"
      }
    }
  }
}
EntityMember
EntityMember schema
{
  "type": "object",
  "description": "One member record of an entity, with its active steward flags.",
  "required": [
    "source_system",
    "source_record_id",
    "record_key",
    "assigned_at",
    "run_id",
    "protected",
    "verified"
  ],
  "properties": {
    "assigned_at": {
      "type": "string",
      "description": "Naive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339."
    },
    "protected": {
      "type": "boolean",
      "description": "An active `protect` overlay: the record is master for its entity and\ncannot be deleted or unmatch-peeled until unprotected."
    },
    "record_key": {
      "type": "string"
    },
    "run_id": {
      "type": "string"
    },
    "source_record_id": {
      "type": "string"
    },
    "source_system": {
      "type": "string"
    },
    "verified": {
      "type": "boolean",
      "description": "An active whole-row steward verification."
    }
  }
}
EvaluationCounts
EvaluationCounts schema
{
  "type": "object",
  "description": "Which labels the evaluation could and could not use.",
  "required": [
    "labels_for_version",
    "evaluable",
    "no_score",
    "not_a_verdict"
  ],
  "properties": {
    "evaluable": {
      "type": "integer",
      "minimum": 0
    },
    "labels_for_version": {
      "type": "integer",
      "minimum": 0
    },
    "no_score": {
      "type": "integer",
      "minimum": 0
    },
    "not_a_verdict": {
      "type": "integer",
      "minimum": 0
    }
  }
}
GoldenDetail
GoldenDetail schema
{
  "type": "object",
  "description": "`GET …/golden-records/{entity_id}`: one resolved entity, snapshot-pinned.",
  "required": [
    "golden",
    "members",
    "lineage",
    "events"
  ],
  "properties": {
    "events": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/EntityEventItem"
      }
    },
    "golden": {
      "$ref": "#/components/schemas/GoldenRow"
    },
    "lineage": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/LineageItem"
      }
    },
    "members": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/EntityMember"
      }
    }
  }
}
GoldenLineage
GoldenLineage schema
{
  "type": "object",
  "description": "Per-attribute survivorship provenance: which record each surviving golden value came from.",
  "required": [
    "id",
    "entity_id",
    "attribute",
    "record_key",
    "source_system",
    "source_record_id",
    "rule",
    "survivorship_version",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "attribute": {
      "type": "string",
      "description": "The survivable attribute decided (e.g. given_name, email, address)."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Run-logical creation time (the assembling run's clock; the mart is rebuilt whole)."
    },
    "entity_id": {
      "type": "string",
      "description": "The resolved entity this attribute decision belongs to."
    },
    "id": {
      "type": "string",
      "description": "Content-derived row id: sha256('golden_lineage:' || entity_id || ':' || attribute)."
    },
    "record_key": {
      "type": "string",
      "description": "The source record that won the attribute."
    },
    "rule": {
      "type": "string",
      "description": "The survivorship rule that selected this value."
    },
    "source_record_id": {
      "type": "string",
      "description": "Source-native id of the winning record."
    },
    "source_system": {
      "type": "string",
      "description": "Source system of the winning record."
    },
    "survivorship_version": {
      "type": "string",
      "description": "Survivorship policy version that produced this row."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Run-logical last-write time (equals created_at; the mart is rebuilt whole)."
    }
  }
}
GoldenRecord
GoldenRecord schema
{
  "type": "object",
  "description": "One resolved person: the surviving value per attribute, at a snapshot.",
  "required": [
    "id",
    "survivorship_version",
    "assembled_at",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "addr_city": {
      "type": [
        "string",
        "null"
      ],
      "description": "Surviving city of the address."
    },
    "addr_number": {
      "type": [
        "string",
        "null"
      ],
      "description": "Surviving street number of the address."
    },
    "addr_postal": {
      "type": [
        "string",
        "null"
      ],
      "description": "Surviving postal code of the address."
    },
    "addr_region": {
      "type": [
        "string",
        "null"
      ],
      "description": "Surviving region/state of the address."
    },
    "addr_street": {
      "type": [
        "string",
        "null"
      ],
      "description": "Surviving street name of the address."
    },
    "addr_unit": {
      "type": [
        "string",
        "null"
      ],
      "description": "Surviving unit/apartment of the address."
    },
    "assembled_at": {
      "type": "string",
      "format": "date-time",
      "description": "Assembly time of this row (volatile; excluded from determinism comparisons)."
    },
    "birth_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "description": "Surviving birth date."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Run-logical creation time (the assembling run's clock; the mart is rebuilt whole)."
    },
    "email": {
      "type": [
        "string",
        "null"
      ],
      "description": "Surviving email address."
    },
    "family_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Surviving family name."
    },
    "given_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Surviving given name."
    },
    "id": {
      "type": "string",
      "description": "Persistent entity id (deterministic UUIDv7, minted by reconcile); the survivorship key."
    },
    "metadata": {
      "description": "Surviving opaque per-source metadata object."
    },
    "phone_e164": {
      "type": [
        "string",
        "null"
      ],
      "description": "Surviving phone number in E.164 form."
    },
    "survivorship_version": {
      "type": "string",
      "description": "Survivorship policy version that produced this row."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Run-logical last-write time (equals created_at; the mart is rebuilt whole)."
    }
  }
}
GoldenRow
GoldenRow schema
{
  "oneOf": [
    {
      "$ref": "#/components/schemas/PersonGolden"
    },
    {
      "$ref": "#/components/schemas/AccountGolden"
    }
  ],
  "description": "The golden record of whichever entity type the dataset resolves."
}
ImportReceipt
ImportReceipt schema
{
  "type": "object",
  "description": "One ingest-batch receipt: what a delivery did to the corpus.",
  "required": [
    "id",
    "run_id",
    "source_system",
    "path",
    "new_count",
    "changed_count",
    "unchanged_count",
    "tombstone_count",
    "resurrected_count",
    "full_refresh_keys",
    "created_at"
  ],
  "properties": {
    "changed_count": {
      "type": "integer",
      "format": "int64"
    },
    "created_at": {
      "type": "string",
      "description": "Naive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339."
    },
    "full_refresh_keys": {
      "type": "boolean"
    },
    "id": {
      "type": "string"
    },
    "matched_count": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64"
    },
    "new_count": {
      "type": "integer",
      "format": "int64"
    },
    "path": {
      "type": "string"
    },
    "resurrected_count": {
      "type": "integer",
      "format": "int64"
    },
    "review_count": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64"
    },
    "run_id": {
      "type": "string"
    },
    "screened_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "Naive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339."
    },
    "source_system": {
      "type": "string"
    },
    "tombstone_count": {
      "type": "integer",
      "format": "int64"
    },
    "unchanged_count": {
      "type": "integer",
      "format": "int64"
    },
    "unmatched_count": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64"
    }
  }
}
IngestBatch
IngestBatch schema
{
  "type": "object",
  "description": "One delivery receipt (S4.1): per-source landing counts for a batch, including tombstones and resurrections.",
  "required": [
    "id",
    "run_id",
    "source_system",
    "path",
    "new_count",
    "changed_count",
    "unchanged_count",
    "tombstone_count",
    "resurrected_count",
    "full_refresh_keys",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "changed_count": {
      "type": "integer",
      "format": "int64",
      "description": "Rows superseding a key with new content."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Creation stamp (the run's logical timestamp)."
    },
    "full_refresh_keys": {
      "type": "boolean",
      "description": "Whether the delivery tombstoned omitted keys."
    },
    "id": {
      "type": "string",
      "description": "The delivery batch's unique id (caller-supplied per delivery)."
    },
    "matched_count": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "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": {
      "type": "integer",
      "format": "int64",
      "description": "Rows landing a brand-new key."
    },
    "path": {
      "type": "string",
      "description": "The delivered file's path."
    },
    "resurrected_count": {
      "type": "integer",
      "format": "int64",
      "description": "Previously tombstoned keys that returned."
    },
    "review_count": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "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": {
      "type": "string",
      "description": "The run that wrote this row."
    },
    "screened_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "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": {
      "type": "string",
      "description": "The delivering source system."
    },
    "tombstone_count": {
      "type": "integer",
      "format": "int64",
      "description": "Keys tombstoned by a full refresh."
    },
    "unchanged_count": {
      "type": "integer",
      "format": "int64",
      "description": "Rows matching the key's current content."
    },
    "unmatched_count": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "Screening (E9b): delivered records with no active score reaching `review_low` — genuinely new as far as the model can tell."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "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
InsightPoint schema
{
  "type": "object",
  "description": "One retained metric snapshot, with the rates derived from it.",
  "required": [
    "run_id",
    "captured_at",
    "records",
    "entities",
    "duplicate_records",
    "duplicate_groups",
    "largest_group",
    "review_backlog",
    "auto_merge_pairs",
    "review_band_pairs"
  ],
  "properties": {
    "auto_merge_pairs": {
      "type": "integer",
      "format": "int64"
    },
    "captured_at": {
      "type": "string",
      "description": "chrono's display form (`YYYY-MM-DD HH:MM:SS[.f] UTC`)."
    },
    "duplicate_groups": {
      "type": "integer",
      "format": "int64"
    },
    "duplicate_rate": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "description": "Duplicate records over records; null for an empty corpus."
    },
    "duplicate_records": {
      "type": "integer",
      "format": "int64"
    },
    "entities": {
      "type": "integer",
      "format": "int64"
    },
    "largest_group": {
      "type": "integer",
      "format": "int64"
    },
    "records": {
      "type": "integer",
      "format": "int64"
    },
    "records_per_entity": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "description": "Records over entities; null when there are none."
    },
    "review_backlog": {
      "type": "integer",
      "format": "int64"
    },
    "review_band_pairs": {
      "type": "integer",
      "format": "int64"
    },
    "run_id": {
      "type": "string"
    }
  }
}
InsightSeries
InsightSeries schema
{
  "type": "object",
  "description": "`GET …/insights`: the retained metric series, newest first.",
  "required": [
    "snapshot",
    "series"
  ],
  "properties": {
    "series": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/InsightPoint"
      }
    },
    "snapshot": {
      "type": "integer",
      "format": "int64"
    }
  }
}
Job
Job schema
{
  "type": "object",
  "description": "A unit of work on the dispatcher's queue: its kind, params, lifecycle state and retry bookkeeping.",
  "required": [
    "id",
    "org_id",
    "kind",
    "params",
    "state",
    "priority",
    "attempt",
    "max_attempts",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "attempt": {
      "type": "integer",
      "format": "int64",
      "description": "Attempts made so far."
    },
    "clear_number": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "Incremented by every clear; fences readiness verdicts composed before the clear. Read as COALESCE(clear_number, 0)."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the job was enqueued."
    },
    "created_by": {
      "type": [
        "string",
        "null"
      ],
      "description": "Principal that created the job."
    },
    "dataset_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "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": {
      "type": [
        "string",
        "null"
      ],
      "description": "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": {
      "type": [
        "string",
        "null"
      ],
      "description": "The failure's human text, already chain-flattened. Kept beside error_class so a steward sees the reason without reading pod logs."
    },
    "finished_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the job finished."
    },
    "id": {
      "type": "string",
      "description": "The job's unique id (UUIDv7, minted at enqueue)."
    },
    "idempotency_key": {
      "type": [
        "string",
        "null"
      ],
      "description": "Optional dedup key, unique per org."
    },
    "image_digest": {
      "type": [
        "string",
        "null"
      ],
      "description": "Image digest the planning dispatcher ran, so a deploy mid-run is legible."
    },
    "kind": {
      "type": "string",
      "description": "The job kind (run_all, correct, maintain, train, ...)."
    },
    "max_attempts": {
      "type": "integer",
      "format": "int64",
      "description": "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": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Earliest time the job may be claimed. A retry sets it to the backoff deadline."
    },
    "org_id": {
      "type": "string",
      "description": "The tenant this job runs for."
    },
    "owner_epoch": {
      "type": [
        "string",
        "null"
      ],
      "description": "The dispatcher process epoch that planned or adopted the run."
    },
    "params": {
      "description": "Kind-specific parameters."
    },
    "policy_hash": {
      "type": [
        "string",
        "null"
      ],
      "description": "sha256 over the compiled DAG's per-node policy (retries, backoff, timeout, class, segment); a divergence proceeds with the diff logged."
    },
    "priority": {
      "type": "integer",
      "format": "int64",
      "description": "Claim priority; higher runs first."
    },
    "resource_class": {
      "type": [
        "string",
        "null"
      ],
      "description": "Requested runner resource class."
    },
    "run_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "The run this job produced, once dispatched."
    },
    "schedule_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "The schedule that enqueued the job, if any."
    },
    "started_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the job started running."
    },
    "state": {
      "type": "string",
      "description": "Lifecycle state (queued, dispatching, running, succeeded, failed, canceling, canceled)."
    },
    "structural_fingerprint": {
      "type": [
        "string",
        "null"
      ],
      "description": "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": {
      "type": [
        "string",
        "null"
      ],
      "description": "Propagated trace context."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the job row was last updated."
    }
  }
}
JobList
JobList schema
{
  "type": "object",
  "description": "One dataset's jobs, newest first: the body of `GET …/jobs`.",
  "required": [
    "jobs"
  ],
  "properties": {
    "jobs": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Job"
      }
    }
  }
}
KeyIssued
KeyIssued schema
{
  "type": "object",
  "description": "`POST /v1/orgs/{org}/api-keys`: the new key. `key` is the plaintext, shown\nexactly once; only its hash is stored.",
  "required": [
    "id",
    "key",
    "role"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "key": {
      "type": "string"
    },
    "role": {
      "type": "string"
    }
  }
}
KeyRevoked
KeyRevoked schema
{
  "type": "object",
  "description": "`DELETE /v1/orgs/{org}/api-keys/{key_id}`: whether a live key was revoked.",
  "required": [
    "revoked"
  ],
  "properties": {
    "revoked": {
      "type": "boolean"
    }
  }
}
LabelBand
LabelBand schema
{
  "type": "object",
  "description": "The gray band a labelling page was drawn from.",
  "required": [
    "min",
    "max"
  ],
  "properties": {
    "max": {
      "type": "number",
      "format": "double"
    },
    "min": {
      "type": "number",
      "format": "double"
    }
  }
}
LabelCoverage
LabelCoverage schema
{
  "type": "object",
  "description": "How much labelled signal a tenant has, split by verdict and origin.",
  "required": [
    "total",
    "matches",
    "non_matches",
    "by_origin"
  ],
  "properties": {
    "by_origin": {
      "$ref": "#/components/schemas/LabelOrigins"
    },
    "matches": {
      "type": "integer",
      "minimum": 0
    },
    "non_matches": {
      "type": "integer",
      "minimum": 0
    },
    "total": {
      "type": "integer",
      "minimum": 0
    }
  }
}
LabelEvaluation
LabelEvaluation schema
{
  "type": "object",
  "description": "A model version scored against the tenant's own labels.",
  "required": [
    "model_version_label",
    "threshold",
    "counts",
    "overall",
    "by_origin",
    "curve"
  ],
  "properties": {
    "by_origin": {
      "type": "object",
      "description": "Per label origin that has any evaluable label.",
      "additionalProperties": {
        "$ref": "#/components/schemas/ConfusionMetrics"
      },
      "propertyNames": {
        "type": "string"
      }
    },
    "counts": {
      "$ref": "#/components/schemas/EvaluationCounts"
    },
    "curve": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CurvePoint"
      }
    },
    "model_version_label": {
      "type": "string"
    },
    "overall": {
      "$ref": "#/components/schemas/ConfusionMetrics"
    },
    "threshold": {
      "type": "number",
      "format": "double"
    }
  }
}
LabelList
LabelList schema
{
  "type": "object",
  "description": "`GET …/labels`: the recorded labels, newest first.",
  "required": [
    "labels"
  ],
  "properties": {
    "labels": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PairLabel"
      }
    }
  }
}
LabelOrigins
LabelOrigins schema
{
  "type": "object",
  "description": "How many labels a tenant has, by origin.",
  "required": [
    "human",
    "reviewer",
    "llm"
  ],
  "properties": {
    "human": {
      "type": "integer",
      "minimum": 0
    },
    "llm": {
      "type": "integer",
      "minimum": 0
    },
    "reviewer": {
      "type": "integer",
      "minimum": 0
    }
  }
}
LabelingQueue
LabelingQueue schema
{
  "type": "object",
  "description": "`GET …/labeling/next`: the next uncertain pairs and the coverage so far.",
  "required": [
    "items",
    "snapshot",
    "threshold",
    "band",
    "coverage"
  ],
  "properties": {
    "band": {
      "$ref": "#/components/schemas/LabelBand"
    },
    "coverage": {
      "$ref": "#/components/schemas/LabelCoverage"
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/UncertainPair"
      }
    },
    "snapshot": {
      "type": "integer",
      "format": "int64"
    },
    "threshold": {
      "type": "number",
      "format": "double",
      "description": "The `auto_merge` threshold the pairs are ordered around."
    }
  }
}
LargestBlockEstimate
LargestBlockEstimate schema
{
  "type": "object",
  "description": "A blocking key whose block is large enough to dominate a run.",
  "required": [
    "match_key",
    "key_values",
    "pairs",
    "rows"
  ],
  "properties": {
    "key_values": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "match_key": {
      "type": "integer",
      "format": "int64",
      "description": "Which rule this block belongs to, since every rule is now broken down\nrather than only the first."
    },
    "pairs": {
      "type": "integer",
      "format": "int64",
      "description": "The pairs a run SCORES in this block, under this model's link type."
    },
    "rows": {
      "type": "integer",
      "format": "int64",
      "description": "Rows carrying this key value. Reported beside the pairs because the two\nanswer different questions — how much work, and how lopsided the data —\nand because `pairs` is quadratic in `rows`, which is the whole reason one\nvalue can dominate a run."
    }
  }
}
LeadConversionPage
LeadConversionPage schema
{
  "type": "object",
  "description": "A page of Lead conversion proposals.",
  "required": [
    "items"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/LeadConversionView"
      }
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pass as `cursor` for the next page; null on the last."
    }
  }
}
LeadConversionView
LeadConversionView schema
{
  "type": "object",
  "description": "A proposed Lead conversion.",
  "required": [
    "id",
    "connection_id",
    "entity_id",
    "lead_external_id",
    "lead_record_key",
    "contact_external_id",
    "contact_record_key",
    "fingerprint",
    "status",
    "created_at"
  ],
  "properties": {
    "account_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "The Account the Lead converted into."
    },
    "apply_detail": {
      "type": [
        "string",
        "null"
      ]
    },
    "apply_status": {
      "type": [
        "string",
        "null"
      ],
      "description": "The apply, once begun: `applying`, `converted`, `converted_externally`,\n`failed` or `skipped_stale`."
    },
    "connection_id": {
      "type": "string"
    },
    "contact_external_id": {
      "type": "string",
      "description": "The Contact it converts into."
    },
    "contact_record_key": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "description": "RFC 3339."
    },
    "decided_by": {
      "type": [
        "string",
        "null"
      ]
    },
    "entity_id": {
      "type": "string"
    },
    "fingerprint": {
      "type": "string",
      "description": "Name it to approve or reject."
    },
    "id": {
      "type": "string"
    },
    "lead_external_id": {
      "type": "string",
      "description": "The Lead's Salesforce id and record key."
    },
    "lead_record_key": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "description": "`planned`, `approved`, `rejected` or `superseded`."
    }
  }
}
Lexicon
Lexicon schema
{
  "type": "object",
  "description": "`GET …/lexicon`: the dataset's nickname pairs.",
  "required": [
    "pairs"
  ],
  "properties": {
    "pairs": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/LexiconPair"
      }
    }
  }
}
LexiconPair
LexiconPair schema
{
  "type": "object",
  "description": "One nickname equivalence: either variant standardizes to the other. The\nsame shape in both directions (`PUT` body and responses).",
  "required": [
    "variant_a",
    "variant_b"
  ],
  "properties": {
    "variant_a": {
      "type": "string"
    },
    "variant_b": {
      "type": "string"
    }
  }
}
LexiconSaved
LexiconSaved schema
{
  "type": "object",
  "description": "`PUT …/lexicon`: the saved pairs and the full rebuild they queued.",
  "required": [
    "pairs",
    "apply_job"
  ],
  "properties": {
    "apply_job": {
      "type": "string",
      "description": "The `run_all_full` job that re-standardizes with the new pairs."
    },
    "pairs": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/LexiconPair"
      }
    }
  }
}
LineageItem
LineageItem schema
{
  "type": "object",
  "description": "Which member supplied one golden attribute, and by which survivorship rule.",
  "required": [
    "attribute",
    "record_key",
    "source_system",
    "source_record_id",
    "rule"
  ],
  "properties": {
    "attribute": {
      "type": "string"
    },
    "record_key": {
      "type": "string"
    },
    "rule": {
      "type": "string"
    },
    "source_record_id": {
      "type": "string"
    },
    "source_system": {
      "type": "string"
    }
  }
}
MatchPreviewView
MatchPreviewView schema
{
  "type": "object",
  "description": "`GET …/match-preview`: what the active model would do to the current lake.",
  "required": [
    "total",
    "would_auto_merge",
    "would_review",
    "sample"
  ],
  "properties": {
    "sample": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PreviewPairView"
      }
    },
    "total": {
      "type": "integer",
      "minimum": 0
    },
    "would_auto_merge": {
      "type": "integer",
      "minimum": 0
    },
    "would_review": {
      "type": "integer",
      "minimum": 0
    }
  }
}
MatchScoresPage
MatchScoresPage schema
{
  "type": "object",
  "description": "A page of active pairwise match scores, at a pinned snapshot.",
  "required": [
    "items",
    "snapshot"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ScoredPair"
      }
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pass as `cursor` for the next page; null on the last page."
    },
    "snapshot": {
      "type": "integer",
      "format": "int64",
      "description": "The lake snapshot every page of this walk reads; the cursor pins it."
    }
  }
}
MatchingModel
MatchingModel schema
{
  "type": "object",
  "description": "An immutable version of a tenant's matching model: the settings document the engine scores against, its hash, provenance and activation state.",
  "required": [
    "id",
    "org_id",
    "dataset_id",
    "name",
    "version",
    "entity_type",
    "model_json",
    "model_hash",
    "model_version_label",
    "state",
    "provenance",
    "created_by",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "activated_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When this version was activated, if it ever was."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the version was created."
    },
    "created_by": {
      "type": "string",
      "description": "Principal that created the version."
    },
    "dataset_id": {
      "type": "string",
      "description": "The dataset whose corpus this model was trained for."
    },
    "entity_type": {
      "type": "string",
      "description": "Which canonical schema the model scores against; a model cannot be activated for a lake of the other entity type."
    },
    "id": {
      "type": "string",
      "description": "The version row's unique id (UUIDv7, minted when the version is created)."
    },
    "model_hash": {
      "type": "string",
      "description": "SHA-256 of model_json, so a scored row can be tied back to the exact document that produced it."
    },
    "model_json": {
      "type": "string",
      "description": "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": {
      "type": "string",
      "description": "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": {
      "type": "string",
      "description": "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": {
      "type": "string",
      "description": "The tenant this model version belongs to."
    },
    "provenance": {
      "description": "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": {
      "type": "string",
      "description": "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": {
      "type": [
        "string",
        "null"
      ],
      "description": "The frozen term-frequency snapshot this model scores against, when it has one. Paired with model_version_label by the TF lookup."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Wall-clock last-write time (database default; advanced by mutations once the entity migrates)."
    },
    "version": {
      "type": "integer",
      "format": "int64",
      "description": "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
MergeApplyView schema
{
  "type": "object",
  "description": "An apply's outcome.",
  "required": [
    "status"
  ],
  "properties": {
    "detail": {
      "type": [
        "string",
        "null"
      ],
      "description": "Why it settled as it did."
    },
    "status": {
      "type": "string",
      "description": "`applying`, `applied`, `failed`, `skipped_stale` or `applied_externally`."
    }
  }
}
MergePlan
MergePlan schema
{
  "type": "object",
  "description": "One entity's merge plan (`GET …/merge-plans`): its elected master, the\ngolden preview, every member as `source_system:source_record_id`, and the\nsame group confidence the duplicates view shows.",
  "required": [
    "entity_id",
    "member_records",
    "member_confidences"
  ],
  "properties": {
    "email": {
      "type": [
        "string",
        "null"
      ]
    },
    "entity_id": {
      "type": "string"
    },
    "family_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "given_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "group_confidence": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "Null when the group has no within-group scored edge."
    },
    "master_key": {
      "type": [
        "string",
        "null"
      ]
    },
    "master_record_key": {
      "type": [
        "string",
        "null"
      ]
    },
    "member_confidences": {
      "type": "object",
      "additionalProperties": {
        "type": "integer",
        "format": "int64"
      },
      "propertyNames": {
        "type": "string"
      }
    },
    "member_count": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64"
    },
    "member_records": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "phone_e164": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}
MergePlanList
MergePlanList schema
{
  "type": "object",
  "description": "`GET …/merge-plans` (JSON form).",
  "required": [
    "items"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/MergePlan"
      }
    }
  }
}
MergePreviewDetail
MergePreviewDetail schema
{
  "type": "object",
  "description": "A merge preview in full: what approving it would do.",
  "required": [
    "summary",
    "proposal",
    "field_changes",
    "related_counts_state",
    "history"
  ],
  "properties": {
    "apply": {
      "oneOf": [
        {
          "$ref": "#/components/schemas/MergeApplyView",
          "description": "The apply to Salesforce, once one has begun (#995)."
        },
        {
          "type": "null"
        }
      ]
    },
    "decided_by": {
      "type": [
        "string",
        "null"
      ]
    },
    "decision_reason": {
      "type": [
        "string",
        "null"
      ]
    },
    "field_changes": {
      "description": "Provider field → `{before, after}` on the master."
    },
    "history": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/MergePreviewEvent"
      }
    },
    "proposal": {
      "description": "The members' synchronized preimages, the master and the policy inputs\n(the persisted proposal)."
    },
    "related_counts": {
      "description": "Related-record counts per member; null while `related_counts_state` is\n`unavailable`."
    },
    "related_counts_state": {
      "type": "string"
    },
    "summary": {
      "$ref": "#/components/schemas/MergePreviewSummary"
    }
  }
}
MergePreviewEvent
MergePreviewEvent schema
{
  "type": "object",
  "description": "One state change in a preview's history.",
  "required": [
    "to_status",
    "fingerprint",
    "actor",
    "at"
  ],
  "properties": {
    "actor": {
      "type": "string"
    },
    "at": {
      "type": "string",
      "description": "RFC 3339."
    },
    "fingerprint": {
      "type": "string"
    },
    "from_status": {
      "type": [
        "string",
        "null"
      ]
    },
    "to_status": {
      "type": "string"
    }
  }
}
MergePreviewPage
MergePreviewPage schema
{
  "type": "object",
  "description": "A page of merge previews.",
  "required": [
    "items"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/MergePreviewSummary"
      }
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pass as `cursor` for the next page; null on the last."
    }
  }
}
MergePreviewSummary
MergePreviewSummary schema
{
  "type": "object",
  "description": "One merge preview, without its member snapshots.",
  "required": [
    "id",
    "connection_id",
    "object",
    "entity_id",
    "fingerprint",
    "status",
    "master_record_key",
    "member_count",
    "lake_snapshot",
    "policy_revision",
    "created_at"
  ],
  "properties": {
    "connection_id": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "description": "RFC 3339."
    },
    "decided_by": {
      "type": [
        "string",
        "null"
      ],
      "description": "Who decided it — a principal, or `policy:<rule id>` for an\nauto-approval."
    },
    "entity_id": {
      "type": "string"
    },
    "fingerprint": {
      "type": "string",
      "description": "Name it to approve or reject."
    },
    "id": {
      "type": "string"
    },
    "lake_snapshot": {
      "type": "integer",
      "format": "int64"
    },
    "master_record_key": {
      "type": "string"
    },
    "member_count": {
      "type": "integer",
      "format": "int64"
    },
    "object": {
      "type": "string"
    },
    "policy_revision": {
      "type": "string",
      "description": "The writeback policy revision it was built under."
    },
    "score": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "description": "Match evidence: for each victim, its strongest scored edge to another\nmember, then the weakest of those. Null when absent."
    },
    "status": {
      "type": "string",
      "description": "`planned`, `approved`, `rejected` or `superseded`."
    }
  }
}
MergeRestoreStepView
MergeRestoreStepView schema
{
  "type": "object",
  "description": "One compensation step of an undo.",
  "required": [
    "kind",
    "target_id",
    "status"
  ],
  "properties": {
    "kind": {
      "type": "string",
      "description": "`never_assert`, `undelete`, `recreate` or `revert_master`."
    },
    "new_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "For `recreate`: the new Salesforce id of the recreated record."
    },
    "outcome": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "description": "`in_flight`, `done` or `failed`."
    },
    "target_id": {
      "type": "string",
      "description": "The Salesforce id acted on (the record key for `never_assert`)."
    }
  }
}
MergeRestoreView
MergeRestoreView schema
{
  "type": "object",
  "description": "The undo of an applied merge.",
  "required": [
    "status",
    "conflicts",
    "steps",
    "related_records_reverted"
  ],
  "properties": {
    "conflicts": {
      "type": "array",
      "items": {
        "type": "object"
      },
      "description": "What was refused rather than overwritten."
    },
    "detail": {
      "type": [
        "string",
        "null"
      ]
    },
    "job_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "The job working on it, when this request queued one."
    },
    "related_records_reverted": {
      "type": "boolean",
      "description": "Always false: records the merge reparented to the master stay there."
    },
    "status": {
      "type": "string",
      "description": "`restoring`, `restored`, `partial` or `failed`."
    },
    "steps": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/MergeRestoreStepView"
      }
    }
  }
}
MergesApplying
MergesApplying schema
{
  "type": "object",
  "description": "`POST …/merge-previews/apply`: the job that will apply approved previews.",
  "required": [
    "job_id",
    "state"
  ],
  "properties": {
    "job_id": {
      "type": "string"
    },
    "state": {
      "type": "string"
    }
  }
}
MetricSnapshot
MetricSnapshot schema
{
  "type": "object",
  "description": "One run's resolution metrics, kept so the dashboard can show a TREND rather than only a current value. The dashboard has always computed its numbers live from the lake, which means it can say what is true now and nothing about whether that is better or worse than last week — which is the question an operator actually has.",
  "required": [
    "id",
    "run_id",
    "captured_at",
    "records",
    "entities",
    "duplicate_records",
    "duplicate_groups",
    "largest_group",
    "review_backlog",
    "auto_merge_pairs",
    "review_band_pairs",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "auto_merge_pairs": {
      "type": "integer",
      "format": "int64",
      "description": "Active scores at or above the auto-merge threshold."
    },
    "captured_at": {
      "type": "string",
      "format": "date-time",
      "description": "The run's logical clock, not wall time — so a replayed fixture produces the same snapshot."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Run-logical creation time."
    },
    "duplicate_groups": {
      "type": "integer",
      "format": "int64",
      "description": "Entities with more than one member."
    },
    "duplicate_records": {
      "type": "integer",
      "format": "int64",
      "description": "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": {
      "type": "integer",
      "format": "int64",
      "description": "Entities the run resolved them into."
    },
    "id": {
      "type": "string",
      "description": "Content-derived row id: sha256('metric_snapshots:' || run_id)."
    },
    "largest_group": {
      "type": "integer",
      "format": "int64",
      "description": "Members in the biggest entity. A sudden jump here is the signature of an over-merge, which an average cluster size hides completely."
    },
    "records": {
      "type": "integer",
      "format": "int64",
      "description": "Records in the standardized corpus."
    },
    "review_backlog": {
      "type": "integer",
      "format": "int64",
      "description": "Open review items after the run — the work the thresholds are handing to humans."
    },
    "review_band_pairs": {
      "type": "integer",
      "format": "int64",
      "description": "Active scores in the gray band: scored, not merged. The two together say where the thresholds are actually sitting."
    },
    "run_id": {
      "type": "string",
      "description": "The run these metrics describe. One snapshot per run, so a re-run of the same id overwrites rather than double-counting."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Run-logical last-write time."
    }
  }
}
MetricSnapshotSource
MetricSnapshotSource schema
{
  "type": "object",
  "description": "One run's duplicate attribution, per source system. The corpus-wide duplicate rate says a tenant has a problem; it does not say WHERE the problem comes from, and the answer is nearly always one feed. Retained per run beside metric_snapshots for the same reason that table exists: a live number says what is true now and nothing about whether a source is getting better or worse.",
  "required": [
    "id",
    "run_id",
    "source_system",
    "captured_at",
    "records",
    "duplicate_records",
    "contributed_groups",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "captured_at": {
      "type": "string",
      "format": "date-time",
      "description": "The run's logical timestamp, duplicated here so the series is readable without joining."
    },
    "contributed_groups": {
      "type": "integer",
      "format": "int64",
      "description": "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": {
      "type": "string",
      "format": "date-time",
      "description": "Creation stamp (the run's logical timestamp)."
    },
    "duplicate_records": {
      "type": "integer",
      "format": "int64",
      "description": "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": {
      "type": "string",
      "description": "Content-derived row id: sha256('metric_snapshot_sources:' || run_id || ':' || source_system)."
    },
    "records": {
      "type": "integer",
      "format": "int64",
      "description": "How many of this source's records are in the corpus."
    },
    "run_id": {
      "type": "string",
      "description": "The run this attribution describes; shares its id with the metric_snapshots row."
    },
    "source_system": {
      "type": "string",
      "description": "The delivering source system."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Last-update stamp; a re-run of the same run_id corrects rather than appends."
    }
  }
}
Metrics
Metrics schema
{
  "type": "object",
  "description": "`GET …/metrics`: the dashboard counters, snapshot-pinned.",
  "required": [
    "records",
    "entities",
    "duplicate_groups",
    "records_in_duplicate_groups",
    "open_reviews",
    "snapshot"
  ],
  "properties": {
    "duplicate_groups": {
      "type": "integer",
      "format": "int64"
    },
    "entities": {
      "type": "integer",
      "format": "int64"
    },
    "open_reviews": {
      "type": "integer",
      "format": "int64"
    },
    "records": {
      "type": "integer",
      "format": "int64"
    },
    "records_in_duplicate_groups": {
      "type": "integer",
      "format": "int64"
    },
    "snapshot": {
      "type": "integer",
      "format": "int64"
    }
  }
}
ModelCompiled
ModelCompiled schema
{
  "allOf": [
    {
      "$ref": "#/components/schemas/ModelSummary"
    },
    {
      "type": "object",
      "required": [
        "notes"
      ],
      "properties": {
        "notes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  ],
  "description": "`POST …/models/compile`: the compiled version and what the compiler decided."
}
ModelDetail
ModelDetail schema
{
  "allOf": [
    {
      "$ref": "#/components/schemas/ModelSummary"
    },
    {
      "type": "object",
      "required": [
        "model_json",
        "weights"
      ],
      "properties": {
        "model_json": {
          "type": "string",
          "description": "The stored settings document, as text."
        },
        "weights": {
          "description": "Per comparison level: m/u and the log-odds they imply. Null when the\ndocument does not parse."
        }
      }
    }
  ],
  "description": "`GET …/models/{name}/versions/{version}`: the version with its document and\nper-field weights."
}
ModelEvaluation
ModelEvaluation schema
{
  "allOf": [
    {
      "$ref": "#/components/schemas/LabelEvaluation"
    },
    {
      "type": "object",
      "required": [
        "name",
        "version",
        "state"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "version": {
          "type": "integer",
          "format": "int64"
        }
      }
    }
  ],
  "description": "`GET …/models/{name}/versions/{version}/evaluation`."
}
ModelSummary
ModelSummary schema
{
  "type": "object",
  "description": "The model registry's wire projection. `model_json` is omitted from list\nresponses — it is the largest field by far and a list of twenty versions\nwould be mostly settings documents nobody asked for.\nOne model version in the registry, without its settings document.",
  "required": [
    "id",
    "name",
    "version",
    "entity_type",
    "model_hash",
    "model_version_label",
    "state",
    "provenance",
    "created_by",
    "created_at"
  ],
  "properties": {
    "activated_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "RFC 3339, microseconds."
    },
    "comparator_algorithm_version": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "description": "The comparator algorithm the document was trained with; null when the\nstored document does not parse.",
      "minimum": 0
    },
    "created_at": {
      "type": "string",
      "description": "RFC 3339, microseconds."
    },
    "created_by": {
      "type": "string"
    },
    "entity_type": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "model_hash": {
      "type": "string"
    },
    "model_version_label": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "provenance": {},
    "state": {
      "type": "string"
    },
    "tf_snapshot_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "version": {
      "type": "integer",
      "format": "int64"
    }
  }
}
Org
Org schema
{
  "type": "object",
  "description": "A tenant: its config pointer, lake env, lifecycle state and active config version.",
  "required": [
    "id",
    "name",
    "config_path",
    "env",
    "state",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "active_config_version": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "The currently published config version, if any."
    },
    "config_path": {
      "type": "string",
      "description": "Path to the tenant's config document."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the tenant was created."
    },
    "drop_root": {
      "type": [
        "string",
        "null"
      ],
      "description": "Optional object-store root for tenant purge."
    },
    "env": {
      "description": "Lake connection env (catalog, data path, metadata schema)."
    },
    "id": {
      "type": "string",
      "description": "The tenant's unique id (UUIDv7, minted at creation)."
    },
    "max_concurrent_jobs": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "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": {
      "type": "string",
      "description": "The tenant's unique name (the routing handle; URLs stay name-based)."
    },
    "record_allowance": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "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": {
      "type": [
        "string",
        "null"
      ],
      "description": "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": {
      "type": [
        "string",
        "null"
      ],
      "description": "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": {
      "type": "string",
      "description": "Tenant lifecycle state."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Wall-clock last-write time (database default; advanced by mutations once the entity migrates)."
    }
  }
}
OrgCreated
OrgCreated schema
{
  "type": "object",
  "description": "An org registered without auto-provisioning: the other body of `POST /v1/orgs`.",
  "required": [
    "name",
    "starter_model"
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "starter_model": {
      "description": "What seeding the starter model did: `seeded` plus a reason or the version."
    }
  }
}
OrgItem
OrgItem schema
{
  "type": "object",
  "description": "One org in the operator's registry: an item of `GET /v1/orgs`.",
  "required": [
    "id",
    "name",
    "state",
    "created_at"
  ],
  "properties": {
    "active_config_version": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64"
    },
    "created_at": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "state": {
      "type": "string"
    }
  }
}
OrgProvisioned
OrgProvisioned schema
{
  "type": "object",
  "description": "An org being provisioned, with the admin key shown once: the body of\n`POST /v1/orgs` when auto-provisioning is on (#864 batch 2). Each\nstruct below declares its fields in the order of the `json!` literal it\nreplaced, which is the order the envelope ledger records.",
  "required": [
    "name",
    "config_version",
    "state",
    "job_id",
    "admin_key_id",
    "admin_key"
  ],
  "properties": {
    "admin_key": {
      "type": "string"
    },
    "admin_key_id": {
      "type": "string"
    },
    "config_version": {
      "type": "integer",
      "format": "int64"
    },
    "job_id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "state": {
      "type": "string"
    },
    "tenant": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}
OrgResources
OrgResources schema
{
  "type": "object",
  "description": "The DuckDB knobs an org's env sets, each `null` when unset.",
  "properties": {
    "duckdb_memory_limit": {
      "type": [
        "string",
        "null"
      ]
    },
    "duckdb_threads": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64"
    }
  }
}
OrgUsage
OrgUsage schema
{
  "type": "object",
  "description": "`GET /v1/orgs/{org}/usage`: the org's consumption of its allowance.",
  "required": [
    "unit",
    "records",
    "over_allowance",
    "at_limit",
    "datasets"
  ],
  "properties": {
    "allowance": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "The allowance; null is unlimited."
    },
    "at_limit": {
      "type": "boolean",
      "description": "True once `records >= limit`: new deliveries are refused with 402."
    },
    "datasets": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/DatasetUsage"
      }
    },
    "limit": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "Where new deliveries start to be refused: the allowance plus its\nsoft buffer (`ALLOWANCE_BUFFER_PERCENT`). Null when unlimited."
    },
    "over_allowance": {
      "type": "boolean",
      "description": "True once `records > allowance`: the org is inside its soft buffer.\nDeliveries are still accepted until `limit`; this is the moment to\nraise the allowance, not a refusal (#1522)."
    },
    "records": {
      "type": "integer",
      "format": "int64"
    },
    "remaining": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "`allowance - records`, never negative; null when unlimited."
    },
    "unit": {
      "type": "string",
      "description": "Always `records`: connected records, summed over every dataset."
    }
  }
}
OrgView
OrgView schema
{
  "type": "object",
  "description": "An org's detail: the body of `GET /v1/orgs/{org}`.",
  "required": [
    "id",
    "name",
    "state",
    "resources"
  ],
  "properties": {
    "active_config_version": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64"
    },
    "drop_root": {
      "type": [
        "string",
        "null"
      ]
    },
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "resources": {
      "$ref": "#/components/schemas/OrgResources"
    },
    "state": {
      "type": "string"
    }
  }
}
PairLabel
PairLabel schema
{
  "type": "object",
  "description": "A human (or model) verdict on one candidate pair — the training signal the engine has always been able to learn from and never had. One row per (org, pair): a re-label corrects the previous verdict rather than stacking another.",
  "required": [
    "id",
    "org_id",
    "dataset_id",
    "rec_a_key",
    "rec_b_key",
    "verdict",
    "origin",
    "labeled_by",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the verdict was first recorded."
    },
    "dataset_id": {
      "type": "string",
      "description": "The dataset whose record pair this verdict is about — record keys are lake-local."
    },
    "id": {
      "type": "string",
      "description": "UUIDv7, minted by the application."
    },
    "labeled_by": {
      "type": "string",
      "description": "The actor that recorded the verdict."
    },
    "model_version": {
      "type": [
        "string",
        "null"
      ],
      "description": "The model whose score prompted this label, when there was one. Null for a label recorded without a score in front of it."
    },
    "note": {
      "type": [
        "string",
        "null"
      ],
      "description": "Optional free text from the labeller."
    },
    "org_id": {
      "type": "string",
      "description": "The tenant whose corpus the pair belongs to; every read is scoped by it."
    },
    "origin": {
      "type": "string",
      "description": "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": {
      "type": "string",
      "description": "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": {
      "type": "string",
      "description": "The pair's higher record key, canonical order."
    },
    "score_at_label": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "description": "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": {
      "type": "string",
      "format": "date-time",
      "description": "When it was last corrected."
    },
    "verdict": {
      "type": "string",
      "description": "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
PersonDuplicateGroup schema
{
  "type": "object",
  "description": "One duplicate group in a **person** dataset: an entity with two or more\nmember records, its evidence metadata, and a golden preview (#1234).",
  "required": [
    "entity_id",
    "member_count",
    "members",
    "member_confidences",
    "model_versions",
    "matched_fields",
    "verified"
  ],
  "properties": {
    "email": {
      "type": [
        "string",
        "null"
      ],
      "description": "The golden record's email, when assembled."
    },
    "entity_id": {
      "type": "string",
      "description": "The resolved entity."
    },
    "family_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "The golden record's family name, when assembled."
    },
    "given_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "The golden record's given name, when assembled."
    },
    "group_confidence": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "The group's confidence (0–100), or null when no member edge is scored."
    },
    "master_record_key": {
      "type": [
        "string",
        "null"
      ],
      "description": "The strongest-attached member, or null when the group is unscored."
    },
    "matched_fields": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The comparison fields any within-group edge matched on."
    },
    "member_confidences": {
      "type": "object",
      "description": "Each scored member's attachment confidence (0–100), by member key.",
      "additionalProperties": {
        "type": "integer",
        "format": "int64"
      },
      "propertyNames": {
        "type": "string"
      }
    },
    "member_count": {
      "type": "integer",
      "format": "int64",
      "description": "How many source records resolved to it."
    },
    "members": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The member records, as `<source_system>:<source_record_id>`, ordered."
    },
    "model_versions": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The model versions whose scores link the group, deduplicated."
    },
    "verified": {
      "type": "boolean",
      "description": "Whether a steward asserted or verified the group."
    }
  }
}
PersonDuplicatesPage
PersonDuplicatesPage schema
{
  "type": "object",
  "description": "A page of a person dataset's duplicate groups, at a pinned snapshot.",
  "required": [
    "items",
    "snapshot"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PersonDuplicateGroup"
      }
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pass as `cursor` for the next page; null on the last page."
    },
    "snapshot": {
      "type": "integer",
      "format": "int64",
      "description": "The lake snapshot every page of this walk reads; the cursor pins it."
    }
  }
}
PersonGolden
PersonGolden schema
{
  "type": "object",
  "description": "A person entity's golden record, as of the pinned snapshot.",
  "required": [
    "id",
    "survivorship_version"
  ],
  "properties": {
    "addr_city": {
      "type": [
        "string",
        "null"
      ]
    },
    "addr_number": {
      "type": [
        "string",
        "null"
      ]
    },
    "addr_postal": {
      "type": [
        "string",
        "null"
      ]
    },
    "addr_region": {
      "type": [
        "string",
        "null"
      ]
    },
    "addr_street": {
      "type": [
        "string",
        "null"
      ]
    },
    "addr_unit": {
      "type": [
        "string",
        "null"
      ]
    },
    "birth_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "email": {
      "type": [
        "string",
        "null"
      ]
    },
    "family_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "given_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "id": {
      "type": "string"
    },
    "metadata": {},
    "phone_e164": {
      "type": [
        "string",
        "null"
      ]
    },
    "survivorship_version": {
      "type": "string"
    }
  }
}
PreviewPairView
PreviewPairView schema
{
  "type": "object",
  "description": "One sampled pair from a match preview.",
  "required": [
    "rec_a_key",
    "rec_b_key",
    "match_probability",
    "confidence",
    "evidence"
  ],
  "properties": {
    "confidence": {
      "type": "integer",
      "format": "int64",
      "description": "The display integer of `match_probability`."
    },
    "evidence": {
      "description": "The comparison evidence; null if it was not valid JSON."
    },
    "match_probability": {
      "type": "number",
      "format": "double"
    },
    "rec_a_key": {
      "type": "string"
    },
    "rec_b_key": {
      "type": "string"
    }
  }
}
PreviewsGenerating
PreviewsGenerating schema
{
  "type": "object",
  "description": "`POST …/merge-previews/generate`: the job that will build previews.",
  "required": [
    "job_id",
    "state"
  ],
  "properties": {
    "job_id": {
      "type": "string"
    },
    "state": {
      "type": "string"
    }
  }
}
Profile
Profile schema
{
  "oneOf": [
    {
      "$ref": "#/components/schemas/ProfileReport"
    },
    {
      "$ref": "#/components/schemas/ProfileNotYet"
    }
  ],
  "description": "`GET …/profile`: the latest profile, or that there is none yet."
}
ProfileFinding
ProfileFinding schema
{
  "type": "object",
  "description": "One coded observation a profile made about a corpus — a column mostly null, a blocking key dominated by one value, a record id that is not unique. Stored rather than derived at read time because the thresholds that produced a finding belong to the run that applied them: re-deriving later against changed thresholds would silently rewrite history, and a finding is the part of a profile a user is most likely to act on.",
  "required": [
    "id",
    "profile_run_id",
    "code",
    "column_name",
    "severity",
    "message",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "code": {
      "type": "string",
      "description": "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": {
      "type": "string",
      "description": "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": {
      "type": "string",
      "format": "date-time",
      "description": "Run-logical creation time."
    },
    "detail": {
      "description": "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": {
      "type": "string",
      "description": "Content-derived row id: sha256('profile_findings:' || profile_run_id || ':' || code || ':' || column_name)."
    },
    "message": {
      "type": "string",
      "description": "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": {
      "type": "string",
      "description": "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": {
      "type": "string",
      "description": "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": {
      "type": "string",
      "format": "date-time",
      "description": "Run-logical last-write time."
    }
  }
}
ProfileNotYet
ProfileNotYet schema
{
  "type": "object",
  "description": "Nothing has profiled this subject and tier yet.",
  "required": [
    "profiled",
    "subject",
    "tier"
  ],
  "properties": {
    "profiled": {
      "type": "boolean",
      "description": "Always false."
    },
    "subject": {
      "type": "string"
    },
    "tier": {
      "type": "integer",
      "format": "int64"
    }
  }
}
ProfileReport
ProfileReport schema
{
  "type": "object",
  "description": "The latest profile of one corpus stage.",
  "required": [
    "profiled",
    "profile_run_id",
    "subject",
    "source_system",
    "tier",
    "data_snapshot",
    "corpus_digest",
    "row_count",
    "column_count",
    "sampled",
    "duration_ms",
    "captured_at",
    "columns",
    "findings",
    "candidate_keys"
  ],
  "properties": {
    "candidate_keys": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CandidateKeyItem"
      },
      "description": "Empty for a tier-1 run, which does not measure keys."
    },
    "captured_at": {
      "type": "string",
      "format": "date-time"
    },
    "column_count": {
      "type": "integer",
      "format": "int64"
    },
    "columns": {
      "type": "array",
      "items": {},
      "description": "One generated column-profile row per column. Value-bearing fields\n(top values, examples) are redacted below Steward."
    },
    "config_hash": {
      "type": [
        "string",
        "null"
      ]
    },
    "corpus_digest": {
      "type": "string"
    },
    "data_snapshot": {
      "type": "integer",
      "format": "int64"
    },
    "duration_ms": {
      "type": "integer",
      "format": "int64"
    },
    "findings": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ProfileFinding"
      }
    },
    "ingest_batch_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "model_version": {
      "type": [
        "string",
        "null"
      ]
    },
    "profile_run_id": {
      "type": "string"
    },
    "profiled": {
      "type": "boolean",
      "description": "Always true."
    },
    "row_count": {
      "type": "integer",
      "format": "int64"
    },
    "sample_proportion": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "sample_seed": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64"
    },
    "sampled": {
      "type": "boolean",
      "description": "Whether the figures come from a sample (then `sample_proportion` says\nhow much of the corpus it covered)."
    },
    "source_system": {
      "type": "string"
    },
    "subject": {
      "type": "string"
    },
    "tier": {
      "type": "integer",
      "format": "int64"
    }
  }
}
ProfileRun
ProfileRun schema
{
  "type": "object",
  "description": "One execution of the dataset profiler over one corpus stage, and the cache key for its result. A profile exists to be looked at repeatedly and compared against the previous delivery, so recomputing it on every view would make the cheap tier expensive for no new information.",
  "required": [
    "id",
    "subject",
    "source_system",
    "snapshot",
    "tier",
    "corpus_digest",
    "row_count",
    "column_count",
    "sampled",
    "duration_ms",
    "captured_at",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "captured_at": {
      "type": "string",
      "format": "date-time",
      "description": "The run's logical clock, not wall time — so a replayed fixture produces the same row."
    },
    "column_count": {
      "type": "integer",
      "format": "int64",
      "description": "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": {
      "type": [
        "string",
        "null"
      ],
      "description": "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": {
      "type": "string",
      "description": "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": {
      "type": "string",
      "format": "date-time",
      "description": "Run-logical creation time."
    },
    "duration_ms": {
      "type": "integer",
      "format": "int64",
      "description": "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": {
      "type": "string",
      "description": "Content-derived row id: sha256('profile_runs:' || subject || ':' || source_system || ':' || corpus_digest || ':' || tier)."
    },
    "ingest_batch_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "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": {
      "type": [
        "string",
        "null"
      ],
      "description": "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": {
      "type": "integer",
      "format": "int64",
      "description": "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": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "description": "The sampled share of rows, NULL when the whole corpus was read."
    },
    "sample_seed": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "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": {
      "type": "boolean",
      "description": "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": {
      "type": "integer",
      "format": "int64",
      "description": "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": {
      "type": "string",
      "description": "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": {
      "type": "string",
      "description": "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": {
      "type": "integer",
      "format": "int64",
      "description": "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": {
      "type": "string",
      "format": "date-time",
      "description": "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
Quality schema
{
  "oneOf": [
    {
      "$ref": "#/components/schemas/QualityReport"
    },
    {
      "$ref": "#/components/schemas/QualityUnconfigured"
    }
  ],
  "description": "`GET …/quality`: the report, or the unconfigured answer."
}
QualityBuckets
QualityBuckets schema
{
  "type": "object",
  "description": "The record-quality score distribution, by band.",
  "required": [
    "below_50",
    "between_50_80",
    "at_least_80"
  ],
  "properties": {
    "at_least_80": {
      "type": "integer",
      "format": "int64"
    },
    "below_50": {
      "type": "integer",
      "format": "int64"
    },
    "between_50_80": {
      "type": "integer",
      "format": "int64"
    }
  }
}
QualityDimensions
QualityDimensions schema
{
  "type": "object",
  "description": "The mean of each quality dimension; null when nothing is scored.",
  "properties": {
    "completeness": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "freshness": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "validity": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    }
  }
}
QualityReport
QualityReport schema
{
  "type": "object",
  "description": "A configured dataset's record-quality report.",
  "required": [
    "configured",
    "scored",
    "buckets",
    "dimensions",
    "worst"
  ],
  "properties": {
    "buckets": {
      "$ref": "#/components/schemas/QualityBuckets"
    },
    "configured": {
      "type": "boolean",
      "description": "Always true."
    },
    "dimensions": {
      "$ref": "#/components/schemas/QualityDimensions"
    },
    "max_score": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "mean_score": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "min_score": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "scored": {
      "type": "integer",
      "format": "int64"
    },
    "worst": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/WorstRecord"
      }
    }
  }
}
QualityUnconfigured
QualityUnconfigured schema
{
  "type": "object",
  "description": "A dataset with no quality rules configured: nothing has been scored.",
  "required": [
    "scored",
    "configured"
  ],
  "properties": {
    "configured": {
      "type": "boolean",
      "description": "Always false."
    },
    "scored": {
      "type": "integer",
      "format": "int64",
      "description": "Always 0."
    }
  }
}
RecordQuality
RecordQuality schema
{
  "type": "object",
  "description": "A per-record data-quality score, 0-100, with the three dimensions kept separately. The dimensions are kept because a single number says a record is bad and not what to do about it: complete-but-invalid, valid-but-empty and simply old are three different jobs.",
  "required": [
    "id",
    "record_key",
    "score",
    "completeness",
    "run_id",
    "scored_at",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "completeness": {
      "type": "number",
      "format": "double",
      "description": "Weighted fraction of the configured attributes that are populated."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Run-logical creation time."
    },
    "freshness": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "description": "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": {
      "type": "string",
      "description": "Content-derived row id: sha256('record_qualities:' || record_key)."
    },
    "record_key": {
      "type": "string",
      "description": "The standardized record scored."
    },
    "run_id": {
      "type": "string",
      "description": "The run that scored it."
    },
    "score": {
      "type": "number",
      "format": "double",
      "description": "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": {
      "type": "string",
      "format": "date-time",
      "description": "That run's logical clock."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Run-logical last-write time."
    },
    "validity": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "description": "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
RecordsByKey schema
{
  "type": "object",
  "description": "`GET …/records?key=…`: the standardized records found, snapshot-pinned.",
  "required": [
    "items",
    "snapshot"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {},
      "description": "One object per found record: `record_key` plus the dataset entity\ntype's standardized columns, so the keys depend on that type."
    },
    "snapshot": {
      "type": "integer",
      "format": "int64"
    }
  }
}
ResolveCandidate
ResolveCandidate schema
{
  "type": "object",
  "description": "One candidate entity for an unsaved record.",
  "required": [
    "record_key",
    "match_probability",
    "confidence",
    "band",
    "evidence"
  ],
  "properties": {
    "band": {
      "type": "string",
      "description": "Which band the score falls in under the org's thresholds:\n`auto_merge` / `review` / `reject`."
    },
    "confidence": {
      "type": "integer",
      "format": "int64",
      "description": "The score as the product shows it: the 1–100 projection's display\ninteger (`dedupe_core::confidence`), so a caller rendering this never\nmaps the probability itself."
    },
    "entity_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "The entity that record currently belongs to, when it belongs to one. A\nrecord that has never been through reconcile has no entity yet, and\nsaying `null` is more honest than inventing one."
    },
    "evidence": {
      "description": "Per-comparison evidence behind the score (the waterfall the review queue shows), keyed by each comparison's\noutput column `<c>`: `gamma_<c>` is the comparison level the pair\nreached, `mw_<c>` that level's match weight (log2 Bayes factor),\n`mw_tf_adj_<c>` the term-frequency adjustment (only on comparisons with\nterm frequencies), and `match_weight` the pair's total. The prefixes are\na fixed contract: a model declaring others is refused at upload."
    },
    "match_probability": {
      "type": "number",
      "format": "double"
    },
    "record_key": {
      "type": "string",
      "description": "The record the payload matched."
    }
  }
}
ResolveResult
ResolveResult schema
{
  "type": "object",
  "description": "What resolving an unsaved record returned.",
  "required": [
    "candidates",
    "decision",
    "snapshot"
  ],
  "properties": {
    "candidates": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ResolveCandidate"
      }
    },
    "decision": {
      "type": "string",
      "description": "The single value a form or an ingestion pipeline branches on: the best\ncandidate's band (`auto_merge` / `review`), `reject` when there are none,\nor `ambiguous` when candidates in two or more different entities each\nclear `auto_merge` — the record would merge into either, so no one\nentity is the answer and a person should decide."
    },
    "snapshot": {
      "type": "integer",
      "format": "int64",
      "description": "The lake snapshot the corpus was read at, so a caller can tell whether it\nresolved against fresh data."
    }
  }
}
ResumeAccepted
ResumeAccepted schema
{
  "type": "object",
  "description": "A resumed job, requeued: the body of `POST …/jobs/{job_id}/resume`.",
  "required": [
    "job_id",
    "state"
  ],
  "properties": {
    "job_id": {
      "type": "string"
    },
    "state": {
      "type": "string"
    }
  }
}
ReviewItem
ReviewItem schema
{
  "type": "object",
  "description": "One review-queue item: the stored row plus the shipped `confidence`.\n\nSpelled out rather than flattened from the generated `PageRow`/`ByIdRow`:\nthose names repeat in every entity's `read` module, so registering them\nwould collide, and the `From` impls destructure each row exhaustively, so a\ncolumn added to the statement fails to compile here instead of silently\nleaving the wire.",
  "required": [
    "id",
    "subject_type",
    "reason",
    "status",
    "first_seen_run_id",
    "last_seen_run_id"
  ],
  "properties": {
    "confidence": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "The display integer of `match_probability`; absent when it is null."
    },
    "entity_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "first_seen_run_id": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "last_seen_run_id": {
      "type": "string"
    },
    "match_probability": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "description": "Null for a structural escalation, which is not a scored pair."
    },
    "reason": {
      "type": "string"
    },
    "rec_a_key": {
      "type": [
        "string",
        "null"
      ]
    },
    "rec_b_key": {
      "type": [
        "string",
        "null"
      ]
    },
    "resolved_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "Naive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339."
    },
    "resolved_by": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string"
    },
    "subject_type": {
      "type": "string",
      "description": "`pair` for a record-pair review, `entity` for an entity-subject one."
    },
    "waterfall": {}
  }
}
ReviewMergeGroup
ReviewMergeGroup schema
{
  "type": "object",
  "description": "`GET …/reviews/{review_id}/merge-group`: the union of both sides' entities.",
  "required": [
    "items",
    "total",
    "snapshot"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {},
      "description": "Records-by-key items (each record's values, keyed by the dataset's\nentity type), each stamped with the `entity_id` it belongs to."
    },
    "snapshot": {
      "type": "integer",
      "format": "int64"
    },
    "total": {
      "type": "integer",
      "description": "The union's size before the key cap truncated `items`.",
      "minimum": 0
    }
  }
}
ReviewPage
ReviewPage schema
{
  "type": "object",
  "description": "`GET …/reviews`: one keyset page of the review queue.",
  "required": [
    "items",
    "snapshot",
    "unscored_hidden"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ReviewItem"
      }
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    },
    "snapshot": {
      "type": "integer",
      "format": "int64"
    },
    "unscored_hidden": {
      "type": "integer",
      "format": "int64",
      "description": "Open unscored escalations a probability band hid (0 with no band)."
    }
  }
}
RunEventItem
RunEventItem schema
{
  "type": "object",
  "description": "One entity event a run emitted.",
  "required": [
    "id",
    "seq",
    "run_id",
    "entity_id",
    "event_type",
    "occurred_at"
  ],
  "properties": {
    "details": {},
    "entity_id": {
      "type": "string"
    },
    "event_type": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "occurred_at": {
      "type": "string",
      "description": "Naive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339."
    },
    "run_id": {
      "type": "string"
    },
    "seq": {
      "type": "integer",
      "format": "int64",
      "description": "The run-local order; the page cursor."
    }
  }
}
RunEventPage
RunEventPage schema
{
  "type": "object",
  "description": "`GET …/runs/{run_id}/entity-events`: one keyset page of a run's events.",
  "required": [
    "items",
    "run_id",
    "snapshot"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/RunEventItem"
      }
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    },
    "run_id": {
      "type": "string"
    },
    "snapshot": {
      "type": "integer",
      "format": "int64"
    }
  }
}
RunItem
RunItem schema
{
  "type": "object",
  "description": "One pipeline run in the run ledger, newest first.",
  "required": [
    "id",
    "mode",
    "status",
    "started_at",
    "config_hash"
  ],
  "properties": {
    "auto_merged_pairs": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "Pairs this run scored at or above the auto-merge threshold. Absent\nwhen the dataset has no readable config, so no count is reported\nagainst the wrong threshold.",
      "minimum": 0
    },
    "config_hash": {
      "type": "string"
    },
    "ended_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "id": {
      "type": "string"
    },
    "mode": {
      "type": "string",
      "description": "`full`, `incremental`, `correct`, …"
    },
    "model_version": {
      "type": [
        "string",
        "null"
      ]
    },
    "rebuild_reason": {
      "type": [
        "string",
        "null"
      ]
    },
    "snapshot": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "The lake snapshot holding this run's results: pass it as `snapshot` to\na result read to read THIS run's output after a newer run has moved\nthe lake. Null while the run is unfinished, and for runs finished\nbefore #1229, which never recorded one."
    },
    "started_at": {
      "type": "string",
      "description": "Naive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339."
    },
    "status": {
      "type": "string"
    },
    "tf_snapshot_id": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}
S3IngestCursor
S3IngestCursor schema
{
  "type": "object",
  "description": "What the auto-ingest poller has already read, one row per (org, source). The poller runs on every dispatcher tick and the newest object under a prefix stays the newest until a new one arrives, so without this row the same CSV would be re-ingested every few seconds forever — an unbounded run loop over the tenant's own lake. An upsert rather than a log: the question it answers is 'what is already in', not 'what has ever been in', and the audit log already answers the second.",
  "required": [
    "id",
    "org_id",
    "dataset_id",
    "source",
    "object_key",
    "size_bytes",
    "delivery_id",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "When this source was first auto-ingested."
    },
    "dataset_id": {
      "type": "string",
      "description": "The dataset the polled source lands in."
    },
    "delivery_id": {
      "type": "string",
      "description": "The delivery this object became, tying the cursor to the audit row and the run it enqueued."
    },
    "etag": {
      "type": [
        "string",
        "null"
      ],
      "description": "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": {
      "type": "string",
      "description": "UUIDv7, minted by the application."
    },
    "object_key": {
      "type": "string",
      "description": "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": {
      "type": "string",
      "description": "The tenant whose prefix was polled; every read is scoped by it."
    },
    "size_bytes": {
      "type": "integer",
      "format": "int64",
      "description": "The object's size at ingest, so a later shrink is visible as one."
    },
    "source": {
      "type": "string",
      "description": "The config source this object landed as — the first path segment under the tenant's prefix."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "When it was last auto-ingested."
    }
  }
}
SalesforceConnectionItem
SalesforceConnectionItem schema
{
  "type": "object",
  "description": "One Salesforce connection, without its credentials.",
  "required": [
    "id",
    "name",
    "instance_url",
    "auth_kind",
    "api_version",
    "active"
  ],
  "properties": {
    "active": {
      "type": "boolean"
    },
    "api_version": {
      "type": "string"
    },
    "auth_kind": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "instance_url": {
      "type": "string"
    },
    "name": {
      "type": "string"
    }
  }
}
Schedule
Schedule schema
{
  "type": "object",
  "description": "A recurring job schedule for a tenant: its kind, cron and source.",
  "required": [
    "id",
    "org_id",
    "dataset_id",
    "kind",
    "params",
    "cron",
    "enabled",
    "source",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the schedule was created."
    },
    "cron": {
      "type": "string",
      "description": "The cron expression."
    },
    "dataset_id": {
      "type": "string",
      "description": "The dataset this schedule enqueues for."
    },
    "enabled": {
      "type": "boolean",
      "description": "Whether the schedule is active."
    },
    "id": {
      "type": "string",
      "description": "The schedule's unique id."
    },
    "kind": {
      "type": "string",
      "description": "The job kind the schedule enqueues."
    },
    "last_enqueued_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the schedule last enqueued a job."
    },
    "org_id": {
      "type": "string",
      "description": "The tenant this schedule runs for."
    },
    "params": {
      "description": "Kind-specific parameters."
    },
    "source": {
      "type": "string",
      "description": "What created the schedule (api, config:correction_pass, system:lake_maintain)."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Wall-clock last-write time (database default; advanced by mutations once the entity migrates)."
    }
  }
}
ScheduleCreated
ScheduleCreated schema
{
  "type": "object",
  "description": "`POST …/schedules`: the schedule just created.",
  "required": [
    "id",
    "kind",
    "cron"
  ],
  "properties": {
    "cron": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "kind": {
      "type": "string"
    }
  }
}
ScheduleItem
ScheduleItem schema
{
  "type": "object",
  "description": "One dataset schedule.",
  "required": [
    "id",
    "kind",
    "cron",
    "enabled",
    "source"
  ],
  "properties": {
    "cron": {
      "type": "string"
    },
    "enabled": {
      "type": "boolean"
    },
    "id": {
      "type": "string"
    },
    "kind": {
      "type": "string",
      "description": "The job kind it enqueues."
    },
    "last_enqueued_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "source": {
      "type": "string",
      "description": "`api` or `config`: a config-owned schedule is changed by publishing."
    }
  }
}
ScheduleToggled
ScheduleToggled schema
{
  "type": "object",
  "description": "`PATCH …/schedules/{schedule_id}`: the schedule's new enabled state.",
  "required": [
    "id",
    "enabled"
  ],
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "id": {
      "type": "string"
    }
  }
}
ScoredPair
ScoredPair schema
{
  "type": "object",
  "description": "One active pairwise score (`GET …/match-scores`): the pair, its probability\nand evidence, and the shipped `confidence` (#1234). The same columns as an\n[`UncertainPair`], read by a different statement.",
  "required": [
    "rec_a_key",
    "rec_b_key",
    "match_probability",
    "model_version",
    "evidence",
    "run_id",
    "scored_at",
    "confidence"
  ],
  "properties": {
    "confidence": {
      "type": "integer",
      "format": "int64"
    },
    "evidence": {
      "description": "Per-comparison evidence behind the score, keyed by each comparison's\noutput column `<c>`: `gamma_<c>` is the comparison level the pair\nreached, `mw_<c>` that level's match weight (log2 Bayes factor),\n`mw_tf_adj_<c>` the term-frequency adjustment (only on comparisons with\nterm frequencies), and `match_weight` the pair's total. The prefixes are\na fixed contract: a model declaring others is refused at upload."
    },
    "match_probability": {
      "type": "number",
      "format": "double"
    },
    "model_version": {
      "type": "string"
    },
    "rec_a_key": {
      "type": "string"
    },
    "rec_b_key": {
      "type": "string"
    },
    "run_id": {
      "type": "string"
    },
    "scored_at": {
      "type": "string",
      "description": "Naive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339."
    }
  }
}
SourceInsight
SourceInsight schema
{
  "type": "object",
  "description": "One source's share of a run's duplication.",
  "required": [
    "run_id",
    "source_system",
    "captured_at",
    "records",
    "duplicate_records",
    "contributed_groups"
  ],
  "properties": {
    "captured_at": {
      "type": "string",
      "description": "chrono's display form (`YYYY-MM-DD HH:MM:SS[.f] UTC`)."
    },
    "contributed_groups": {
      "type": "integer",
      "format": "int64"
    },
    "duplicate_rate": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "description": "Null when the source contributed no records."
    },
    "duplicate_records": {
      "type": "integer",
      "format": "int64"
    },
    "records": {
      "type": "integer",
      "format": "int64"
    },
    "run_id": {
      "type": "string"
    },
    "source_system": {
      "type": "string"
    }
  }
}
SourceInsights
SourceInsights schema
{
  "type": "object",
  "description": "`GET …/insights/sources`: each source's share of one run's duplication.",
  "required": [
    "snapshot",
    "sources"
  ],
  "properties": {
    "run_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "The run reported on; null (with no sources) before any run retained one."
    },
    "snapshot": {
      "type": "integer",
      "format": "int64"
    },
    "sources": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/SourceInsight"
      }
    }
  }
}
Staged
Staged schema
{
  "type": "object",
  "description": "One staged steward correction: recorded, not yet applied to the lake.",
  "required": [
    "status",
    "action_id",
    "pending_until_next_reconcile"
  ],
  "properties": {
    "action_id": {
      "type": "string"
    },
    "pending_until_next_reconcile": {
      "type": "boolean",
      "description": "Always false: the correction lands on the next apply, not the next run."
    },
    "status": {
      "type": "string",
      "description": "Always `staged`."
    }
  }
}
StagedApplied
StagedApplied schema
{
  "type": "object",
  "description": "One staged correction handed to an `apply_corrections` job (`apply_now`).",
  "required": [
    "status",
    "action_id",
    "pending_until_next_reconcile",
    "apply_job"
  ],
  "properties": {
    "action_id": {
      "type": "string"
    },
    "apply_job": {
      "type": "string"
    },
    "pending_until_next_reconcile": {
      "type": "boolean",
      "description": "Always false."
    },
    "status": {
      "type": "string",
      "description": "Always `staged`: the job, not this request, applies it."
    }
  }
}
StagedBatch
StagedBatch schema
{
  "type": "object",
  "description": "Several staged corrections, waiting for an apply.",
  "required": [
    "status",
    "action_ids"
  ],
  "properties": {
    "action_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "status": {
      "type": "string",
      "description": "Always `staged`."
    }
  }
}
StagedBatchApplied
StagedBatchApplied schema
{
  "type": "object",
  "description": "Several staged corrections handed to an `apply_corrections` job\n(`apply_now`). Still `staged`: the job, not this request, applies them.",
  "required": [
    "status",
    "action_ids",
    "apply_job"
  ],
  "properties": {
    "action_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "apply_job": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "description": "Always `staged`."
    }
  }
}
StagedCount
StagedCount schema
{
  "type": "object",
  "description": "`GET …/staged`: how many steward actions await the next reconcile.",
  "required": [
    "pending_count"
  ],
  "properties": {
    "pending_count": {
      "type": "integer",
      "format": "int64"
    }
  }
}
StagedRecords
StagedRecords schema
{
  "type": "object",
  "description": "The staged-action response envelope (`_steward_action`): always `staged`\nhere, so `pending_until_next_reconcile` is false (immediate apply is the\ninfra-bound writer-lock path).\nThe staged response for a call that staged SEVERAL actions (O6).\n\nA sibling of [`staged_response`] rather than a widening of it: three other\nhandlers stage exactly one action, and their response shape is read by the\nfrontend and pinned by tests. `action_id` is carried for the callers that\npredate the list — it is the first of `action_ids`, which is the whole\ntruth.\nPer-record steward actions, staged and waiting for an apply.",
  "required": [
    "status",
    "action_ids",
    "count",
    "pending_until_next_reconcile"
  ],
  "properties": {
    "action_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "The first of `action_ids`: the single-record callers' handle."
    },
    "action_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "count": {
      "type": "integer",
      "description": "How many records the call named.",
      "minimum": 0
    },
    "pending_until_next_reconcile": {
      "type": "boolean",
      "description": "Always false: the actions land on the next apply."
    },
    "status": {
      "type": "string",
      "description": "Always `staged`."
    }
  }
}
StagedRecordsApplied
StagedRecordsApplied schema
{
  "type": "object",
  "description": "Per-record steward actions handed to ONE `apply_corrections` job.",
  "required": [
    "status",
    "action_ids",
    "count",
    "pending_until_next_reconcile",
    "apply_job"
  ],
  "properties": {
    "action_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "action_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "apply_job": {
      "type": "string"
    },
    "count": {
      "type": "integer",
      "minimum": 0
    },
    "pending_until_next_reconcile": {
      "type": "boolean"
    },
    "status": {
      "type": "string",
      "description": "Always `staged`: the job, not this request, applies them."
    }
  }
}
StagedStewardAction
StagedStewardAction schema
{
  "type": "object",
  "description": "A steward action staged for review/apply: its payload, state and outcome.",
  "required": [
    "id",
    "org_id",
    "dataset_id",
    "action",
    "state",
    "created_by",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "action": {
      "description": "The action payload."
    },
    "applied_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the action was applied, if it has been."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the action was staged."
    },
    "created_by": {
      "type": "string",
      "description": "Principal that staged the action."
    },
    "dataset_id": {
      "type": "string",
      "description": "The dataset whose lake this action drains into."
    },
    "error": {
      "type": [
        "string",
        "null"
      ],
      "description": "The failure reason, if the action failed."
    },
    "id": {
      "type": "string",
      "description": "The staged action's unique id."
    },
    "org_id": {
      "type": "string",
      "description": "The tenant the action applies to."
    },
    "state": {
      "type": "string",
      "description": "Whether the action is pending, applied or failed."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Wall-clock last-write time (database default; advanced by mutations once the entity migrates)."
    }
  }
}
Tag
Tag schema
{
  "type": "object",
  "description": "A tenant's own label for entities and review groups: the vocabulary a steward sorts work by.",
  "required": [
    "id",
    "org_id",
    "name",
    "kind",
    "active",
    "created_by",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "active": {
      "type": "boolean",
      "description": "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": {
      "type": [
        "string",
        "null"
      ],
      "description": "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": {
      "type": "string",
      "format": "date-time",
      "description": "When the tag was created."
    },
    "created_by": {
      "type": "string",
      "description": "The actor that created the tag."
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "What the tag means, for the steward who inherits it. Null when nobody wrote one."
    },
    "id": {
      "type": "string",
      "description": "The tag's unique id (UUIDv7, minted by the application)."
    },
    "kind": {
      "type": "string",
      "description": "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": {
      "type": "string",
      "description": "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": {
      "type": "string",
      "description": "The tenant that owns the tag. A tag is never shared across tenants: it names one tenant's own workflow."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Wall-clock last-write time."
    }
  }
}
TagApplied
TagApplied schema
{
  "type": "object",
  "description": "`POST …/tags/{tag_id}/apply`: always `true` (a missing tag is a 404).",
  "required": [
    "applied"
  ],
  "properties": {
    "applied": {
      "type": "boolean"
    }
  }
}
TagList
TagList schema
{
  "type": "object",
  "description": "`GET /v1/orgs/{org}/tags`: the org's tags (or those on one subject).",
  "required": [
    "tags"
  ],
  "properties": {
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Tag"
      }
    }
  }
}
TagRemoved
TagRemoved schema
{
  "type": "object",
  "description": "`POST …/tags/{tag_id}/unapply`: always `true` (an absent tagging is a 404).",
  "required": [
    "removed"
  ],
  "properties": {
    "removed": {
      "type": "boolean"
    }
  }
}
TagRetired
TagRetired schema
{
  "type": "object",
  "description": "`DELETE /v1/orgs/{org}/tags/{tag_id}`: always `true` (unknown is a 404).",
  "required": [
    "retired"
  ],
  "properties": {
    "retired": {
      "type": "boolean"
    }
  }
}
TagSubjects
TagSubjects schema
{
  "type": "object",
  "description": "`GET …/tags/{tag_id}/subjects`: what one tag is applied to.",
  "required": [
    "subjects"
  ],
  "properties": {
    "subjects": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Tagging"
      }
    }
  }
}
Tagging
Tagging schema
{
  "type": "object",
  "description": "One tag applied to one subject: the attachment, kept apart from the tag so retiring a tag does not rewrite what it was applied to.",
  "required": [
    "id",
    "org_id",
    "dataset_id",
    "tag_id",
    "subject_type",
    "subject_id",
    "created_by",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the tag was applied."
    },
    "created_by": {
      "type": "string",
      "description": "The actor that applied the tag. Kept because tagging is how work is assigned, so who claimed it matters."
    },
    "dataset_id": {
      "type": "string",
      "description": "The dataset whose subject this tag is applied to — subject ids are lake-local."
    },
    "id": {
      "type": "string",
      "description": "The tagging's unique id (UUIDv7, minted by the application)."
    },
    "org_id": {
      "type": "string",
      "description": "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": {
      "type": "string",
      "description": "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": {
      "type": "string",
      "description": "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": {
      "type": "string",
      "description": "The tag applied."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Wall-clock last-write time."
    }
  }
}
TaggingList
TaggingList schema
{
  "type": "object",
  "description": "`GET …/taggings`: every tagging in a dataset, capped.",
  "required": [
    "taggings",
    "truncated"
  ],
  "properties": {
    "taggings": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Tagging"
      }
    },
    "truncated": {
      "type": "boolean",
      "description": "True when the cap cut the list: the caller has not seen every tagging."
    }
  }
}
TaskInstance
TaskInstance schema
{
  "type": "object",
  "description": "One try of one task of one job (Airflow's task_instance shape): the live try has live = TRUE, archived tries have live NULL and stay in the table as history (batch-orchestration-design §4.2).",
  "required": [
    "id",
    "org_id",
    "job_id",
    "task_id",
    "seq",
    "try_number",
    "kind",
    "state",
    "trigger_rule",
    "upstream",
    "teardown",
    "max_tries",
    "launches",
    "max_launches",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "archived_reason": {
      "type": [
        "string",
        "null"
      ],
      "description": "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": {
      "description": "Progress counters, replaced on every heartbeat and at finish."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Row created."
    },
    "dataset_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "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": {
      "type": [
        "string",
        "null"
      ],
      "description": "er-errors' seven classes plus the executor's four."
    },
    "error_detail": {
      "type": [
        "string",
        "null"
      ],
      "description": "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": {
      "type": [
        "string",
        "null"
      ],
      "description": "Class of the OOMKilled predecessor try, so a mixed-class run is legible."
    },
    "exit_code": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "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": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Terminal state recorded."
    },
    "heartbeat_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Last heartbeat."
    },
    "id": {
      "type": "string",
      "description": "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": {
      "type": [
        "string",
        "null"
      ],
      "description": "Image digest this try ran, so a deploy mid-run is legible."
    },
    "input": {
      "description": "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": {
      "type": "string",
      "description": "The run (jobs.id == run_id)."
    },
    "k8s_job_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "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": {
      "type": "string",
      "description": "Where the body runs: a Kubernetes Job, or a dispatcher-local body under the control-task contract (§3.6)."
    },
    "launches": {
      "type": "integer",
      "format": "int64",
      "description": "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": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "TRUE on the live try, NULL once archived (NULLs are distinct, so the partial unique index admits one live row per coordinate)."
    },
    "max_launches": {
      "type": "integer",
      "format": "int64",
      "description": "Infrastructure budget per try."
    },
    "max_tries": {
      "type": "integer",
      "format": "int64",
      "description": "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": {
      "type": [
        "string",
        "null"
      ],
      "description": "Operator override recorded by clear on a restarting row; complete_restart applies it to the successor."
    },
    "node_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Node the pod landed on."
    },
    "not_before": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Backoff deadline for up_for_retry; a short capacity wait for scheduled."
    },
    "org_id": {
      "type": "string",
      "description": "Tenant."
    },
    "outcome": {
      "type": [
        "string",
        "null"
      ],
      "description": "Success flavour; no_op is exit 10."
    },
    "output": {
      "description": "The serialized DurableOutput (a LakeRef or Plan), written at finish."
    },
    "owner_epoch": {
      "type": [
        "string",
        "null"
      ],
      "description": "The dispatcher process epoch (UUIDv7 minted at start) that claimed the launch; adoption rewrites it."
    },
    "pod_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pod that ran this try, from the pod's bound token on first contact; cross-checked by the watch."
    },
    "pod_uid": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pod UID, recorded from the token's claim; the watch confirms it."
    },
    "queued_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Launch claimed (write-ahead, before the create)."
    },
    "resource_class": {
      "type": [
        "string",
        "null"
      ],
      "description": "Class this try runs at; NULL for a control task. OOM escalation writes a larger class on the next try."
    },
    "scheduled_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Readiness fired."
    },
    "segment": {
      "type": [
        "string",
        "null"
      ],
      "description": "Fusion segment id resolved at planning; NULL for a task that runs alone."
    },
    "seq": {
      "type": "integer",
      "format": "int64",
      "description": "Topological position from assembly; display and claim order."
    },
    "snapshot_end": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "Lake snapshot of the task's last commit: the durable reference downstream pins to."
    },
    "snapshot_start": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "Lake snapshot before the task's first commit."
    },
    "started_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Pod reported start."
    },
    "state": {
      "type": "string",
      "description": "Closed state set (§5). restarting and canceling are the write-ahead markers for clear and cancel of a live row."
    },
    "task_id": {
      "type": "string",
      "description": "Task::NAME, stable across renames."
    },
    "teardown": {
      "type": "boolean",
      "description": "Claimable while the job is canceling (finish)."
    },
    "termination_reason": {
      "type": [
        "string",
        "null"
      ],
      "description": "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": {
      "type": [
        "string",
        "null"
      ],
      "description": "traceparent of this try's span, a child of jobs.trace_context."
    },
    "trigger_rule": {
      "type": "string",
      "description": "Copied from the compiled graph at planning so the UI can explain propagation; the graph is the authority."
    },
    "try_number": {
      "type": "integer",
      "format": "int64",
      "description": "1-based try. A new row per try."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Row updated."
    },
    "upstream": {
      "description": "Upstream task_ids, a UI projection of the compiled edges."
    }
  }
}
TaskList
TaskList schema
{
  "type": "object",
  "description": "Every try of every task of one job: the body of `GET …/jobs/{job_id}/tasks`.",
  "required": [
    "tasks"
  ],
  "properties": {
    "tasks": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/TaskInstance"
      }
    }
  }
}
UncertainPair
UncertainPair schema
{
  "type": "object",
  "description": "One pair the labelling session should look at next: the active score plus\nthe shipped `confidence` (always present — every uncertain pair is scored).",
  "required": [
    "rec_a_key",
    "rec_b_key",
    "match_probability",
    "model_version",
    "evidence",
    "run_id",
    "scored_at",
    "confidence"
  ],
  "properties": {
    "confidence": {
      "type": "integer",
      "format": "int64"
    },
    "evidence": {
      "description": "Per-comparison evidence behind the score, keyed by each comparison's\noutput column `<c>`: `gamma_<c>` is the comparison level the pair\nreached, `mw_<c>` that level's match weight (log2 Bayes factor),\n`mw_tf_adj_<c>` the term-frequency adjustment (only on comparisons with\nterm frequencies), and `match_weight` the pair's total. The prefixes are\na fixed contract: a model declaring others is refused at upload."
    },
    "match_probability": {
      "type": "number",
      "format": "double"
    },
    "model_version": {
      "type": "string"
    },
    "rec_a_key": {
      "type": "string"
    },
    "rec_b_key": {
      "type": "string"
    },
    "run_id": {
      "type": "string"
    },
    "scored_at": {
      "type": "string",
      "description": "Naive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339."
    }
  }
}
UnmatchApplied
UnmatchApplied schema
{
  "type": "object",
  "description": "A record unmatch staged and handed to an `apply_corrections` job.",
  "required": [
    "status",
    "entity_id",
    "pairs",
    "action_ids",
    "apply_job"
  ],
  "properties": {
    "action_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "apply_job": {
      "type": "string"
    },
    "entity_id": {
      "type": "string"
    },
    "pairs": {
      "type": "integer",
      "minimum": 0
    },
    "status": {
      "type": "string",
      "description": "Always `applied`."
    }
  }
}
UnmatchStaged
UnmatchStaged schema
{
  "type": "object",
  "description": "A record unmatch staged as never-rules against its entity.",
  "required": [
    "status",
    "entity_id",
    "pairs",
    "action_ids",
    "pending_until_next_reconcile"
  ],
  "properties": {
    "action_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "entity_id": {
      "type": "string"
    },
    "pairs": {
      "type": "integer",
      "minimum": 0
    },
    "pending_until_next_reconcile": {
      "type": "boolean",
      "description": "Always true."
    },
    "status": {
      "type": "string",
      "description": "Always `staged`."
    }
  }
}
UnmergeApplied
UnmergeApplied schema
{
  "type": "object",
  "description": "An unmerge staged and handed to an `apply_corrections` job.",
  "required": [
    "status",
    "pairs",
    "action_ids",
    "apply_job"
  ],
  "properties": {
    "action_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "apply_job": {
      "type": "string"
    },
    "pairs": {
      "type": "integer",
      "minimum": 0
    },
    "status": {
      "type": "string",
      "description": "Always `applied`."
    }
  }
}
UnmergeStaged
UnmergeStaged schema
{
  "type": "object",
  "description": "An unmerge staged as never-rules, waiting for the next reconcile.",
  "required": [
    "status",
    "pairs",
    "action_ids",
    "pending_until_next_reconcile"
  ],
  "properties": {
    "action_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "pairs": {
      "type": "integer",
      "description": "How many never-rules were staged (one per peeled record).",
      "minimum": 0
    },
    "pending_until_next_reconcile": {
      "type": "boolean",
      "description": "Always true."
    },
    "status": {
      "type": "string",
      "description": "Always `staged`."
    }
  }
}
UploadAborted
UploadAborted schema
{
  "type": "object",
  "description": "An aborted upload.",
  "required": [
    "upload_id",
    "state"
  ],
  "properties": {
    "state": {
      "type": "string"
    },
    "upload_id": {
      "type": "string"
    }
  }
}
UploadPart
UploadPart schema
{
  "type": "object",
  "description": "One stored part.",
  "required": [
    "part",
    "bytes",
    "sha256"
  ],
  "properties": {
    "bytes": {
      "type": "integer",
      "format": "int64",
      "minimum": 0
    },
    "part": {
      "type": "integer",
      "format": "int64",
      "minimum": 0
    },
    "sha256": {
      "type": "string",
      "description": "The part's SHA-256 as received — compare with your copy."
    }
  }
}
UploadSession
UploadSession schema
{
  "type": "object",
  "description": "An upload session: where its parts go and which have arrived.",
  "required": [
    "upload_id",
    "source",
    "bytes",
    "sha256",
    "part_size",
    "part_count",
    "part_url",
    "parts_received",
    "expires_at"
  ],
  "properties": {
    "bytes": {
      "type": "integer",
      "format": "int64",
      "minimum": 0
    },
    "expires_at": {
      "type": "string",
      "description": "RFC 3339. Past it every call but abort is a 410."
    },
    "part_count": {
      "type": "integer",
      "format": "int64",
      "minimum": 0
    },
    "part_size": {
      "type": "integer",
      "format": "int64",
      "description": "Every part but the last is exactly this many bytes.",
      "minimum": 0
    },
    "part_url": {
      "type": "string",
      "description": "PUT each part's bytes here, replacing `{part}` with 1..=part_count."
    },
    "parts_received": {
      "type": "array",
      "items": {
        "type": "integer",
        "format": "int64",
        "minimum": 0
      },
      "description": "The parts already stored, ascending: a resuming client sends the rest."
    },
    "sha256": {
      "type": "string"
    },
    "source": {
      "type": "string"
    },
    "upload_id": {
      "type": "string"
    }
  }
}
UpsertPolicyList
UpsertPolicyList schema
{
  "type": "object",
  "description": "The upsert policies in force.",
  "required": [
    "items"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/UpsertPolicyView"
      }
    }
  }
}
UpsertPolicyView
UpsertPolicyView schema
{
  "type": "object",
  "description": "An upsert policy revision.",
  "required": [
    "id",
    "connection_id",
    "object",
    "external_id_field",
    "field_mapping",
    "writeback_allowlist",
    "sources",
    "created_by",
    "created_at"
  ],
  "properties": {
    "connection_id": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "description": "RFC 3339."
    },
    "created_by": {
      "type": "string"
    },
    "external_id_field": {
      "type": "string"
    },
    "field_mapping": {
      "type": "object"
    },
    "id": {
      "type": "string",
      "description": "The revision an upsert preview binds."
    },
    "object": {
      "type": "string"
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "writeback_allowlist": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}
UpsertPreviewPage
UpsertPreviewPage schema
{
  "type": "object",
  "description": "A page of upsert previews.",
  "required": [
    "items"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/UpsertPreviewView"
      }
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pass as `cursor` for the next page; null on the last."
    }
  }
}
UpsertPreviewView
UpsertPreviewView schema
{
  "type": "object",
  "description": "A proposed upsert.",
  "required": [
    "id",
    "connection_id",
    "object",
    "entity_id",
    "external_id_field",
    "external_id_value",
    "fields",
    "fingerprint",
    "status",
    "policy_revision",
    "created_at"
  ],
  "properties": {
    "apply_detail": {
      "type": [
        "string",
        "null"
      ]
    },
    "apply_status": {
      "type": [
        "string",
        "null"
      ],
      "description": "The apply, once begun: `applying`, `created`, `updated`, `failed` or `skipped_stale`."
    },
    "connection_id": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "description": "RFC 3339."
    },
    "decided_by": {
      "type": [
        "string",
        "null"
      ]
    },
    "entity_id": {
      "type": "string"
    },
    "external_id_field": {
      "type": "string"
    },
    "external_id_value": {
      "type": "string"
    },
    "fields": {
      "type": "object",
      "description": "Provider field → value to write."
    },
    "fingerprint": {
      "type": "string",
      "description": "Name it to approve or reject."
    },
    "id": {
      "type": "string"
    },
    "object": {
      "type": "string"
    },
    "policy_revision": {
      "type": "string",
      "description": "The upsert policy revision it was built under."
    },
    "sf_record_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "The Salesforce id written, once applied."
    },
    "status": {
      "type": "string",
      "description": "`planned`, `approved`, `rejected` or `superseded`."
    }
  }
}
Webhook
Webhook schema
{
  "type": "object",
  "description": "A tenant webhook endpoint: its URL, subscribed events and signing secret.",
  "required": [
    "id",
    "org_id",
    "url",
    "events",
    "active",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "active": {
      "type": "boolean",
      "description": "Whether the webhook is active."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the webhook was registered."
    },
    "dataset_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Optional dataset filter: NULL subscribes to every dataset's events."
    },
    "events": {
      "description": "The subscribed event types."
    },
    "id": {
      "type": "string",
      "description": "The webhook's unique id."
    },
    "org_id": {
      "type": "string",
      "description": "The tenant that owns the webhook."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Wall-clock last-write time (database default; advanced by mutations once the entity migrates)."
    },
    "url": {
      "type": "string",
      "description": "The delivery URL."
    }
  }
}
WebhookCreated
WebhookCreated schema
{
  "type": "object",
  "description": "`POST /v1/orgs/{org}/webhooks`: the webhook, with its signing secret shown\nonce.",
  "required": [
    "id",
    "url",
    "events",
    "secret",
    "active"
  ],
  "properties": {
    "active": {
      "type": "boolean",
      "description": "Always true."
    },
    "events": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "id": {
      "type": "string"
    },
    "secret": {
      "type": "string",
      "description": "The HMAC-SHA256 key for `X-ER-Signature`; not returned again."
    },
    "url": {
      "type": "string"
    }
  }
}
WebhookDelivery
WebhookDelivery schema
{
  "type": "object",
  "description": "One attempt-tracked delivery of one event to one subscriber. The event is recorded here BEFORE any network call, so a subscriber that is briefly unreachable gets the event late instead of never.",
  "required": [
    "id",
    "org_id",
    "webhook_id",
    "event_type",
    "payload",
    "state",
    "attempt",
    "max_attempts",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "attempt": {
      "type": "integer",
      "format": "int64",
      "description": "Attempts handed out. Counted when claimed, not when reported, so a drainer that dies still consumes one."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the event was recorded, which is before any delivery was attempted."
    },
    "dataset_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "The dataset the delivered event came from, when it has one (provenance)."
    },
    "delivered_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When a 2xx was received; NULL unless state is delivered."
    },
    "error": {
      "type": [
        "string",
        "null"
      ],
      "description": "Why the last attempt did not deliver: a transport error, or the outbound-URL guard's refusal."
    },
    "event_type": {
      "type": "string",
      "description": "The catalogued event (webhook::EVENT_CATALOG), e.g. job.succeeded."
    },
    "id": {
      "type": "string",
      "description": "UUIDv7, minted by the application."
    },
    "max_attempts": {
      "type": "integer",
      "format": "int64",
      "description": "Attempts before giving up. Six with the backoff below spans about ten minutes."
    },
    "next_attempt_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When this becomes claimable. NULL means immediately; set to a backoff in the future after a retryable failure."
    },
    "org_id": {
      "type": "string",
      "description": "The tenant whose subscriber this is for; every read is scoped by it."
    },
    "payload": {
      "description": "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": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "The subscriber's HTTP status, when the POST completed at all."
    },
    "state": {
      "type": "string",
      "description": "pending until a drain settles it; delivered on a 2xx; failed when retries are exhausted or the destination is refused outright."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Last write."
    },
    "webhook_id": {
      "type": "string",
      "description": "The subscription being delivered to."
    }
  }
}
WebhookDeliveryList
WebhookDeliveryList schema
{
  "type": "object",
  "description": "`GET /v1/orgs/{org}/webhooks/deliveries`: recent delivery attempts.",
  "required": [
    "deliveries"
  ],
  "properties": {
    "deliveries": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/WebhookDelivery"
      }
    }
  }
}
WebhookEventCatalog
WebhookEventCatalog schema
{
  "type": "object",
  "description": "`GET /v1/orgs/{org}/webhooks/events`: every event a webhook can subscribe to.",
  "required": [
    "events"
  ],
  "properties": {
    "events": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/WebhookEventItem"
      }
    }
  }
}
WebhookEventItem
WebhookEventItem schema
{
  "type": "object",
  "description": "One subscribable event.",
  "required": [
    "event",
    "description"
  ],
  "properties": {
    "description": {
      "type": "string"
    },
    "event": {
      "type": "string"
    }
  }
}
WebhookItem
WebhookItem schema
{
  "type": "object",
  "description": "One active webhook, without its secret.",
  "required": [
    "id",
    "url",
    "events",
    "active"
  ],
  "properties": {
    "active": {
      "type": "boolean"
    },
    "events": {
      "description": "Subscribed event names; empty subscribes to all."
    },
    "id": {
      "type": "string"
    },
    "url": {
      "type": "string"
    }
  }
}
WorkOrder
WorkOrder schema
{
  "type": "object",
  "description": "`GET /v1/internal/attempts/{attempt_id}`: everything a remote attempt\nneeds to run its task, read once at pod start.",
  "required": [
    "org_id",
    "job_id",
    "run_id",
    "kind",
    "task_id",
    "try_number",
    "state",
    "trigger_rule",
    "max_tries",
    "params",
    "lineage",
    "lake_env",
    "models",
    "labels",
    "connection"
  ],
  "properties": {
    "connection": {
      "description": "Salesforce credentials and watermark for an extract task; null\notherwise."
    },
    "dataset_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "drop_root": {
      "type": [
        "string",
        "null"
      ]
    },
    "input": {},
    "job_id": {
      "type": "string"
    },
    "kind": {
      "type": "string"
    },
    "labels": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "description": "`(rec_a_key, rec_b_key)` verdict pairs, for a train task."
    },
    "lake_env": {
      "description": "The lake connection env the task opens."
    },
    "lineage": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The attempt's task chain, current first."
    },
    "max_tries": {
      "type": "integer",
      "format": "int64"
    },
    "models": {
      "type": "array",
      "items": {
        "type": "object"
      },
      "description": "The tenant's active models, for scoring tasks."
    },
    "org_id": {
      "type": "string"
    },
    "params": {},
    "resource_class": {
      "type": [
        "string",
        "null"
      ]
    },
    "run_id": {
      "type": "string"
    },
    "segment": {
      "type": [
        "string",
        "null"
      ]
    },
    "state": {
      "type": "string"
    },
    "structural_fingerprint": {
      "type": [
        "string",
        "null"
      ]
    },
    "task_id": {
      "type": "string"
    },
    "trigger_rule": {
      "type": "string"
    },
    "try_number": {
      "type": "integer",
      "format": "int64"
    }
  }
}
WorstRecord
WorstRecord schema
{
  "type": "object",
  "description": "One of the lowest-scoring records.",
  "required": [
    "record_key",
    "score",
    "completeness"
  ],
  "properties": {
    "completeness": {
      "type": "number",
      "format": "double"
    },
    "freshness": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "record_key": {
      "type": "string"
    },
    "score": {
      "type": "number",
      "format": "double"
    },
    "validity": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    }
  }
}
WritebackAuthorizationStarted
WritebackAuthorizationStarted schema
{
  "type": "object",
  "description": "A started delegated authorization.",
  "required": [
    "authorize_url",
    "expires_at"
  ],
  "properties": {
    "authorize_url": {
      "type": "string",
      "description": "Send the reviewer here; Salesforce returns them to `redirect_uri` with\n`code` and `state`."
    },
    "expires_at": {
      "type": "string",
      "description": "RFC 3339; complete before this."
    }
  }
}
WritebackAuthorizationView
WritebackAuthorizationView schema
{
  "type": "object",
  "description": "A connection's delegated authorization, without its tokens.",
  "required": [
    "status",
    "sf_org_id",
    "sf_user_id",
    "scopes",
    "allow_automatic",
    "authorized_by",
    "created_at"
  ],
  "properties": {
    "allow_automatic": {
      "type": "boolean"
    },
    "authorized_by": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "description": "RFC 3339."
    },
    "revoked_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "RFC 3339."
    },
    "revoked_reason": {
      "type": [
        "string",
        "null"
      ],
      "description": "`consent_withdrawn`, `replaced` or `requested`."
    },
    "scopes": {
      "type": "string"
    },
    "sf_org_id": {
      "type": "string"
    },
    "sf_user_id": {
      "type": "string",
      "description": "The Salesforce user writeback acts as."
    },
    "sf_username": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "description": "`active` or `revoked`."
    }
  }
}
WritebackPolicyList
WritebackPolicyList schema
{
  "type": "object",
  "description": "The active writeback policies of a dataset.",
  "required": [
    "items"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/WritebackPolicyView"
      }
    }
  }
}
WritebackPolicyView
WritebackPolicyView schema
{
  "type": "object",
  "description": "A writeback policy revision.",
  "required": [
    "id",
    "connection_id",
    "object",
    "election_policy",
    "writeback_allowlist",
    "field_mapping",
    "created_by",
    "created_at"
  ],
  "properties": {
    "connection_id": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "description": "RFC 3339."
    },
    "created_by": {
      "type": "string"
    },
    "election_policy": {
      "type": "string"
    },
    "field_mapping": {},
    "id": {
      "type": "string",
      "description": "The revision id a merge preview binds."
    },
    "object": {
      "type": "string"
    },
    "writeback_allowlist": {}
  }
}