Examples of Using Notifly
Notifly is a universal push-notification channel for everything that matters in your work. Instead of opening dashboards, sifting through email and checking statuses manually, you get an instant message on your phone, in the browser or in a desktop client.
This section contains practical, ready-to-copy examples. All recipes use the same simple HTTP call:
curl -X POST "https://your-notifly.example.com/message?token=APP_TOKEN" \ -H "Content-Type: application/json" \ -d '{"title":"Заголовок","message":"Текст","priority":5}'By role
Section titled “By role”Monitoring of servers, disks, services, security — everything that should “ring” when something goes wrong. Ready-made scripts for Linux, systemd, cron, Fail2ban, SSL.
How to integrate notifications into frontend and backend code: production errors, completion of long tasks, CI/CD events, successful deploys. Examples in Node.js, Python, Go and React.
WordPress, 1C-Bitrix, Drupal, MODX — recipes for the most popular CMS: new comments, orders, user registrations, PHP errors.
Notifications from a home PC or laptop: low battery, VPN disconnect, completion of a long download, reminders, network events.
Basic setup
Section titled “Basic setup”All examples assume that you:
- Deployed or are using a hosted Notifly server (see Installation or the public service).
- Created a channel in the admin panel and obtained an app token (prefix
A). - Installed any recipient client application: Android, web interface or CLI.
Save the token in an environment variable so you don’t have to paste it in every example:
export NOTIFLY_URL="https://your-notifly.example.com"export NOTIFLY_TOKEN="AGdjfk_L.dKe8q"And then the minimal send becomes:
curl -s "$NOTIFLY_URL/message?token=$NOTIFLY_TOKEN" \ -H "Content-Type: application/json" \ -d '{"title":"Тест","message":"Работает!"}'::: tip[Priorities]
In Notifly each message has a priority (priority, number 0–10). Clients
interpret it differently:
| Priority | Behavior in Android client |
|---|---|
| 0–3 | Silent, no sound |
| 4–7 | Normal notification |
| 8–10 | Loud, pop-up |
Use high priority only for truly critical events. :::