Skip to content

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}'

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.


All examples assume that you:

  1. Deployed or are using a hosted Notifly server (see Installation or the public service).
  2. Created a channel in the admin panel and obtained an app token (prefix A).
  3. 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:

PriorityBehavior in Android client
0–3Silent, no sound
4–7Normal notification
8–10Loud, pop-up

Use high priority only for truly critical events. :::