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

# Notifications

> Get an email or a Slack message when something important happens in a Portal environment.

Notifications tell your team when something in an environment needs attention, such as a failing webhook, a low gas sponsor balance, or a revoked API key. You set them up in the **Notifications** section of the [Portal Admin Dashboard](https://app.portalhq.io) with two pieces:

* **Rules** pick the events to watch and who to notify.
* **Channels** are the Slack channels that rules can post to.

Rules and channels belong to one environment. Set them up in each environment you want notifications from.

> [!NOTE]
>
> Only owners can create or change rules and channels. Members can see them, but can't edit them.

## Create a rule

1. Log in to [app.portalhq.io](https://app.portalhq.io/) and select the environment.
2. Go to **Notifications** > **Rules** and select **New rule**.
3. Enter a name for the rule, up to 100 characters.
4. Under **Events**, select the events to watch. Select a category to add all of its events at once.
5. Choose who gets notified:
   * **Email**: all members of your organization, or the members you select.
   * **Slack**: one or more of the environment's [Slack channels](#add-a-slack-channel).
6. Choose how often to re-notify while a problem continues. See [Failing and recovered](#failing-and-recovered).
7. Select **Create rule**.

A rule needs at least one event and at least one email recipient or Slack channel.

To stop a rule without deleting it, pause it. A paused rule sends nothing until you turn it on again.

### Send a test

Open a rule and, under **Send a test**, select **Send test**. Portal sends a test notification to everyone the rule reaches. The result shows how many recipients it reached and which deliveries failed. Save your changes first: the test uses the saved rule.

## Add a Slack channel

Portal posts to Slack through an incoming webhook.

1. In Slack, [create an incoming webhook](https://api.slack.com/messaging/webhooks#create_a_webhook) for the channel and copy its URL. It starts with `https://hooks.slack.com/`.
2. In the dashboard, go to **Notifications** > **Channels** and select **Add a Slack channel**.
3. Enter a name for the channel and paste the webhook URL.
4. Select **Test and save**. Portal posts a test message to the channel and saves it only if Slack accepts the message.

Portal hides the webhook URL after you save it. To replace it, edit the channel and paste a new URL. Leave the field blank to keep the current one.

If Slack starts refusing messages, the channel shows **Failing** with the reason. This happens when the webhook is revoked, the Slack app is removed, or the channel is archived. Fix the webhook in Slack or replace the URL, then send a test to clear the error.

A channel can't be removed while a rule uses it. Remove it from each rule first. Removing a channel deletes its webhook URL from Portal, so also remove the webhook in Slack if nothing else uses it.

## Events

| Category | Event | Notifies when |
| - | - | - |
| Webhook delivery | Backup hook failing | Your `/backup` [flow control hook](https://docs.portalhq.io/resources/flow-control-hooks/overview.md) fails or recovers. |
| | Backup fetch hook failing | Your `/backup/fetch` flow control hook fails or recovers. |
| | Sign approval hook failing | Your `/sign-approval` hook fails or recovers. Signing is blocked while it fails. |
| | Informational webhook failing | Deliveries to your [informational webhook](https://docs.portalhq.io/resources/informational-webhooks/overview.md) fail or recover. |
| | Informational webhook turned off | Portal turns off your informational webhook after repeated delivery errors. |
| Gas sponsor low balance | Gas sponsor low balance | Your Solana gas sponsor drops below 50% or 25% of its allowance, and again when it recovers. |
| API keys | API key created | Someone creates an API key in the environment. |
| | API key revoked | An API key is revoked. Requests that use it start failing. |
| Member changes | Member invited | Someone is invited to your organization. |
| | Member removed | A member loses access to Portal. |
| | Member role changed | A member is promoted to owner or moved back to member. |
| | Member two-factor authentication reset | A member's two-factor authentication is reset. |
| Security and authentication | SSO connection created | A new [SSO connection](https://docs.portalhq.io/resources/single-sign-on.md) is added. |
| | SSO connection configured | The settings of an SSO connection change. |
| | Two-factor policy changed | Two-factor authentication becomes required or optional for your organization. |
| | Policy created, updated, deleted | A [transaction policy](https://docs.portalhq.io/resources/policies.md) is added, changed, or removed. |
| | Firebase auth config created, updated, deleted | Your Firebase authentication configuration is added, changed, or removed. |
| | Authentication settings changed | How end users sign in to wallets changes. |
| Wallet signing | Wallet signing turned off | A client's wallet stops signing transactions. |
| | Wallet signing turned on | A client's wallet can sign transactions again. |
| | Address blocked | An address is blocked. Wallets can no longer send to it. |
| | Address unblocked | A blocked address is allowed again. |
| Notification settings | Rule created, changed, deleted | A notification rule is added, changed, or removed. |
| | Channel added, changed, removed | A Slack channel is added, renamed, gets a new webhook URL, or is removed. |
| Custom domains | Domain DNS failing | An active Web SDK or passkey backup domain fails its DNS check, or recovers. |
| | Domain awaiting certificate record | A passkey backup domain needs its certificate record before it can activate. |
| | Domain activated | A Web SDK or passkey backup domain becomes active. |
| | Domain suspended | A Web SDK or passkey backup domain is suspended. |
| | Domain removed | A Web SDK or passkey backup domain is fully removed. |

Member changes, SSO connections, and the two-factor policy apply to your whole organization, not to one environment. You can only select them in a rule in your Production environment.

## Failing and recovered

Some events report a problem that lasts, such as a failing hook or a low gas sponsor balance. For these, a rule sends:

* **Failing** when the problem starts.
* **Escalated** when it gets worse, such as a gas sponsor dropping from below 50% to below 25%.
* **Still failing** reminders while it continues, every hour, 6 hours, or 24 hours, depending on the rule's re-notify setting. Choose **Never** to skip reminders.
* **Recovered** when it's fixed.

Other events, such as an API key being created, send one notification each time they happen.

## Triggers

Each time a rule sends a notification, Portal records a trigger. Open a rule to see its recent triggers, or select **View all triggers** for the full list. Each trigger shows the event, its type (**Event**, **Failing**, **Escalated**, **Still failing**, **Recovered**, or **Test**), and whether each email and Slack message was delivered. A failed delivery shows the reason and how to fix it.

Triggers are kept for 30 days.

## Next steps

* [Flow control hooks](https://docs.portalhq.io/resources/flow-control-hooks/overview.md): the hooks that the webhook delivery events watch.
* [Informational webhooks](https://docs.portalhq.io/resources/informational-webhooks/overview.md): the webhook that the informational webhook events watch.
* [Configure a custom subdomain](https://docs.portalhq.io/sdks/web/guide/configure-a-custom-subdomain.md): the Web SDK domains that the custom domain events watch.


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