Create Check
Create a validation check for the structuring pipeline. Supports field_format, value_range, cross_field, and ai_coherence check types.
Create a new validation check to enforce data quality rules on structuring results. Each check targets a specific validation type and can be scoped to a single schema or applied globally. Newly created checks are automatically active and will run against all future structuring results.
config object shape depends on the check type. For value_range, provide field, min, and max. For field_format, provide field and pattern. For cross_field, provide fields and a rule expression. For ai_coherence, no config is required./v1/structuring/checksResponse
Response fields (201 Created)
Response (201 Created)
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"user_schema_id": null,
"name": "Amount range check",
"description": null,
"type": "value_range",
"severity": "warning",
"config": { "field": "total_amount", "min": 0, "max": 1000000 },
"is_active": true,
"sort_order": 0,
"created_at": "2024-09-14T12:00:00.000Z",
"updated_at": "2024-09-14T12:00:00.000Z",
"links": {
"self": "/v1/structuring/checks/a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
}Errors
Error responses
Newly created checks are automatically active and evaluate against all future structuring results. Pair this with POST /v1/structuring/gates and POST /v1/structuring/gates/{id}/rules to wire checks into an approval gate -- checks flag individual fields, while gate rules aggregate check outcomes to decide whether a result needs manual approval.