List Gates
List approval gates that aggregate validation checks and control whether records require manual approval before delivery.
Approval gates sit between extraction and delivery. Each gate aggregates one or more rules (e.g. minimum confidence threshold, validation pass rate) and decides whether structuring results are auto-approved for delivery or queued for human review. Gates can be scoped to a specific schema and optionally linked to a delivery destination.
/v1/structuring/gatesResponse
Response fields
Response
{
"data": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Finance approval gate",
"user_schema_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"destination_id": null,
"on_approve": "export",
"on_flag": "queue",
"auto_approve_after_hours": null,
"is_active": true,
"rules": [
{
"id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"name": "Minimum confidence",
"type": "min_confidence",
"config": { "threshold": 0.85 },
"sort_order": 0
}
],
"created_at": "2024-09-01T10:00:00.000Z",
"updated_at": "2024-09-01T10:00:00.000Z",
"links": {
"self": "/v1/structuring/gates/a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"rules": "/v1/structuring/gates/a1b2c3d4-e5f6-7890-abcd-ef1234567890/rules"
}
}
]
}Errors
Error responses
Each gate embeds its active rules array, so you can inspect thresholds without a separate fetch. Use the schema_id query parameter to find which gates apply to a specific schema, then follow the links.rules URL to manage individual rules via POST /v1/structuring/gates/{id}/rules.