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

# Manage notifications

> Configure env zero deployment notifications by creating Notification Targets for Slack, Email, Teams, and webhooks, then associating them with projects.

env zero sends notifications for deployment events to Slack, Microsoft Teams, email addresses, or your own webhook endpoint.\
You can define several Notification Targets, corresponding to different channels.\
You can also associate these Notification Targets to different env zero projects, controlling which events go to which channel.

To configure notifications, first set up the [Slack](#slack) or [Email](#email) target below, or follow the [Microsoft Teams](https://docs.envzero.com/guides/integrations/notifications/microsoft-teams.md) or [Webhooks](https://docs.envzero.com/guides/integrations/notifications/webhooks.md) guide, then follow the steps in [Configure notifications](#configure-notifications).

## Slack

env zero posts deployment notifications to Slack through the **env zero** Slack app. You install the app in your Slack workspace while adding a Slack Notification Target in env zero, and choose the channel it posts to.

### Prerequisites

> [!WARNING]
>
> Adding a Slack target requires the **Edit Organization Settings** permission in env zero.

* Permission to install apps in your Slack workspace. If your workspace [requires app approval](https://slack.com/help/articles/222386767-Manage-app-approval-for-your-workspace), a Workspace Owner or app manager must approve the env zero app.
* Pop-ups allowed for env zero in your browser. Slack authorization opens in a pop-up window.

### Connect a Slack channel

**1. Open notification settings**

Go to **Organization Settings** and open the **Notifications** tab.

**2. Add a Slack target**

Click **Add Notification Target** and select **Slack** as the **Type**.

**3. Install the env zero app**

Click **Add to Slack**. In the Slack window, choose the channel env zero posts to and authorize the app.

env zero shows **Slack connected** and adds a target named `Slack - <workspace> - <channel>`. Next, [configure your project to send notifications](#configure-your-project-to-send-notifications) to this target.

### Change the channel

Edit the Slack target, click **Re-authenticate with Slack**, and choose the new channel. env zero updates the existing target and renames it to match, so project notification settings stay in place.

> [!NOTE]
>
> The **Add to Slack** flow is only available in the env zero UI. To create a Slack target with the API or the Terraform provider, pass a Slack [incoming webhook](https://docs.slack.dev/messaging/sending-messages-using-incoming-webhooks/) URL as the target value.

## Email

To receive notifications via email address, enter the name of the Notification target and select Email in the Type dropdown menu:

![Notification target configuration form with Name field and Type dropdown set to Email](https://mintcdn.com/envzero-b61043c8/f50k_bxcw7fbjToJ/images/guides/integrations/notifications/39a47be-image.png?fit=max\&auto=format\&n=f50k_bxcw7fbjToJ\&q=85\&s=bef7fbca31ec6021fd29767059692e3d)

Next, enter a list of comma-separated email addresses where you want to receive the notifications.

You can also check the `Environment creator` checkbox to send the notifications to the user who created the environment, and the `Deployer` checkbox to send it to the user who started deployment.

## Configure notifications

### Add a Notification Target

> [!WARNING]
>
> Adding a Notification Target requires the **Edit Organization Settings** permission.

1. Go to **Organization Settings** and open the **Notifications** tab.
2. Click **Add Notification Target**.
3. Enter any name you'd like and choose the **Microsoft Teams**, **Webhook** or **Email** type, then enter the webhook URL you saved earlier or the email addresses. For **Slack**, follow [Connect a Slack channel](#connect-a-slack-channel) instead.
4. Click **Add Notification Target** to save.

### Configure your project to send notifications

> [!WARNING]
>
> Configuring project notifications requires the **Edit Project Settings** permission.

1. Go to **Project Settings** and open the **Notifications** tab.
2. Find the **Notification Target** you've previously added and click on the edit icon next to it.
3. Select the events you'd like to get notified of, from this project to this notification target.
4. Click **Save changes**.


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