notification.route.create-multi-channel ​
Create a reusable notification route across Slack and webhook channels, validate each target, and send a test notification.
Create a reusable notification route across Slack and webhook channels, validate each target, and send a test notification.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Dag |
| Library | App-identity |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
workflow_run_id | string | No | — | DAG-stamped parent run id. |
organization_uuid | uuid | Yes | — | Organization UUID for tenant isolation. |
actor | string | No | — | User or service actor initiating the workflow. |
idempotency_key | string | No | — | Caller-supplied idempotency key for safe retries. |
dry_run | boolean | No | — | Validate and plan without mutating external resources. |
route_name | string | Yes | — | Notification route name. |
channels | list | Yes | — | Channel targets. |
event_types | list | No | — | Event types routed. |
test_message | string | No | — | Optional test message. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | No | — | Organization uuid. |
workflow_run_uuid | uuid | No | — | Workflow run uuid. |
status | string | No | — | Status. |
summary | json | No | — | Summary. |
resource_refs | json | No | — | Resource refs. |
warnings | list | No | — | Warnings. |
completed_at | string | No | — | Completed at. |
compensation_trigger | string | No | — | Compensation trigger. |
compensation_results | json | No | — | Compensation results. |
identity_notification_pref_query | json | No | — | Output state_data from DAG step identity_notification_pref_query. |
slack_channel_resolve | json | No | — | Output state_data from DAG step slack_channel_resolve. |
hook_list_redirects | json | No | — | Output state_data from DAG step hook_list_redirects. |
identity_notification_pref_update | json | No | — | Output state_data from DAG step identity_notification_pref_update. |
slack_message_send | json | No | — | Output state_data from DAG step slack_message_send. |
failure_reason | string | No | — | Failure reason. |
failed_step | json | No | — | Failed step. |
failed_layer | json | No | — | Failed layer. |
failed_at_state | string | No | — | Failed at state. |
error | string | No | — | Error. |
error_type | string | No | — | Error type. |
failed_at | string | No | — | Failed at. |
DAG Layers ​
| # | Layer | Steps | Compensation |
|---|---|---|---|
| 1 | 01_identity_notification_pref_query | identity.notification-pref.query | — |
| 2 | 02_slack_channel_resolve | slack.channel.resolve | — |
| 3 | 03_hook_list_redirects | hook.list-redirects | — |
| 4 | 04_identity_notification_pref_update | identity.notification-pref.update | — |
| 5 | 05_slack_message_send | slack.message.send | — |
Execution Flow ​
Sub-workflows ​
| Sub-workflow | Step name |
|---|---|
identity.notification-pref.query | identity_notification_pref_query |
slack.channel.resolve | slack_channel_resolve |
hook.list-redirects | hook_list_redirects |
identity.notification-pref.update | identity_notification_pref_update |
slack.message.send | slack_message_send |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "notification.route.create-multi-channel",
"initial_data": {
"organization_uuid": "value",
"route_name": "value",
"channels": "value"
}
}