signaloid-cli webhooks create
Create a new webhook.
Synopsis
signaloid-cli webhooks create --url <url> --events <e1,e2,...> [options]
Options
| Option | Required | Description |
|---|---|---|
--url <url> | Yes | Target URL for webhook notifications |
--events <e1,e2,...> | Yes | Comma-separated event list. For the accepted event names, see Webhook events. |
--description <text> | No | Webhook description |
--status <active|disabled> | No | Initial status |
--payload-file <path> | No | Path to a JSON file whose fields are merged into the create request (advanced) |
--format <type> | No | Output format: table or json (default: json) |
Description
Creates a new webhook that will receive HTTP POST requests when subscribed events occur in your Signaloid account. The webhook will send event data as JSON payloads to the specified URL.
Examples
The output of this command includes the webhook secret in plain text. Treat the output as sensitive, and do not store it in logs or share it.
signaloid-cli webhooks create \
--url https://api.example.com/webhooks/signaloid \
--events build-status,task-status \
--description "Production notifications"
Notes
- The target URL must be publicly accessible and support HTTPS
- You must specify at least one event with
--events. Without--events, the API rejects the request with the message "The 'events' field is required". - Webhooks are created in active status by default unless
--status disabledis specified. - The webhook URL endpoint should return a 2xx status code to confirm successful delivery.
Troubleshooting
Webhook creation fails with "Invalid URL"
- Ensure the URL is properly formatted with the https:// protocol
- Verify that the URL is publicly accessible
Events not being delivered
- Check that the webhook status is active
- Verify the target URL is responding correctly
- Use
webhooks statsto check delivery status
See Also
- signaloid-cli webhooks - Webhook command overview
- signaloid-cli webhooks list - List webhooks
- signaloid-cli webhooks update - Update webhook configuration
- signaloid-cli webhooks enable - Enable webhooks