Delivery

Create a routing rule

Create a rule that fires on document_classified triggers. The actions.type key (when present) controls the action kind (route_to_schema by default).

post/v1/routing-rules

Request

  • Base URL: https://api.talonic.com
  • URL: https://api.talonic.com/v1/routing-rules
  • Auth: HTTP bearer

Request body

namestring required

Rule name. Required, non-empty.

conditionsobject

Trigger condition payload; stored as trigger_config internally.

priorityinteger

Lower priority runs first. Defaults to 100 server-side.

Example request

{
  "actions": {
    "type": "route_to_schema"
  }
}

Response

Routing rule created (alias of 201).

idstring uuid required
namestring required
trigger_typestring required

Trigger kind. Always document_classified for rules created via this API.

conditionsobject

Mirror of the internal trigger_config.

action_typestring required

Resolved action kind. Defaults to route_to_schema when not specified on the request body.

actionsobject

Action payload. May include a type key that drives action_type.

priorityinteger required

Lower runs first. Default 100.

is_activeboolean required
review_requiredboolean nullable
source_connection_idstring uuid nullable
created_atstring date-time
updated_atstring date-time nullable

Example response

{
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "trigger_type": "document_classified",
  "action_type": "route_to_schema",
  "priority": 100,
  "source_connection_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "created_at": "2026-04-25T14:30:00.000Z",
  "updated_at": "2026-04-25T14:30:00.000Z"
}

Changes

No recorded changes to this operation across all 1 revision of this API.