Skip to content

Examples of Notifly usage

Notifly — это универсальный канал push-уведомлений для всего, что важно в вашей работе. Вместо того чтобы открывать дашборды, листать почту и проверять статусы вручную, вы получаете мгновенное сообщение на телефон, в браузер или в desktop-клиент.

В этом разделе собраны практические примеры использования, готовые к копированию. Все рецепты используют один и тот же простой HTTP-вызов:

Окно терминала
curl -X POST "https://your-notifly.example.com/message?token=APP_TOKEN" \
-H "Content-Type: application/json" \
-d '{"title":"Заголовок","message":"Текст","priority":5}'

Monitoring servers, disks, services, security — everything that should “ring” when something goes wrong. Ready-made scripts for Linux, systemd, cron, Fail2ban, SSL.

How to embed notifications in frontend and backend code: production errors, completion of long-running tasks, CI/CD events, successful deploys. Examples in Node.js, Python, Go and React.

WordPress, 1С-Битрикс, Drupal, MODX — recipes for the most popular CMS: new comments, orders, user registrations, PHP errors.

Notifications from your home PC or laptop: low battery, VPN disconnect, completion of a long download, reminders, network events.


All examples assume that you:

  1. Have registered at Notifly (app.notifly.ru).
  2. Created a channel in the admin panel and obtained an app token (prefix A).
  3. Installed any client receiver application: Android, web interface or CLI.

Save the token in an environment variable so you don’t have to include 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, a number 0–10). Clients interpret it differently:

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

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