> For the complete documentation index, see [llms.txt](https://docs.linuxgsm.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.linuxgsm.com/alerts/gotify.md).

# Gotify

[Gotify](https://gotify.net) is a self-hosted server for sending and receiving messages. Alerts sent to Gotify can be received in the Gotify web UI, the Android app, or any client that uses the Gotify API.

## Create an application

LinuxGSM sends alerts to Gotify as an application, and needs that application's token.

1. Log in to the Gotify web UI.
2. Open the **Apps** tab and click **Create Application**.
3. Give it a name, such as `LinuxGSM`, and click **Create**.
4. Copy the token shown for the new application.

## Enable Gotify alerts

Turn on Gotify alerts and enter your details in the [LinuxGSM config](https://docs.linuxgsm.com/configuration/linuxgsm-config.md) (`~/lgsm/config-lgsm/<gameserver>/common.cfg`).

```bash
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify
gotifyalert="on"
gotifytoken="AbCdEf1234567890"
gotifywebhook="https://gotify.example.com"
```

| Setting         | Description                                                                                                |
| --------------- | ---------------------------------------------------------------------------------------------------------- |
| `gotifyalert`   | Set to `on` to enable Gotify alerts.                                                                       |
| `gotifytoken`   | The application token from the Gotify web UI.                                                              |
| `gotifywebhook` | The base URL of your Gotify server, without a trailing `/` or `/message`. LinuxGSM adds `/message` itself. |

Alerts are sent with priority 5.

## Testing the configuration

Execute a test alert with `./gameserver test-alert` to verify the setup. If the alert appears in Gotify, the configuration is correct.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.linuxgsm.com/alerts/gotify.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
