With webhooks, we automatically send events from your account to an address of your choice, e.g. a new ticket reply or an expiring server straight into your Discord channel. A webhook is a web address (URL) that we send a message to whenever a matching event happens. You decide which events these are and in which format the message arrives.
Open webhooks
-
Open your account
In the dashboard, click your profile picture at the top right and choose Account. -
Open webhooks
In your account's sidebar, click Webhooks under Activity. Here you see all webhooks with Name, URL, Format, Events, Status and Last triggered.
Create a webhook
-
Start the wizard
Click Create webhook. The Create webhook dialog opens with the steps Connection, Events and Summary.
-
Enter a name
In the Connection step, enter a label under Name that helps you recognize the webhook later, e.g. "My server". The name can be up to 100 characters long.
-
Choose a format
Under Format, choose where the message goes. The table below shows which format fits which target. -
Enter the URL
Enter the target address under URL. We only accept addresses that start withhttps://. You create the webhook URL for Discord, Slack or Microsoft Teams in the respective application. -
Set a secret (optional)
If you enter your own secret key under Secret, we sign every message with it. This lets your own server check that the message really comes from us. You do not need a secret for Discord, Slack, Teams or Telegram. -
Test the connection
In the Test connection area, click Send test. We immediately send a test message to your URL and show you the result, e.g. "Test delivered successfully (HTTP 200)." Then click Next.
-
Select events
In the Events step, choose which events we notify you about. The events are grouped by area, e.g. Servers, Domains or Support tickets. Use the Search events field to find an event faster. You have to select at least one event. Then click Next.
-
Save the webhook
Check your details in the Summary and click Create. The webhook is active right away.
Available formats
| Format | Use it for |
|---|---|
| Generic JSON | Your own server or application. The message contains the fields event, type, occurred_at, resource and data. |
| Discord | A webhook in a Discord channel. |
| Slack | A webhook in Slack. |
| Microsoft Teams | A webhook in Microsoft Teams. |
| Telegram | A Telegram bot. Use https://api.telegram.org/bot<YOUR_BOT_TOKEN>/sendMessage?chat_id=<YOUR_CHAT_ID> as the URL. |
For Discord, Slack, Teams and Telegram we format the message so it is easy to read, in the language of your dashboard.
Available events
You see which events you can select in the Events step. Some examples:
| Area | Examples |
|---|---|
| Servers | Server expiring, Server expired, Backup created |
| Domains | Domain expiring, Domain renewed |
| Payments | Payment received, Payment failed |
| Orders | Order completed, Order failed |
| Donations | Donation received |
| Affiliate program | Payout completed |
| Support tickets | New ticket reply, Ticket created |
| Teams | Team invitation received, New team member |
| Sign-in | New sign-in detected |
| Account | Password changed, Passkey added |
Test, edit or delete a webhook
Each row in the table has a menu (…) on the right with these actions:
| Action | Description |
|---|---|
| Test | Sends a test message to the saved webhook. You see whether it arrived in your target, e.g. in the Discord channel. |
| Edit | Opens the Edit webhook dialog. You can change name, format, URL, secret and events, and turn the webhook off or on again with the Active switch. |
| Delete | Deletes the webhook after a confirmation. Your target no longer receives messages afterwards. |
For security reasons, we only show a saved URL shortened. If you leave the URL or Secret field empty while editing, the saved values are kept.
Verify the signature
If you set a Secret, every message contains the header X-EmeraldHost-Signature with the value sha256= followed by an HMAC-SHA256 signature. We calculate it over the unchanged content (body) of the message, using your secret as the key. Calculate the same signature on your server and compare both values. If they do not match, discard the message.
In addition, the header X-EmeraldHost-Event names the event, e.g. ticket.new_reply.
When deliveries fail
Your target has to respond within 10 seconds with a status code in the 2xx range. We do not follow redirects. If a delivery fails, we retry it a few times.