Using a webhook
Webhooks let you send messages automatically into a group. This is useful for centralizing application alerts, monitoring notifications, or messages from external tools.
Example with an "Alerts" group
- Create a group named
Alerts. - Open the group options and add an incoming webhook.
- Copy the webhook URL: it will be the entry point for messages.
Send a message to the group
From your external tool, send an HTTP request to the webhook URL. A simple JSON format is enough in most cases.
curl -X POST "https://your-instance.hublot.example/webhooks/alertes" \
-H "Content-Type: application/json" \
-d '{"text": "API server: high latency", "author": "Monitoring"}'
The message then appears in the Alerts group, as if a member had posted it. You can reuse this approach for any notification or integration flow.