> ## Documentation Index
> Fetch the complete documentation index at: https://docs.eazecustoms.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Set Up Webhooks

> Add an HTTPS endpoint in the Eaze Customs Portal and store the signing secret.

## What you can do

Create a webhook endpoint for a broker, choose which events it receives, and pause, rotate, or remove it later.

The signing secret is shown only when you create the endpoint or rotate the secret. Store it in a secret manager. The portal cannot show it again.

## Before you start

Sign in as a broker user for that broker, or as a platform administrator. Client users do not manage these endpoints.

The broker needs an active API key. A platform administrator creates it in the **API Keys** card on the same page. Saving a webhook fails until that key exists.

The URL must be HTTPS and publicly reachable. Eaze Customs rejects private, loopback, and link-local addresses, and it rejects a URL that contains a username or password.

## Steps

**1. Open the webhook card**

Open **Global Modules**, then **Brokers**. Open the broker and select **System Config**.

The **Webhooks** card is on that page, below **API Keys**.

**2. Add the endpoint**

Select the add button on the **Webhooks** card. Its tooltip is **Create Webhook**. The dialog title is **Create Webhook**.

Enter **Name** and **Webhook URL**. In **Event**, select one or more events from [Webhook Events](https://docs.eazecustoms.com/webhooks/events.md). NCTS events are labeled **NCTS departure released** and **NCTS arrival released**. The other events use those event names.

Select **Save**. A new endpoint is active. You need a name, an HTTPS URL, and at least one event before **Save** is available.

**3. Store the signing secret**

The **Signing secret** dialog shows the secret once. Its text is: "Copy this secret key now. It won't be shown again."

Select **Copy** and store the whole string. It is the HMAC key. Do not base64-decode it before you verify a signature.

**4. Change the endpoint**

On the endpoint row, select the edit button. Its tooltip is **Edit**. You can change **Name**, **Webhook URL**, and **Event**. The events you leave selected replace the previous list.

**Active** appears only while you are editing. Clear it and select **Save** to pause delivery. Select it again to resume.

Select the delete button, tooltip **Delete**, then confirm **Delete Webhook**, to remove the endpoint. Delivery stops.

**5. Review deliveries and rotate the secret**

Select the deliveries button, tooltip **View deliveries**, to open **Webhook deliveries**. For a row marked **Failed**, select **Retry**. See [Deliveries & Retries](https://docs.eazecustoms.com/webhooks/retries.md).

Select the rotate button, tooltip **Rotate signing secret**, when you need a new secret. Store the new value immediately and update your receiver. The previous secret stops working at once. Later deliveries use the new secret.

The endpoint receives events for every client of the broker. After you verify the body, use `clientRef` when one receiver serves more than one client.

## Statuses and errors

| Situation | What to do |
| - | - |
| Save fails because no API key exists | Ask a platform administrator to create an active key in **API Keys**, then save the endpoint again. |
| The URL is rejected | Use a public HTTPS URL without a username or password. |
| You closed the secret dialog | The secret cannot be read back. Rotate it and store the new value. |
| Deliveries stop | Edit the endpoint and check **Active**, or confirm the endpoint was not deleted. |

Next: [Webhook Events](https://docs.eazecustoms.com/webhooks/events.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.