Skip to main content

Webhook Commands

The omni webhooks command group manages webhook event sources. Webhooks allow external systems to push events into Omni, which can then trigger automations.

omni webhooks list

List all webhook sources.
omni webhooks list [options]
OptionDescription
--enabledShow only enabled sources
--disabledShow only disabled sources
omni webhooks list
omni webhooks list --enabled

omni webhooks get

Get full details of a webhook source.
omni webhooks get <id>

omni webhooks create

Create a new webhook source.
omni webhooks create [options]
OptionDescription
--name <name>Webhook source name
--description <desc>Description
--disabledCreate in disabled state
--headers <json>Expected headers as JSON (e.g., '{"X-Secret": true}')
# 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 update

Update a webhook source.
omni webhooks update <id> [options]
OptionDescription
--name <name>New name
--description <desc>New description
--enableEnable the webhook
--disableDisable the webhook
omni webhooks update <id> --name "renamed-hook"
omni webhooks update <id> --disable
omni webhooks update <id> --enable

omni webhooks delete

Delete a webhook source.
omni webhooks delete <id>

omni webhooks trigger

Trigger a custom event manually. Useful for testing automations or injecting events from scripts.
omni webhooks trigger [options]
OptionDescription
--type <type>Event type
--payload <json>Event payload as JSON
--instance <id>Instance ID
--correlation-id <id>Correlation ID for tracing
# 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"
Triggered events flow through the same pipeline as webhook-received events — they can fire automations that match the event type.