Skip to main content
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 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.
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 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.
  6. Choose how often to re-notify while a problem continues. See 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 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

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