Where notifications go: in-app, email and webhooks
Reading · 5 min · Module 6, lesson 3 of 530 min left in this module
Module 6 · Monitoring and alertsLesson 3 of 5
Preview. You can choose events and set up channels today. Deployment notifications show in the console. Alert notifications aren't available yet.
Goal: Choose which events notify you and send them to a team chat channel through a JSON webhook.
Key idea
Notification settings are yours, not the project's: you pick which events reach you, in app or by email. A webhook lets you send them anywhere that accepts an HTTP request, such as your team's chat.
Where to set them
Open Settings from the console's main menu and choose Notifications. Each row is a kind of event: Deploy and build failures, Team and invites and Tasks you started. Alert rules have their own email setting on the project (lesson 6.6.4).
Each row has its own switches:
In app: the bell at the top of the console.
Email: to the address you sign in with. Only Deploy and build failures offers email.
Webhooks are set up separately, below. Choose Save changes when you're done.
The settings belong to you and cover every project in the account, unless you add one to Muted projects. A teammate who wants the same notifications turns them on in their own settings.
Webhooks
In the Webhooks card choose Manage webhooks, then Add webhook endpoint. Each endpoint has:
URL: where to send it, such as a chat tool's incoming-webhook address.
Token: optional. When set, it's sent as Authorization: Bearer <token>, for receivers that check who's calling.
Format: JSON or Text.
Choose Save changes to keep it. An HTTP POST goes to each endpoint you save.
Choose JSON for chat tools. The body carries the same message in three fields, because different tools read different ones:
{"text": "…", "content": "…", "message": "…"}
Slack-style incoming webhooks read text; Discord-style ones read content. Each ignores the fields it doesn't know.
Before and after
Saving an endpoint doesn't prove it works; the first real notification does. So set up the receiving end first and check it answers, and remove an endpoint before you delete whatever it points at.