Manage Routing Rule
Retrieve, update, or delete a routing rule by ID. Update conditions, actions, priority, or enabled state. Deleting a rule does not affect previously routed documents.
GET
/v1/routing-rules/:idResponse
Response fields
idstringRouting rule UUID.
namestringRule name.
trigger_typestringEvent type that triggers evaluation.
conditionsobjectCondition configuration.
action_typestringAction type.
actionsobjectAction configuration.
priorityintegerPriority order.
is_activebooleanWhether the rule is active.
review_requiredbooleanWhether matched documents require manual review.
source_connection_idstring | nullSource connection scope, if any.
created_atstringISO 8601 creation timestamp.
updated_atstring | nullISO 8601 last update timestamp.
linksobjectRelated resource URLs (self).
Response (GET)
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Route invoices to finance schema",
"trigger_type": "document_classified",
"conditions": { "field": "document_type", "operator": "eq", "value": "invoice" },
"action_type": "route_to_schema",
"actions": { "type": "assign_schema", "schema_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901" },
"priority": 1,
"is_active": true,
"review_required": false,
"source_connection_id": null,
"created_at": "2024-09-01T10:00:00.000Z",
"updated_at": null,
"links": {
"self": "/v1/routing-rules/a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
}Errors
Error responses (GET)
401unauthorizedMissing or invalid API key.
404not_foundRouting rule not found or does not belong to your organization.
429rate_limitedToo many requests. Retry after the period indicated in the Retry-After header.
PATCH
/v1/routing-rules/:idResponse
Response fields (PATCH)
idstringRouting rule UUID.
namestringUpdated rule name.
trigger_typestringEvent type that triggers evaluation.
conditionsobjectUpdated condition configuration.
action_typestringUpdated action type.
actionsobjectUpdated action configuration.
priorityintegerUpdated priority.
is_activebooleanCurrent active state.
review_requiredbooleanWhether matched documents require manual review.
source_connection_idstring | nullSource connection scope, if any.
created_atstringISO 8601 creation timestamp.
updated_atstring | nullISO 8601 last update timestamp.
linksobjectRelated resource URLs (self).
Response (PATCH)
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Route invoices to finance schema",
"trigger_type": "document_classified",
"conditions": { "field": "document_type", "operator": "eq", "value": "invoice" },
"action_type": "route_to_schema",
"actions": { "type": "assign_schema", "schema_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901" },
"priority": 1,
"is_active": false,
"review_required": false,
"source_connection_id": null,
"created_at": "2024-09-01T10:00:00.000Z",
"updated_at": "2024-09-20T08:00:00.000Z",
"links": {
"self": "/v1/routing-rules/a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
}Errors
Error responses (PATCH)
401unauthorizedMissing or invalid API key.
404not_foundRouting rule not found or does not belong to your organization.
429rate_limitedToo many requests. Retry after the period indicated in the Retry-After header.
DELETE
/v1/routing-rules/:idResponse
Response fields (DELETE)
deletedbooleanAlways true on success.
idstringUUID of the deleted rule.
Response (DELETE)
{
"deleted": true,
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}Errors
Error responses (DELETE)
401unauthorizedMissing or invalid API key.
404not_foundRouting rule not found or does not belong to your organization.
429rate_limitedToo many requests. Retry after the period indicated in the Retry-After header.