NotIf Documentation Pricing App

Publish

To publish, send a POST or PUT request to the topic's address. The body of the request becomes the message.

curl -d "Backup complete" https://usenotif.com/my-backups

The server replies with the message in JSON:

{"id":"8sPiEtwk83R2","time":1793541403,"event":"message","topic":"my-backups","message":"Backup complete","expires":1793584603}

Without a body, the message sent is the word triggered.

Options go in HTTP headers. You can also put them in the address (?title=Hello) or publish in JSON. The full list is at the end of this page.

Title

curl -H "Title: Server backup" -d "12 GB copied" https://usenotif.com/my-backups

Without a title, the apps show the topic's name.

Accents in headers

You can write accented letters and other non-ASCII characters directly in a header, in UTF-8:

curl -H "Title: Résumé ready" -d "12 GB copied" https://usenotif.com/my-backups

If your terminal or your tool does not send UTF-8, or if a header may be changed along the way, use one of these three methods.

Publish in JSON:

curl -d '{"topic":"my-backups","title":"Résumé ready","message":"12 GB copied"}' https://usenotif.com

Put the title in the address, URL-encoded:

curl -d "12 GB copied" "https://usenotif.com/my-backups?title=R%C3%A9sum%C3%A9%20ready"

Or encode the header following the RFC 2047 standard:

curl -H "Title: =?UTF-8?B?UsOpc3Vtw6kgcmVhZHk=?=" -d "12 GB copied" https://usenotif.com/my-backups

The notif command line encodes accents for you.

Send the message body in UTF-8. A small body in another encoding is read as windows-1252: see Accents on Windows.

Priorities

Priority goes from 1 to 5. If none is given, a message has priority 3.

Priority Accepted names Effect
5 urgent, max Long vibration on Android. The browser notification stays on screen until you close it.
4 high High-priority notification on Android.
3 default Normal notification.
2 low Quiet notification.
1 min Quietest notification.
curl -H "Priority: urgent" -d "Garage door open" https://usenotif.com/my-home

The number works too: -H "Priority: 5". Any other value is refused.

Tags and emojis

Separate tags with commas. A tag that matches an emoji name is shown as an emoji in front of the title. The others are shown as text under the message.

curl -H "Tags: floppy_disk,home-server" -d "Copy successful" https://usenotif.com/my-backups

Here, the message shows 💾 and the tag home-server.

Tag Emoji Tag Emoji
white_check_mark ✅ warning ⚠️
x ❌ rotating_light 🚨
tada 🎉 bell 🔔
floppy_disk 💾 package 📦
shopping_cart 🛒 droplet 💧
thermometer 🌡️ robot 🤖

NotIf recognizes 1,913 emoji names, the same as on GitHub (+1, tada, etc.).

Markdown

curl -H "Markdown: yes" -d "**Backup complete**, see the [report](https://usenotif.com/docs)" https://usenotif.com/my-backups

You can also send Content-Type: text/markdown. The web app shows bold, italics, code, links, lists, quotes and code blocks. Markdown headings are shown in bold. Tables and images are not supported.

The Android app and the notifications show plain text, without formatting.

Scheduled delivery

The message is kept on the server, then delivered at the requested time.

curl -H "Delay: 30m" -d "Take the bread out of the oven" https://usenotif.com/my-kitchen
curl -H "At: tomorrow, 9am" -H "Timezone: America/Toronto" -d "Call the accountant" https://usenotif.com/my-reminders
curl -H "In: 2 hours" -d "Parking time is up" https://usenotif.com/my-reminders

Delay, At and In are equivalent. The minimum delay is 10 seconds and the maximum delay is 3 days.

Format Examples
Duration 30m, 2 hours, 1h30m, 3d
Full date and time 2026-11-02T09:00:00-05:00
Unix timestamp 1793600000
Time only 8:30am, 3pm, 14:30, noon, midnight
Day today 11pm, tomorrow, 3pm, monday, next monday 10am
Short date 2026-11-20 9am

These words are in English: words in other languages, such as demain or midi, are refused. A time only that has already passed means the next day. A day without a time means 9 a.m.

Time zone: without Timezone, times are read in UTC. Use a name such as America/Toronto, America/Vancouver or America/Halifax. The time zone has no effect on durations.

To cancel a scheduled delivery, give it a sequence ID (see Update or delete).

curl -H "X-Sequence-ID: accountant-reminder" -H "Delay: 1d" -d "Call the accountant" https://usenotif.com/my-reminders
curl -X DELETE https://usenotif.com/my-reminders/accountant-reminder

To see what is waiting on a topic:

curl "https://usenotif.com/my-reminders/json?poll=1&scheduled=1"

A scheduled message cannot be combined with X-Cache: no, an email, a call or an acknowledgement.

Click link

curl -H "Click: https://usenotif.com/docs" -d "New version available" https://usenotif.com/my-projects

Tapping the notification opens this address. Use an https:// address, which works everywhere. The web app also accepts mailto:, tel: and geo: in the message list, and the Android app opens any link the phone recognizes.

Icon

curl -H "Icon: https://usenotif.com/icons/icon-192.png" -d "Deployment complete" https://usenotif.com/my-projects

The address must start with http:// or https://.

Action buttons

A message can carry up to three buttons.

curl -H "Actions: view, Open the shop, https://usenotif.com; copy, Copy the code, ABC123" -d "New promo code" https://usenotif.com/my-shop

Actions are separated by ; and fields by ,.

Type Effect Fields
view Opens an address label, url, clear
http Sends a request label, url, method (POST by default), headers.Name, body, clear
copy Copies a text label, value, clear
broadcast Sends an Android intent, for Tasker or another app label, intent, extras.name, clear

clear=true removes the message once the action succeeds.

This button opens the garage by calling your own address:

curl -H "Actions: http, Open, https://home.example.ca/garage, method=PUT, headers.X-Key=abc, clear=true" -d "Delivery person at the door" https://usenotif.com/my-home

view and http addresses accept http:, https:, mailto:, tel:, geo:, notif:, ntfy: and twitter:.

Commas: if a value contains a comma, such as a JSON body, use the JSON form. Quotes do not protect a comma in the short form.

curl -H 'Actions: [{"action":"http","label":"Run","url":"https://home.example.ca/task","body":"{\"a\":1,\"b\":2}"}]' -d "Ready" https://usenotif.com/my-home

Depending on the app: Android shows all four types, in the notification and in the message list. The web app shows view, http and copy in the message list, but not broadcast. In a browser, the address of an http button must allow requests from another origin (CORS). Browser notifications have no buttons.

Attachments

Send a file with -T and give it a name with Filename.

curl -T report.pdf -H "Filename: report.pdf" https://usenotif.com/my-reports

Without Message, the text shown is You received a file: report.pdf. For your own text, use the Message header:

curl -T photo.jpg -H "Filename: photo.jpg" -H "Message: Here is the photo" https://usenotif.com/my-home

A body becomes an attachment in these cases: Filename or Message is present, the body is not UTF-8 text, or the text is over 4 KB. Without Filename, a small text file therefore becomes an ordinary message.

You can also attach a file that is already online. NotIf does not download it and only passes on its address.

curl -H "Attach: https://usenotif.com/icons/icon-512.png" -d "New logo" https://usenotif.com/my-projects

To rename this file, pass the text with Message. With Filename, a body would be saved as a file instead of the address.

curl -X POST -H "Attach: https://usenotif.com/icons/icon-512.png" -H "Filename: logo.png" -H "Message: New logo" https://usenotif.com/my-projects

Uploaded attachments are kept for 3 hours. On Android, an attached image is shown in the notification. In the web app, it is shown in the message, with a "Download" link.

Publish in JSON

Send a JSON object to the root of the service, with the topic in the topic field.

curl https://usenotif.com -d '{
  "topic": "my-backups",
  "title": "Backup complete",
  "message": "12 GB copied",
  "priority": 4,
  "tags": ["floppy_disk"],
  "click": "https://usenotif.com/docs",
  "actions": [{"action": "view", "label": "Details", "url": "https://usenotif.com/docs"}]
}'

This is the best option for accents. JSON cannot, however, upload a file or use a template.

Field Type Role
topic text Topic (required)
message text Message body
title text Title
priority number from 1 to 5, or name Priority
tags list, or comma-separated text Tags
markdown true or false Turns on Markdown
delay, in, at text Scheduled delivery
timezone text Time zone of the scheduled delivery
click text Click link
icon text Icon address
attach text Address of an online file
filename text File name
actions list, or short form Buttons
email text Email forwarding
call true, or number Phone call
sequence_id text Sequence ID
cache true or false false: does not keep the message on the server
ack true Acknowledgement
escalate text Escalation policy

The JSON request is limited to 16 KB, and the message field to 4 KB.

Publish with a GET request

If your device can only call a simple address, add /publish, /send or /trigger to the topic and pass the options in the address.

curl "https://usenotif.com/my-home/publish?message=Water%20in%20the%20basement&priority=high&tags=droplet"
curl "https://usenotif.com/my-home/send?m=Hello&t=Greeting&p=2"
curl https://usenotif.com/my-home/trigger

Keep these addresses for GET requests. With a POST, publish, send or trigger would be read as a sequence ID: in that case, publish directly to the topic.

Email forwarding

curl -H "Email: me@example.ca" -H "Title: Weekly report" -d "Everything went well" https://usenotif.com/my-reports

The message is published to the topic and forwarded to this address. The title becomes the subject of the email. Without a title, the subject is usenotif.com/my-reports.

When signed in to an account, you can write Email: yes to target your first verified address. Add an address in your account.

You can send 16 emails at once, then 1 more per hour. Email cannot be scheduled.

Phone call

NotIf can call you and read the message out loud, three times, in English.

curl -H "Authorization: Bearer tk_yourtoken" -H "Call: yes" -d "The freezer has stopped" https://usenotif.com/my-home

A call requires being signed in, having a verified number in your account and a plan that includes calls. Call: yes targets your first verified number. You can also give a verified number: Call: +15551234567. A call cannot be scheduled.

Update or delete

Give the same sequence ID to several messages: the most recent one replaces the earlier ones in the apps and in the notification.

curl -H "X-Sequence-ID: copy-42" -d "Copy in progress" https://usenotif.com/my-backups
curl -H "X-Sequence-ID: copy-42" -d "Copy complete" https://usenotif.com/my-backups

You can also put the ID in the address:

curl -d "Copy complete" https://usenotif.com/my-backups/copy-42

An ID has 1 to 64 characters: letters, digits, - and _. Avoid publish, send and trigger.

To mark the message as read and close its notification:

curl -X PUT https://usenotif.com/my-backups/copy-42/clear

To remove it from the apps:

curl -X DELETE https://usenotif.com/my-backups/copy-42

PUT .../read is the same as clear, and PUT .../delete is the same as DELETE. These commands also cancel any scheduled message that carries this ID.

On the server, the old message stays until it expires. A client using the API still sees it, followed by the delete event.

Do not keep the message

curl -H "Cache: no" -d "One-time code: 482913" https://usenotif.com/my-codes

The message only goes to subscribers connected at that moment. No one will be able to fetch it later.

Limits

These are the limits without a paid plan. Your account's limits are shown in "Usage today".

Item Limit
Message 4 KB
Message retention 12 hours
Scheduled delivery from 10 seconds to 3 days
Action buttons 3 per message
Attachment 15 MB per file
Attachment storage 100 MB at a time
Attachment bandwidth 500 MB per day
Attachment retention 3 hours
Requests 60 at once, then 1 every 5 seconds
Emails 16 at once, then 1 per hour
New topics 100 at once, then 1 per minute
Simultaneous subscriptions 30 connections, 150 topics per connection

Requests are counted per IP address, or per account if you are signed in.

Error codes

An error returns JSON:

{"code":40007,"http":400,"error":"invalid request: priority invalid"}
HTTP code Meaning Common cause
400 Invalid request Wrong priority, delay, topic or action
401 Unauthorized Wrong or expired token or password
403 Forbidden Topic reserved by someone else
404 Not found Unknown address
413 Too large Message or file over the limit
429 Limit reached Too many requests or quota reached

Some names cannot be used as a topic: docs, static, file, app, metrics, account, settings, signup, login, v1, publish, send, trigger and team.

Accepted headers and aliases

Names are not case-sensitive. Each one works as a header and as an address parameter.

Option Accepted names
Message X-Message, Message, m
Title X-Title, Title, ti, t
Priority X-Priority, Priority, prio, p
Tags X-Tags, Tags, Tag, ta
Markdown X-Markdown, Markdown, md
Scheduled delivery X-Delay, Delay, X-At, At, X-In, In
Time zone X-Timezone, Timezone
Click link X-Click, Click
Icon X-Icon, Icon
Online file X-Attach, Attach, a
File name X-Filename, Filename, File, f
Buttons X-Actions, Actions, Action
Email X-Email, X-E-Mail, Email, E-Mail, Mail, e
Call X-Call, Call
Sequence X-Sequence-ID, Sequence-ID, SID
Cache X-Cache, Cache
Firebase X-Firebase, Firebase
Template X-Template, Template, Tpl
Acknowledgement X-Ack, Ack
Escalation X-Escalate, Escalate

For options you turn on, use yes, true or 1. For Cache and Firebase, use no, false or 0 to turn them off.