omni webhooks command group manages webhook event sources. Webhooks allow external systems to push events into Omni, which can then trigger automations.omni webhooks list1omni webhooks list [options]
| Option | Description |
--enabled | Show only enabled sources |
--disabled | Show only disabled sources |
12omni webhooks list omni webhooks list --enabled
omni webhooks get1omni webhooks get <id>
omni webhooks create1omni webhooks create [options]
| Option | Description |
--name <name> | Webhook source name |
--description <desc> | Description |
--disabled | Create in disabled state |
--headers <json> | Expected headers as JSON (e.g., '{"X-Secret": true}') |
12345678910# Basic webhook omni webhooks create --name "github-events" --description "GitHub push events" # With header validation omni webhooks create \ --name "secure-hook" \ --headers '{"X-Webhook-Secret": true}' # Create disabled for setup omni webhooks create --name "draft-hook" --disabled
omni webhooks update1omni webhooks update <id> [options]
| Option | Description |
--name <name> | New name |
--description <desc> | New description |
--enable | Enable the webhook |
--disable | Disable the webhook |
123omni webhooks update <id> --name "renamed-hook" omni webhooks update <id> --disable omni webhooks update <id> --enable
omni webhooks delete1omni webhooks delete <id>
omni webhooks trigger1omni webhooks trigger [options]
| Option | Description |
--type <type> | Event type |
--payload <json> | Event payload as JSON |
--instance <id> | Instance ID |
--correlation-id <id> | Correlation ID for tracing |
123456789# Trigger a simple event omni webhooks trigger --type "order.created" --payload '{"orderId": "123"}' # Trigger with instance and correlation omni webhooks trigger \ --type "deploy.completed" \ --payload '{"env": "production", "version": "1.2.0"}' \ --instance <id> \ --correlation-id "deploy-abc"