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
  • Auth
    HTTP bearer

Request body

RoutingRuleCreateRequest required
name, string required

Rule name. Required, non-empty.

conditions, object

Trigger condition payload; stored as trigger_config internally.

actions, object

Action payload. If an actions.type key is provided it becomes the rule's action_type (default: route_to_schema).

priority, integer

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

Example request

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

Response

Routing rule created (alias of 201).

RoutingRuleResponse required
id, string uuid required
name, string required
trigger_type, string required

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

conditions, object

Mirror of the internal trigger_config.

action_type, string required

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

actions, object

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

priority, integer required

Lower runs first. Default 100.

is_active, boolean required
review_required, boolean nullable
source_connection_id, string uuid nullable
created_at, string date-time
updated_at, string date-time nullable
links, object

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 32 revisions of this API.