Skip to content

Receive notifications with webhooks

Webhooks send your systems a notification when something happens to a transaction, for example when a deposit completes or a withdrawal fails. You don't need to keep polling the API. Notifications go over HTTPS to an endpoint that you host. You can set them up in Hex Safe or with the API.

Who can do this

Admins add and manage webhooks in Hex Safe.

Try it: interactive walkthrough

Click the highlighted area on each screen to move through the steps. All names, balances and addresses are demo data.

Choose the scope

At the top of Settings › Webhooks, choose:

  • All vaults, for webhooks at the enterprise level, or
  • a single vault, for webhooks that only cover that vault.

Verify that requests come from Hex Safe

The Webhook signing key on the same page is a public key. Each notification carries a signature, and your server should check it with this key before acting on the notification. The API documentation's webhooks page explains the payload and how to verify the signature.

Add a webhook

  1. In Settings › Webhooks, click Add Webhook.
  2. Keep Category set to Transaction.
  3. Choose the Transaction type:

    Type Covers
    withdrawal Assets leaving your vaults
    deposit Assets arriving in your vaults
    stake Staking
    unstake Unstaking
    sign-typed-data Typed-data signing requests
  4. Choose the Event that should trigger a notification, for example Completed or Failed. The events on offer depend on the transaction type.

  5. Enter your Webhook URL. It must be an HTTPS address that can be reached from the internet.
  6. Set Max retries and Retry interval (seconds). These control how often Hex Safe tries again if your endpoint doesn't accept a notification. The defaults are 5 retries, 60 seconds apart.
  7. Click Save.

Each webhook covers one transaction type and one event. To cover several, add one webhook for each combination.

Manage your webhooks

Your webhooks are listed on the same page, with their scope, transaction type, event, URL and retry settings. Use the buttons in the Actions column:

  • Edit to change any of the settings.
  • Test to send a test notification to the URL. Hex Safe shows the HTTP status your endpoint returned.
  • Delete to remove the webhook. You're asked to confirm, and it can't be undone.

Reply to notifications

Your endpoint should reply with an HTTP status from 200 to 399 within 8 seconds. Any other reply, or no reply, counts as a failed delivery, and Hex Safe tries again.

A notification can arrive more than once. Check its ID (payload.id) before you act on it, so you don't process the same event twice.

Check deliveries

Delivery history, at the bottom of the page, lists recent notifications for the scope you've selected, with their status (Success, Failure or In progress) and the number of attempts. Check it first if your system isn't receiving notifications.

  • Click Show delivery attempts to see each attempt, with the request payload, your endpoint's response and any error.
  • Click Retry to send a notification again. Hex Safe shows the HTTP status your endpoint returned.
  • Click Download CSV to export the delivery attempts that match your current filters.

Manage webhooks with the API

Your developers can do all of this with the Webhook Management API: create, update, delete and test webhooks, read the delivery history and get the signing key. The API can also limit a webhook to specific assets or networks. See the Webhook Management API reference.