Getting started
NotIf sends notifications to your phone or your computer from a simple HTTP request. The end of a script, a successful backup, a new order, a sensor at home: anything that can run curl can notify you.
It comes down to two steps: you add a topic, then you publish to it. Every subscriber of the topic gets the message.
curl -d "Backup complete" https://usenotif.com/my-backups
No account is needed to get started. NotIf is compatible with the ntfy API: your ntfy scripts work once you change the address.
Your first message in 2 minutes
1. Add a topic
In your browser:
- Open usenotif.com/app.
- Click "Add a topic".
- Enter a name, such as "Backups". NotIf shows the topic's address, such as
backups-k7w2q9. - Click "Add".
- Allow notifications if the browser asks.
On Android, install the app, tap "Add a topic", enter the name and tap "Add".
The end of the address is random: it keeps people from guessing it. Without a reservation, anyone who knows the address can read the topic and publish to it.
A topic address has 1 to 64 characters: letters, digits, - and _. There is nothing to create on the server: the topic exists as soon as someone uses it.
2. Publish
In a terminal:
curl -d "Hello from NotIf" https://usenotif.com/backups-k7w2q9
The message shows up right away. The server replies with the message in JSON, which confirms it was published.
No terminal at hand? The app's "Publish" button does the same thing.
3. Add a title and a level
curl -H "Title: Low stock" -H "Priority: high" -H "Tags: warning" -d "Only 3 items left" https://usenotif.com/backups-k7w2q9
The title, the level and the tags go in headers. All the options are described in Publish.