# Notifications

URL: https://qrdx.dev/docs/notifications
Source: https://github.com/qrdxinc/qrdx/blob/main/apps/docs/content/docs/notifications.mdx

Email alerts, a weekly digest, and Slack or Discord messages when your QR codes get scanned or your forms get responses.

Notifications tell you what happens to your codes without opening the dashboard: a first scan, a milestone, a form response, a teammate's change, and a weekly summary. Choose what QRdx tells you about in [Settings → Notifications](https://qrdx.dev/settings/notifications). Settings are per person and per workspace: your own workspace and every other workspace you belong to have their own switches, and in a shared workspace every member picks their own.

**Email on Pro, chat on Business**

Email alerts and the weekly digest are part of Pro and Business; Slack and Discord messages are part of Business. Each workspace follows the plan of its owners and billing members. On Pro and Business, scan milestone emails (a code's first scan included) are on by default for the person who made the code; owners who want every code's alerts, the weekly digest or the other alerts turn them on. See [Plans and limits](https://qrdx.dev/docs/plans-and-limits).

In a hurry? [Sign-in codes or emails don't arrive](https://qrdx.dev/docs/help/troubleshooting/emails) covers missing alerts.

## How it works [#how-it-works]

Every scan, form response and code change is an event. Notifications subscribe you to the events you care about on one channel each: email to your account's address, a Slack or Discord channel through an incoming webhook, or your own systems through [webhooks](https://qrdx.dev/docs/webhooks).

| Channel | What you can get | Plan |
| --- | --- | --- |
| Email | Weekly digest, scan milestones, form submissions, new codes, code changes | Pro and Business |
| Slack, Discord | Scan milestones, form submissions, new codes, code changes | Business |
| [Webhooks](https://qrdx.dev/docs/webhooks), Zapier, Make | Every event, including each scan | Business |

![The Notifications page: email alerts for scan milestones and form submissions with their switches, and the Slack and Discord options.](https://qrdx.dev/docs-static/shots/notifications.light.webp)

## Alerts [#alerts]

- **Scan milestones:** a code's first scan, then 10, 100, 500, 1,000, 5,000, 10,000, 50,000, 100,000, 500,000, 1,000,000 scans and every million after that. The first-scan email says when, where and on which device; the Slack and Discord message names the city and country. Scans in the first 3 minutes after a code is made count as the maker's own test, so the first-scan email waits for the first scan after that; Slack, Discord and [webhooks](https://qrdx.dev/docs/webhooks) get the very first scan.
- **Form submissions:** the answers from a form on one of your [hosted pages](https://qrdx.dev/docs/forms-and-pages#forms), with a link to all responses.
- **New codes** and **code changes:** who created a code, or changed its destination, title, design or domain. Most useful in workspaces you share with other people.

To keep a busy form or a bulk import from flooding your inbox or channel, each target gets at most 30 alerts of one kind per hour; the rest are skipped. The weekly digest still counts them, and webhooks still receive every event.

## Weekly digest [#weekly-digest]

Every Monday morning (UTC) you get last week's numbers for the workspace: scans compared with the week before, unique visitors, your top 5 codes, the top countries, new codes and form responses. It's skipped when there were no scans for two weeks and no form responses.

## Email [#email]

Alert emails go to your account's email address, under the **Email to** heading in notification settings. Until you change your email switches for a workspace, its plan's defaults apply: scan milestone emails for the codes you make, at most 25 a day per workspace (the rest of that day's are skipped). Codes you import from a file or another provider are left out of the defaults, since they're usually printed and scanned already. Changing any switch, or **Get them for every code in this workspace** under **Scan milestones**, saves your own choice, which covers every code in the workspace with no daily cap beyond the hourly one below; switching everything off keeps it off. Each one has an **Unsubscribe** link that turns off that kind of email without signing in (mail apps that support one-click unsubscribe show it too). Turn emails back on, or off, in notification settings at any time. Team invitations and other account emails are not affected by these settings.

## Notes from the QRdx team [#notes-from-the-qrdx-team]

When you make an account, and now and then after that, someone at QRdx writes to you personally: a short welcome with what to try first, or a note asking how QRdx is working for you. A note comes from that person, and replying reaches them. On Free, the same switch covers one email when each dynamic code you make gets its first scan (not codes you import; scans in the first few minutes after you make a code count as your own test and don't trigger it). The other alerts and the weekly digest are part of Pro and Business. Each of these emails ends with a link to a page where one button stops them, without signing in (your mail app's unsubscribe button does it in one click), and the **Notes from the QRdx team** switch in notification settings turns them off or back on. Your alerts, digests and security emails don't change.

## Slack and Discord [#slack-and-discord]

1. Create an incoming webhook in the chat app:
   - **Slack:** add the [Incoming WebHooks](https://slack.com/apps/A0F7XDUAZ-incoming-webhooks) app, or your own Slack app with incoming webhooks, to a channel and copy the URL (`https://hooks.slack.com/services/...`).
   - **Discord:** channel settings → **Integrations** → **Webhooks** → **New Webhook** → **Copy Webhook URL** (`https://discord.com/api/webhooks/...`).
2. In [Settings → Notifications](https://qrdx.dev/settings/notifications), under **Slack and Discord** for the workspace, click **Slack** or **Discord**, paste the URL and pick the events. Adding one asks you to [confirm it's you](https://qrdx.dev/docs/help/privacy-and-security/two-step-verification#confirm-its-you) first.
3. Use the send button next to the target to post a test message.

Only Slack and Discord webhook URLs are accepted. After saving, QRdx shows only the start of the URL, because anyone who has it can post to the channel. Messages never mention `@everyone`, `@here` or roles, whatever visitors type into a form.

The [QRdx bot for Slack](https://qrdx.dev/docs/slack-bot) is a separate thing: it makes QR codes inside Slack. Adding it doesn't turn alerts on, and adding alerts doesn't add the bot.

## Limits and plans [#limits-and-plans]

If a workspace's plan no longer includes a channel, its alerts stop, but your settings are kept and you can still turn them off or remove targets. Your QR codes keep working on every plan.

## For developers [#for-developers]

For anything beyond these alerts, such as every single scan, use [webhooks](https://qrdx.dev/docs/webhooks): signed `POST` requests to your own endpoint for `scan.created`, `form.submitted` and the other events, with retries and delivery logs.

## Self-hosting [#self-hosting]

Emails are sent through [Resend](https://resend.com): set `RESEND_API_KEY` and `EMAIL_FROM` (an address on a domain verified in Resend). Without them, emails are skipped and logged, and team invites fall back to copyable links.

The weekly digest is sent by `/api/cron/digest`. On Vercel, `apps/app/vercel.json` calls it every Monday with `?shard=all`, which sends every subscriber's digest in one run. With many subscribers you can instead call it hourly on Mondays without `shard=all`, so each run handles a twenty-fourth of them. Anywhere else, call it from your own scheduler with the `CRON_SECRET` from your environment:

```bash title="Terminal"
curl -H "Authorization: Bearer $CRON_SECRET" "https://your-host/api/cron/digest?shard=all"
```

Unsubscribe links are signed with `BETTER_AUTH_SECRET`; changing it invalidates links in emails already sent. See [Self-hosting](https://qrdx.dev/docs/self-hosting#scheduled-jobs).

## Related [#related]

- [Webhooks](https://qrdx.dev/docs/webhooks): every event to your own endpoint, Zapier or Make
- [Menus, coupons, events and forms](https://qrdx.dev/docs/forms-and-pages#forms): the forms whose responses you get alerted about
- [Sign-in codes or emails don't arrive](https://qrdx.dev/docs/help/troubleshooting/emails)
