Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ntfy

Schemesntfy://, ntfys://
Cargo featureservice-ntfy
Servicehttps://ntfy.sh/
Body formatstext (first is the default)
Attachmentsyes
Title length200 characters
Body length7,600 characters
Body linesunlimited
Request throttlenone
Vendor URLs acceptedyes

URL formats

{schema}://{topic}
{schema}://{host}/{targets}
{schema}://{host}:{port}/{targets}
{schema}://{user}@{host}/{targets}
{schema}://{user}@{host}:{port}/{targets}
{schema}://{user}:{password}@{host}/{targets}
{schema}://{user}:{password}@{host}:{port}/{targets}
{schema}://{token}@{host}/{targets}
{schema}://{token}@{host}:{port}/{targets}

{schema} is one of ntfy://, ntfys://.

URL tokens

TokenMeaningTypeRequiredDefaultNotes
{host}Hostnamestringno
{password}Passwordstringnosecret
{port}Portint, 1 to 65535no
{targets}Targetslistyesany of topic; separated by /
{token}Tokenstringnosecret
{topic}Topicstringnomust match ^[a-z0-9_-]{1,64}$
{user}Usernamestringno

Query parameters

ParameterMeaningTypeDefaultNotes
actionsActionsstring
attachAttachstring
authAuthentication Typechoicebasic (usually; depends on the URL)one of basic, token
avatar_urlAvatar URLstring
clickClickstring
delayDelaystring
emailEmailstring
filenameAttach Filenamestring
imageInclude Imageboolyes
modeModechoiceprivate (usually; depends on the URL)one of cloud, private
priorityPrioritychoicedefaultone of max, high, default, low, min
toTargetslistsets {targets}
tokenTokenstringsets {token}
xtagsTagsstringalso tags

The common URL parameters (format, overflow, verify, redirect, cto, rto, retry, wait, store, tag, tz, user, password, port, optional, emojis) apply as well.

Examples

Accepted URLs (tokens are fake):

ntfys://my-topic
ntfy://localhost/topic
ntfy://user@localhost/topic/
ntfy://ntfy.sh/topic1/topic2/
ntfy://tk_abcd123456@localhost/topic1
https://ntfy.sh?to=topic
ntfys://user:pass@localhost?to=topic
https://ntfy.sh/topicA/topicB?priority=5

Rejected URLs:

ntfys://user:web/token@localhost/topic/?mode=invalid
ntfys://token@localhost/topic/?auth=invalid
ntfys://user:web@-_/topic1/topic2/?mode=private

Send one from the command line:

mercurio -t 'Backup' -b 'Finished in 42s' 'ntfys://my-topic'

Notes

ntfy (ntfy://, ntfys://, https://ntfy.sh/topic): publishes to ntfy topics.