Skip to main content
The formo alerts command group lets you manage project alerts. Alerts notify you when specific events or thresholds are triggered.

formo alerts list

List all alerts for the project.
Requires alerts:read scope on your API key.
formo alerts list

formo alerts get

Get a single alert by ID.
Requires alerts:read scope on your API key.

Arguments

ArgumentTypeRequiredDescription
alertIdstringAlert ID
formo alerts get alert_abc123

formo alerts create

Create a new project alert.
Requires alerts:write scope on your API key.

Options

OptionTypeRequiredDescription
--namestringAlert name
--triggerTypestringTrigger type (e.g. event, threshold)
--triggerFiltersstringJSON array of trigger filter objects
--recipientstringJSON array of recipient objects
--secretstringWebhook secret for the alert

Examples

# Create a basic event alert
formo alerts create --name "High value tx" --triggerType event

# Create an alert with trigger filters and recipients
formo alerts create \
  --name "Whale activity" \
  --triggerType threshold \
  --triggerFilters '[{"field":"net_worth_usd","op":"gt","value":100000}]' \
  --recipient '[{"type":"email","value":"team@example.com"}]'

# Create an alert with a webhook secret
formo alerts create \
  --name "Transaction webhook" \
  --triggerType event \
  --secret "whsec_abc123"

formo alerts update

Update an existing alert.
Requires alerts:write scope on your API key.

Arguments

ArgumentTypeRequiredDescription
alertIdstringAlert ID to update

Options

OptionTypeRequiredDescription
--namestringAlert name
--triggerTypestringTrigger type
--triggerFiltersstringJSON array of trigger filter objects
--recipientstringJSON array of recipient objects
--secretstringWebhook secret for the alert

Examples

# Update an alert name
formo alerts update alert_abc123 --name "Renamed alert" --triggerType event

# Update alert with new recipients
formo alerts update alert_abc123 \
  --name "Updated alert" \
  --triggerType threshold \
  --recipient '[{"type":"slack","value":"#alerts"}]'

formo alerts delete

Delete an alert.
Requires alerts:write scope on your API key.

Arguments

ArgumentTypeRequiredDescription
alertIdstringAlert ID to delete
formo alerts delete alert_abc123
Deleting an alert is permanent.

formo alerts toggle

Toggle an alert’s status between active and paused.
Requires alerts:write scope on your API key.

Arguments

ArgumentTypeRequiredDescription
alertIdstringAlert ID to toggle

Options

OptionTypeRequiredDescription
--statusenumNew status: active or paused

Examples

# Pause an alert
formo alerts toggle alert_abc123 --status paused

# Re-activate an alert
formo alerts toggle alert_abc123 --status active