Create webhook
Create a webhook for the given mailbox. The generated secret is returned only in this response and is sent as a bearer token with every delivery.
hostinger mail webhooks create <mailbox-id> [flags]
hostinger mail webhooks create AC1a2b3c4d5e6f7g --events message.received --name 'New message notifier' --url https://example.com/webhooks/incoming
--description string Optional description of the webhook's purpose
--events strings Events that trigger this webhook (one of: message.received)
-h, --help help for create
--name string Human-readable name for this webhook
--status string Initial status of the webhook (one of: active, disabled, paused) (default "active")
--url string Publicly reachable URL that receives the webhook POST requests
--config string Config file (default is $HOME/.hostinger.yaml)
--dry-run Print the request as a curl command instead of sending it
-o, --format string Output format: table|json|yaml|tree (default: table on a terminal, json when piped)
--jq string Filter the JSON response with a jq expression, e.g. '.data[].id'
--no-input Never prompt; fail when an argument, flag or confirmation is missing
--verbose Print the config file used and each HTTP request to stderr
- hostinger mail webhooks - Webhooks commands