Data Quality
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
POST | |
GET | |
GET | |
GET | |
GET | |
GET | |
GET | |
PATCH | |
GET | |
GET |
List all data quality checks
Every check in the project. Narrow it to one subject with subject_type and subject_uuid, or to one assertion with check_type.
Required API key scopes
query:readQuery parameters
- check_typestringOne of:
"accepted_values""custom_sql""freshness""not_null""relationships""row_count""unique" - limitinteger
- offsetinteger
- subject_typestringOne of:
"metric""posthog_table""table""view" - subject_uuidstring
Response
Example request
GET /api /projects /:project_id /data_quality_checksExample response
Status 200
Create data quality checks
Create a check on the table, view or metric named by subject_type and subject_uuid, or refine the one already carrying the same fingerprint. Re-creating a semantically identical check returns 200 and the existing row, never a duplicate.
Required API key scopes
query:readRequest parameters
- name
- descriptionstring
- subject_type
- subject_uuidstring
- column_namestring
- check_type
- configobject
- severity
- enabledboolean
- tagsarray
- created_source
- ai_modelstring
- confidencenumber | null
- reasoningstring
Response
Example request
POST /api /projects /:project_id /data_quality_checksExample response
Status 201
Retrieve data quality checks
Every check in the project: authoring, running, results, health, and schedules.
Required API key scopes
query:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /data_quality_checks /:idExample response
Status 200
Update data quality checks
Edit this check in place, including what it asserts (check_type, column_name, config). The subject it audits is fixed, and the check keeps its id, run history, latest status, and latest run time. A definition or name already held by another active check comes back as a field error, with nothing written.
Required API key scopes
query:readPath parameters
- idstring
Request parameters
- name
- descriptionstring
- column_namestring
- check_type
- configobject
- severity
- enabledboolean
- tagsarray
- created_source
- ai_modelstring
- confidencenumber | null
- reasoningstring
Response
Example request
PATCH /api /projects /:project_id /data_quality_checks /:idExample response
Status 200
Delete data quality checks
Every check in the project: authoring, running, results, health, and schedules.
Required API key scopes
query:readPath parameters
- idstring
Example request
DELETE /api /projects /:project_id /data_quality_checks /:idExample response
Status 204 No response body
Create data quality checks run
Run this check now. Returns the suite run to poll for the report.
Required API key scopes
query:readPath parameters
- idstring
Response
Example request
POST /api /projects /:project_id /data_quality_checks /:id /runExample response
Status 200
List all data quality checks runs
Recent run history for this check, newest first.
Required API key scopes
query:readPath parameters
- idstring
Example request
GET /api /projects /:project_id /data_quality_checks /:id /runsExample response
Status 200
List all data quality checks check types
The check types this project can author, with the JSON schema of each type's config. Pass subject_type to narrow it to the types that kind of subject supports.
Required API key scopes
query:readQuery parameters
- subject_typestringOne of:
"metric""posthog_table""table""view"
Example request
GET /api /projects /:project_id /data_quality_checks /check_typesExample response
Status 200
List all data quality checks health
Health rollup per subject, for every subject in the project that has checks. Narrow it to one subject with subject_type and subject_uuid.
Required API key scopes
query:readQuery parameters
- subject_typestringOne of:
"metric""posthog_table""table""view" - subject_uuidstring
Example request
GET /api /projects /:project_id /data_quality_checks /healthExample response
Status 200
List all data quality checks metric subjects
Every check in the project: authoring, running, results, health, and schedules.
Required API key scopes
data_catalog:readquery:readExample request
GET /api /projects /:project_id /data_quality_checks /metric_subjectsExample response
Status 200
Retrieve data quality checks output schema
Columns the subject's query returns, for authoring a check against them. Metrics only.
Required API key scopes
query:readQuery parameters
- subject_typestringOne of:
"metric""posthog_table""table""view" - subject_uuidstring
Response
Example request
GET /api /projects /:project_id /data_quality_checks /output_schemaExample response
Status 200
Retrieve data quality checks schedule
The schedule every enabled check on this subject runs on.
Required API key scopes
query:readQuery parameters
- subject_typestringOne of:
"metric""posthog_table""table""view" - subject_uuidstring
Response
Example request
GET /api /projects /:project_id /data_quality_checks /scheduleExample response
Status 200
Update data quality checks schedule
Change how often this subject's checks run, or stop running them automatically. Name the subject with subject_type and subject_uuid in the body.
Required API key scopes
query:readRequest parameters
- subject_type
- subject_uuidstring
- interval
- enabledboolean
Response
Example request
PATCH /api /projects /:project_id /data_quality_checks /scheduleExample response
Status 200
List all data quality checks schedules
The schedule of every subject in the project whose checks run on one, for the checks the caller may read. One request for the overview instead of one per subject.
Required API key scopes
query:readExample request
GET /api /projects /:project_id /data_quality_checks /schedulesExample response
Status 200
List all data quality checks subjects
Everything in this project you can author a check on, with each subject's columns.
Required API key scopes
query:readExample request
GET /api /projects /:project_id /data_quality_checks /subjects










