ntfy
Sign in to ntfy on Cottage, create an access token, send your first notification and get it on your phone.
Updated November 24, 2026
On this page
ntfy is a notification server you send to with a plain HTTP request. Your scripts, backups, servers and other apps post a message to a topic, and it pops up on your phone or computer. Cottage runs version 2.38.1, with private topics: only you, and the tokens you create, can send or subscribe.
Getting started
- Sign in. Open your app's address, choose Sign in, and use
adminwith the Admin password from Sign-in details on the app's page in Cottage. - Change your password. Open Account, find Password and choose to change it. Cottage only uses the generated password when the app first starts.
- Create an access token. Under Account → Access tokens, choose Create access token. Give it a label so you remember what it's for. Use one token per script or device, so you can delete one without breaking the rest.
- Send a test. From any computer, run the following, with your token and your app's address:
curl -H "Authorization: Bearer <token>" -d "Backup finished" https://your-app-address/backups
backups is the topic. Topics are created the moment you use them.
5. Subscribe in the web app. Choose Subscribe to topic, enter backups and choose Subscribe. The message you sent appears there.
6. Get notifications on your phone. Install ntfy for Android or iPhone. On Android, open Settings, set Default server to your app's address, then use Manage users to add your address with your username and password. On iPhone, add your server and sign-in in the app's settings in the same way. Then subscribe to your topics.
7. Forward to email (optional). Fill in the Email section of App settings on the app's page in Cottage with your mail provider's details. See Sending email from your apps. ntfy sends with STARTTLS only, so use port 587.
Frequently asked questions
How do I send a notification by email as well?
Add an X-Email header with the address when you publish, or fill in Email in the web app's Publish notification dialog. This only works once the Email settings are filled in.
Can I send notifications from other apps?
Yes. Many self-hosted apps, monitoring tools and backup programs can post to ntfy. Give each one its own access token and its own topic. ntfy's publishing guide covers titles, priorities, tags, click actions and attachments.
Can other people have their own accounts?
Sign-ups are off, and ntfy's web app has no screen for adding accounts. You can create access tokens for people and services you trust; a token can do anything your account can. If you need separate accounts, contact support at support@cottage.host.
How long are messages kept?
ntfy keeps recent messages for a short while (12 hours by default) so devices that were offline can catch up. It's a notification service, not an archive. Attachments expire sooner.
Is my iPhone getting messages through ntfy.sh?
Partly. Apple only delivers instant notifications through its own push service, so your app asks ntfy.sh to send your iPhone a wake-up signal with the message ID. Your iPhone then fetches the message from your own app. ntfy.sh never sees the message itself.
How do I move my data out?
There's little to export. To fetch a topic's cached messages as JSON:
curl -H "Authorization: Bearer <token>" "https://your-app-address/<topic>/json?poll=1&since=all"
Cottage also keeps nightly backups of the whole app, including your account and tokens. See Backups and export.
Troubleshooting
Sending fails with a 401 or 403 error
All topics on your app are private. Include Authorization: Bearer <token> with a token from Account → Access tokens, and check the token hasn't been deleted or expired. A 403 means the token or user isn't allowed to use that topic.
My phone doesn't get notifications
- Check that the subscription uses your app's address, not
ntfy.sh. On Android, the Default server setting decides this for new subscriptions. - Make sure you added your username and password for your server in the app.
- On Android, allow the ntfy app to run in the background and turn off battery optimization for it; messages from your own server arrive over a constant connection.
- If you added a custom domain, use that address in the app.
The web app only notifies me while it's open
That's expected on Cottage: notifications in the browser arrive while the web app is open. For notifications at any time, use the Android or iPhone app.
Emails aren't sent
- Make sure the Email settings are filled in and SMTP port is 587; port 465 won't work with ntfy, and port 25 is blocked.
- Check that your provider allows the Send as address.
- Look at the Technical log under Advanced and your provider's dashboard for errors.
The app restarts or won't start
Check the Technical log under Advanced. If you've just changed the Email settings, a typo there can stop ntfy starting; fix it or clear SMTP server. If the logs mention memory, raise it with Change size on the app's page in Cottage.
Still stuck?
Email support@cottage.host. A person reads every message. If something seems down, check Cottage's status page.