Gotify
Sign in to Gotify, create an application token, send your first push notification and get messages on your Android phone.
Updated November 24, 2026
On this page
Gotify is a small server for push notifications. Your scripts, servers and other apps send it a message with one web request, and it appears in the web app and on your Android phone right away. It suits anyone who wants alerts from their own tools without relying on a third-party push service.
Getting started
- Sign in. Open your app's address and sign in with the username
adminand the Admin password in Sign-in details on the app's page in Cottage. Cottage only uses that password the first time the app starts, so if you change it in Gotify, the new one is the one that counts. - Change your password, if you like. Open Settings in Gotify and choose Change Password. Gotify asks you to confirm your current password before sensitive actions like this one.
- Create an application. Applications are the things that send messages. Open Apps, choose Create Application, give it a name (for example "Backups" or "Home server") and an optional Default Priority. Gotify shows the token only once, so copy it right away.
- Send a test message. From any computer, run:
curl "https://your-app-address/message?token=<token>" -F "title=Hello" -F "message=It works"
You can also send the token in an X-Gotify-Key header instead of the address. The message appears in the web app immediately.
5. Connect your phone. Install the Gotify app for Android from Google Play, F-Droid or GitHub. When it asks for a server, enter your app's full address starting with https://, then sign in with your Gotify username and password. There's no iPhone app; the web app works in any browser and shows browser notifications.
6. Add other people. Sign-ups are turned off on Cottage. To give someone their own account, open Users and create one for them. Each person only sees the applications and clients they created.
Gotify doesn't send email, so there's nothing to set up for mail.
Frequently asked questions
What's the difference between apps and clients?
An application can only send messages; its token goes into your scripts. A client receives messages and can manage your apps and messages: the web app and the Android app each sign in as a client, and you can see them all under Clients.
How do priorities work?
Every message has a priority from 0 to 10. If you don't set one, the application's Default Priority is used. On Android, 0 shows no notification, 1–3 show only an icon, 4–7 add a sound, and 8–10 add sound and vibration. The web app plays a sound for priority 4 and above. See Message priority.
I lost an application's token. Can I see it again?
No. Since Gotify 3, tokens are shown only once, when they're created. Under Apps, use the regenerate button on that application to get a new token, then update the scripts that use it. The old token stops working.
Can messages use formatting or open a link when tapped?
Yes, through message extras sent as JSON. Set client::display with contentType text/markdown for Markdown, or client::notification with a click URL to open a page. See Message extras.
Can I use my own domain?
Yes. Add it with Add a web address on the app's page in Cottage (how), then update the server address in the Android app and in any scripts that send messages.
How do I move my data out?
Gotify has no export button, but its API returns everything as JSON. Create a client under Clients, then fetch /message?limit=200&token=<client token> (follow the next link for older messages) and /application?token=<client token>. You can also download a full backup from Backups on the app's page in Cottage (how).
Is it updated automatically?
Yes. Cottage installs Gotify updates for you and takes nightly backups. Check Updates on the app's page in Cottage for what's installed.
Troubleshooting
My phone stops getting notifications after a while
Android often stops apps in the background to save battery. Open your phone's settings, search for Battery optimization, find Gotify and turn optimization off. Some phone makers add their own limits; dontkillmyapp.com has steps for each brand. Also check the message priority: priority 0 never shows a notification.
My script gets a 401 error
The token is wrong or was regenerated. Make sure you're using an application token (from Apps), not a client token, and that it's copied in full. If you've lost it, regenerate it and update the script.
The Android app can't connect
Enter the full address including https://, with no path after it, for example https://word-word.cottagehost.com. If you've added a custom domain, check that it shows Active on the app's page in Cottage. If you use Cottage's IP allowlist or password gate (access controls), your phone must be allowed through too.
Deleting something asks for my password again
That's expected. Gotify asks you to sign in again before sensitive actions such as changing a password, deleting an app or client, or managing users. Enter your password and the action goes ahead.
I forgot the admin password
The Admin password in Sign-in details only works until you change it. If you changed it and another admin account exists, ask that person to set a new password for you under Users. Otherwise, contact Cottage support at support@cottage.host.
Still stuck?
Email support@cottage.host. A person reads every message. If something seems down, check Cottage's status page.