curl -X POST "https://YOUR_BASE_URL/comparisons" \
-H "Authorization: Bearer <api-key>" \
-H "Workspace-Id: <workspace-id>" \
-H "Content-Type: application/json" \
-d '{
"name": "orders table comparison",
"source_datasource_id": "aaaaaaaa-0000-0000-0000-000000000001",
"target_datasource_id": "bbbbbbbb-0000-0000-0000-000000000002",
"source_dataset_id": "cccccccc-0000-0000-0000-000000000003",
"target_dataset_id": "dddddddd-0000-0000-0000-000000000004",
"configuration": {
"source_columns": ["order_id", "customer_id", "total"],
"target_columns": ["order_id", "customer_id", "total"],
"primary_keys_source": ["order_id"],
"primary_keys_target": ["order_id"]
}
}'
{
"message": "Comparison created successfully",
"data": {
"id": "eeeeeeee-0000-0000-0000-000000000005",
"name": "orders table comparison",
"source_dataset_id": "cccccccc-0000-0000-0000-000000000003",
"target_dataset_id": "dddddddd-0000-0000-0000-000000000004",
"configuration": {
"source_columns": ["order_id", "customer_id", "total"],
"target_columns": ["order_id", "customer_id", "total"],
"primary_keys_source": ["order_id"],
"primary_keys_target": ["order_id"],
"case_sensitive": false,
"quick_comparison": false
},
"workspace_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"user_id": "ffffffff-0000-0000-0000-000000000006"
}
}
Comparisons
Create Comparison
Create a new comparison between a source and target dataset.
POST
/
comparisons
curl -X POST "https://YOUR_BASE_URL/comparisons" \
-H "Authorization: Bearer <api-key>" \
-H "Workspace-Id: <workspace-id>" \
-H "Content-Type: application/json" \
-d '{
"name": "orders table comparison",
"source_datasource_id": "aaaaaaaa-0000-0000-0000-000000000001",
"target_datasource_id": "bbbbbbbb-0000-0000-0000-000000000002",
"source_dataset_id": "cccccccc-0000-0000-0000-000000000003",
"target_dataset_id": "dddddddd-0000-0000-0000-000000000004",
"configuration": {
"source_columns": ["order_id", "customer_id", "total"],
"target_columns": ["order_id", "customer_id", "total"],
"primary_keys_source": ["order_id"],
"primary_keys_target": ["order_id"]
}
}'
{
"message": "Comparison created successfully",
"data": {
"id": "eeeeeeee-0000-0000-0000-000000000005",
"name": "orders table comparison",
"source_dataset_id": "cccccccc-0000-0000-0000-000000000003",
"target_dataset_id": "dddddddd-0000-0000-0000-000000000004",
"configuration": {
"source_columns": ["order_id", "customer_id", "total"],
"target_columns": ["order_id", "customer_id", "total"],
"primary_keys_source": ["order_id"],
"primary_keys_target": ["order_id"],
"case_sensitive": false,
"quick_comparison": false
},
"workspace_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"user_id": "ffffffff-0000-0000-0000-000000000006"
}
}
Bearer token. Format:
Bearer <api-key>Your workspace UUID.
If
true, creates the comparison without triggering execution.Display name for the comparison.
UUID of the source data source.
UUID of the target data source.
UUID or name of the source dataset. Required if
source_query is not set.UUID or name of the target dataset. Required if
target_query is not set.Comparison configuration.
Show configuration
Show configuration
List of column names to compare from the source dataset.
List of column names to compare from the target dataset.
Primary key columns in the source dataset.
Primary key columns in the target dataset.
SQL WHERE clause to filter source rows.
SQL WHERE clause to filter target rows.
Custom SQL query for the source. Overrides
source_dataset_id.Custom SQL query for the target. Overrides
target_dataset_id.Whether string comparisons are case-sensitive.
Run a fast row-count-only comparison instead of a full diff.
Include schema differences in the comparison.
Response
The created comparison.
Show data
Show data
Status message.
curl -X POST "https://YOUR_BASE_URL/comparisons" \
-H "Authorization: Bearer <api-key>" \
-H "Workspace-Id: <workspace-id>" \
-H "Content-Type: application/json" \
-d '{
"name": "orders table comparison",
"source_datasource_id": "aaaaaaaa-0000-0000-0000-000000000001",
"target_datasource_id": "bbbbbbbb-0000-0000-0000-000000000002",
"source_dataset_id": "cccccccc-0000-0000-0000-000000000003",
"target_dataset_id": "dddddddd-0000-0000-0000-000000000004",
"configuration": {
"source_columns": ["order_id", "customer_id", "total"],
"target_columns": ["order_id", "customer_id", "total"],
"primary_keys_source": ["order_id"],
"primary_keys_target": ["order_id"]
}
}'
{
"message": "Comparison created successfully",
"data": {
"id": "eeeeeeee-0000-0000-0000-000000000005",
"name": "orders table comparison",
"source_dataset_id": "cccccccc-0000-0000-0000-000000000003",
"target_dataset_id": "dddddddd-0000-0000-0000-000000000004",
"configuration": {
"source_columns": ["order_id", "customer_id", "total"],
"target_columns": ["order_id", "customer_id", "total"],
"primary_keys_source": ["order_id"],
"primary_keys_target": ["order_id"],
"case_sensitive": false,
"quick_comparison": false
},
"workspace_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"user_id": "ffffffff-0000-0000-0000-000000000006"
}
}
⌘I